/* Product card — Gems Harbor app design */
.gh-card {
    --gh-emerald: #045d48;
    --gh-emerald-dark: #034436;
    --gh-mint: #e8f5f1;
    --gh-mint-panel: #edf7f3;
    --gh-gold: #c9a227;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    font-family: "Inter", sans-serif;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(4, 93, 72, 0.12);
}

/* ── Image ── */
.gh-card__media {
    position: relative;
    aspect-ratio: 1 / 0.88;
    background: #f4f6f9;
    overflow: hidden;
}

.gh-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gh-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gh-card:hover .gh-card__img {
    transform: scale(1.03);
}

/* Image tags */
.gh-card__tags {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: calc(100% - 3.25rem);
    pointer-events: none;
}

.gh-card__tags--top {
    top: 0.6rem;
    left: 0.6rem;
}

.gh-card__tags--bottom {
    left: 0.6rem;
    bottom: 0.6rem;
}

.gh-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease;
}

.gh-card:hover .gh-card__tag {
    transform: translateY(-1px);
}

.gh-card__tag i {
    font-size: 0.72rem;
    line-height: 1;
}

/* Premium — gold shimmer */
.gh-card__tag--premium {
    position: relative;
    overflow: hidden;
    color: #78350f;
    background: linear-gradient(135deg, #fff7d6 0%, #fde68a 35%, #f5c542 70%, #fde68a 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 2px 10px rgba(180, 134, 11, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gh-card__tag--premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: gh-tag-shine 3s ease-in-out infinite;
}

.gh-card__tag--premium i {
    color: #b45309;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

@keyframes gh-tag-shine {
    0%, 100% { left: -100%; }
    50% { left: 140%; }
}

/* Live auction */
.gh-card__tag--live {
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 2px 12px rgba(220, 38, 38, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.gh-card__live-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.gh-card__live-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    animation: gh-live-ring 1.8s ease-out infinite;
}

.gh-card__live-dot {
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: gh-live-pulse 1.4s ease-in-out infinite;
}

@keyframes gh-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.85); }
}

@keyframes gh-live-ring {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Buy now */
.gh-card__tag--buy {
    color: #fff;
    background: linear-gradient(135deg, #034436 0%, #045d48 50%, #0a7a5c 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(4, 93, 72, 0.35);
}

.gh-card__tag--buy i {
    color: rgba(255, 255, 255, 0.95);
}

.gh-card--premium .gh-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border: 2px solid transparent;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.35), transparent 40%, transparent 60%, rgba(245, 197, 66, 0.2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gh-card--premium:hover .gh-card__media::before {
    opacity: 1;
}

/* Wishlist — top right */
.gh-card__wish {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #64748b;
    cursor: pointer;
    box-shadow:
        0 2px 12px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.gh-card__wish-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gh-card__wish-icon i {
    font-size: 1.05rem;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.gh-card__wish:hover {
    transform: scale(1.1);
    background: rgba(255, 241, 245, 0.96);
    border-color: rgba(251, 113, 133, 0.45);
    color: #f43f5e;
    box-shadow:
        0 4px 18px rgba(244, 63, 94, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.gh-card__wish:hover .gh-card__wish-icon i {
    transform: scale(1.12);
    color: #e11d48;
}

.gh-card__wish:active {
    transform: scale(0.96);
}

.gh-card__wish--saved,
.gh-card__wish:has(.bi-heart-fill) {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 55%, #fecdd3 100%);
    border-color: rgba(244, 63, 94, 0.35);
    color: #e11d48;
    box-shadow:
        0 2px 14px rgba(225, 29, 72, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.gh-card__wish--saved .gh-card__wish-icon i,
.gh-card__wish .bi-heart-fill {
    color: #e11d48;
    filter: drop-shadow(0 1px 2px rgba(225, 29, 72, 0.35));
}

.gh-card__wish--saved:hover,
.gh-card__wish:has(.bi-heart-fill):hover {
    background: linear-gradient(145deg, #ffe4e6 0%, #fda4af 100%);
    border-color: rgba(225, 29, 72, 0.45);
    box-shadow:
        0 6px 20px rgba(225, 29, 72, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gh-card__wish--saved:hover .gh-card__wish-icon i,
.gh-card__wish:has(.bi-heart-fill):hover .gh-card__wish-icon i {
    animation: gh-wish-pop 0.45s ease;
}

@keyframes gh-wish-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.28); }
    100% { transform: scale(1.12); }
}

/* ── Info ── */
.gh-card__info {
    padding: 0.75rem 0.85rem 0.5rem;
}

.gh-card__store {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gh-emerald);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.5em;
}

.gh-card__title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-card__title a:hover {
    color: var(--gh-emerald);
}

/* ── Mint panel (auction / catalog) ── */
.gh-card__panel {
    margin: 0 0.65rem 0.65rem;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    background: var(--gh-mint-panel);
    border: 1px solid rgba(4, 93, 72, 0.08);
}

.gh-card__panel--auction {
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gh-card__panel--auction:hover {
    background: var(--gh-mint);
    border-color: rgba(4, 93, 72, 0.18);
}

/* Bid row */
.gh-card__bid-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
}

.gh-card__bid-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.gh-card__bid-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gh-emerald);
    margin-bottom: 0.15rem;
}

.gh-card__bid-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gh-emerald-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gh-card__was-price {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Bids badge — dark green box */
.gh-card__bid-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 58px;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    background: var(--gh-emerald);
    color: #fff;
    text-align: center;
}

.gh-card__bid-badge i {
    font-size: 1rem;
    line-height: 1;
}

.gh-card__bid-badge span {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
}

.gh-card__bid-badge--save {
    background: linear-gradient(160deg, #b8860b 0%, #c9a227 100%);
}

.gh-card__bid-badge--save strong {
    font-size: 0.72rem;
    font-weight: 800;
}

.gh-card__bid-badge--buy i {
    font-size: 0.9rem;
}

/* Timer */
.gh-card__timer-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #6b7280;
}

.gh-card__timer-label i {
    font-size: 0.75rem;
    color: var(--gh-emerald);
}

.gh-card__timer-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.gh-card__timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.25rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(4, 93, 72, 0.1);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.gh-card__timer-box strong {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.gh-card__timer-box small {
    margin-top: 0.1rem;
    font-size: 0.58rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: lowercase;
}

/* Catalog actions */
.gh-card__catalog-actions {
    display: flex;
    gap: 0.45rem;
}

.gh-card__btn {
    flex: 1;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border: none;
    border-radius: 9px;
    background: var(--gh-emerald);
    color: #fff !important;
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gh-card__btn:hover {
    background: var(--gh-emerald-dark);
}

.gh-card__btn--cart {
    flex: 0 0 36px;
    width: 36px;
    padding: 0;
    background: #fff;
    color: var(--gh-emerald) !important;
    border: 1px solid rgba(4, 93, 72, 0.2);
    font-size: 1rem;
}

.gh-card__btn--cart:hover {
    background: #fff;
    border-color: var(--gh-emerald);
}

/* Grid — home: 5 compact cards per row */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-products-grid .gh-card {
    border-radius: 12px;
}

.home-products-grid .gh-card:hover {
    transform: translateY(-2px);
}

.home-products-grid .gh-card__media {
    aspect-ratio: 1 / 0.8;
}

.home-products-grid .gh-card__tag {
    padding: 0.24rem 0.48rem;
    font-size: 0.56rem;
    gap: 0.22rem;
}

.home-products-grid .gh-card__tag i {
    font-size: 0.62rem;
}

.home-products-grid .gh-card__tag--save {
    min-width: 2.4rem;
    padding: 0.32rem 0.48rem 0.36rem;
    border-radius: 8px 8px 8px 3px;
}

.home-products-grid .gh-card__tag-save-label {
    font-size: 0.5rem;
}

.home-products-grid .gh-card__tag-save-value {
    font-size: 0.72rem;
}

.home-products-grid .gh-card__wish {
    width: 1.85rem;
    height: 1.85rem;
    top: 0.45rem;
    right: 0.45rem;
}

.home-products-grid .gh-card__wish-icon i {
    font-size: 0.88rem;
}

.home-products-grid .gh-card__tags--top {
    top: 0.45rem;
    left: 0.45rem;
}

.home-products-grid .gh-card__tags--bottom {
    left: 0.45rem;
    bottom: 0.45rem;
}

.home-products-grid .gh-card__info {
    padding: 0.5rem 0.55rem 0.3rem;
}

.home-products-grid .gh-card__store {
    margin-bottom: 0.1rem;
    font-size: 0.62rem;
}

.home-products-grid .gh-card__title {
    font-size: 0.76rem;
    min-height: 2.35em;
    line-height: 1.3;
}

.home-products-grid .gh-card__panel {
    margin: 0 0.4rem 0.4rem;
    padding: 0.5rem 0.55rem;
    border-radius: 9px;
}

.home-products-grid .gh-card__bid-row {
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.home-products-grid .gh-card__bid-label {
    font-size: 0.54rem;
    margin-bottom: 0.08rem;
}

.home-products-grid .gh-card__bid-price {
    font-size: 1rem;
}

.home-products-grid .gh-card__was-price {
    margin-top: 0.08rem;
    font-size: 0.62rem;
}

.home-products-grid .gh-card__bid-badge {
    min-width: 46px;
    padding: 0.3rem 0.35rem;
    border-radius: 8px;
    gap: 0.1rem;
}

.home-products-grid .gh-card__bid-badge i {
    font-size: 0.78rem;
}

.home-products-grid .gh-card__bid-badge span {
    font-size: 0.52rem;
}

.home-products-grid .gh-card__bid-badge--save strong {
    font-size: 0.6rem;
}

.home-products-grid .gh-card__timer-label {
    margin-bottom: 0.3rem;
    font-size: 0.62rem;
}

.home-products-grid .gh-card__timer-boxes {
    gap: 0.3rem;
}

.home-products-grid .gh-card__timer-box {
    padding: 0.28rem 0.15rem;
    border-radius: 7px;
}

.home-products-grid .gh-card__timer-box strong {
    font-size: 0.78rem;
}

.home-products-grid .gh-card__timer-box small {
    font-size: 0.5rem;
}

.home-products-grid .gh-card__catalog-actions {
    gap: 0.3rem;
}

.home-products-grid .gh-card__btn {
    min-height: 28px;
    padding: 0.3rem 0.45rem;
    font-size: 0.66rem;
    border-radius: 7px;
}

.home-products-grid .gh-card__btn--cart {
    flex: 0 0 28px;
    width: 28px;
    font-size: 0.85rem;
}

@media (max-width: 1399px) {
    .home-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

@media (max-width: 1100px) {
    .home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .home-products-grid .gh-card__bid-price {
        font-size: 0.92rem;
    }
}

@media (max-width: 400px) {
    .home-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Section header — app style */
.landing-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.landing-section-title-wrap::before {
    content: "";
    flex-shrink: 0;
    width: 4px;
    height: 1.35rem;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--gh-emerald, #045d48) 55%, #c9a227 100%);
}

.landing-section-title {
    position: relative;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--gh-emerald, #045d48) !important;
    padding-bottom: 0.2rem;
}

.landing-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 2px;
    border-radius: 1px;
    background: #c9a227;
}

.landing-see-more-card {
    border-radius: 999px !important;
    background: var(--gh-mint, #e8f5f1) !important;
    border-color: rgba(4, 93, 72, 0.15) !important;
    color: var(--gh-emerald, #045d48) !important;
    box-shadow: none !important;
}

/* Legacy */
.gems-harbor-card.card {
    all: unset;
    display: flex;
}

.gems-harbor-card .cta-button-group,
.gems-harbor-card .card-top-details,
.gems-harbor-card .ribbon-left {
    display: none !important;
}

.ssd-products-grid .gh-card {
    margin: 0 !important;
    height: 100%;
}
