/* ── CSS VARIABLES ── */
:root {
    --yellow:       #FFD600;
    --yellow-light: #FFF176;
    --yellow-dark:  #F9A825;
    --blue:         #1565C0;
    --blue-light:   #1E88E5;
    --blue-soft:    #E3F0FF;
    --white:        #FFFFFF;
    --off-white:    #FFFDE7;
    --text-dark:    #1A1A2E;
    --text-mid:     #4A4A6A;
    --radius-lg:    20px;
    --radius-md:    14px;
    --radius-pill:  999px;
    --shadow:       0 8px 28px rgba(0,0,0,0.08);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── PAGE SHELL ── */
.shop-shell {
    margin-left: 90px;
    padding: 28px 20px 60px;
    min-height: 100vh;
}

.dashboard-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ── SECTION CARD ── */
.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    border: 1.5px solid rgba(255, 214, 0, 0.25);
}

.section-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.section-subtitle {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: 0.01em;
}

/* ── JUST FOR YOU — creative section shell ── */
.section-card--picks {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 42%, #fffde7 100%);
    box-shadow:
        0 4px 6px rgba(21, 101, 192, 0.04),
        0 20px 48px rgba(21, 101, 192, 0.1);
}

.section-card--picks::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, var(--yellow) 0%, #fff9c4 35%, var(--blue-light) 70%, var(--yellow-dark) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.section-card--picks .section-card__decor {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.35) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.section-card--picks .section-card__decor::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -180px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.12) 0%, transparent 70%);
}

.section-card--picks .section-header,
.section-card--picks .picks-carousel-shell {
    position: relative;
    z-index: 1;
}

.section-card--picks .section-header {
    margin-bottom: 0;
    padding: 22px 22px 14px;
}

.section-title-icon--picks {
    background: linear-gradient(135deg, var(--yellow) 0%, #ffeb3b 100%);
    box-shadow: 0 4px 14px rgba(255, 214, 0, 0.45);
}

.picks-carousel-shell {
    margin: 0 14px 18px;
    padding: 16px 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(21, 101, 192, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

/* ── DAILY DISCOVERIES — creative section shell ── */
.section-card--discover {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: none;
    background: linear-gradient(160deg, #fff 0%, #eef6ff 55%, #fff8e1 100%);
    box-shadow:
        0 4px 6px rgba(26, 26, 46, 0.04),
        0 22px 50px rgba(30, 136, 229, 0.12);
}

.section-card--discover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg, var(--yellow) 0%, #fff9c4 35%, var(--blue-light) 70%, var(--yellow-dark) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.section-card--discover .section-card__decor--discover {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 88%, rgba(255, 214, 0, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 88% 20%, rgba(30, 136, 229, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.section-card--discover .section-header,
.section-card--discover .discovery-grid-shell,
.section-card--discover .discovery-load-more,
.section-card--discover .discovery-no-more {
    position: relative;
    z-index: 1;
}

.section-card--discover .section-header {
    margin-bottom: 0;
    padding: 24px 22px 12px;
}

.section-title-icon--discover {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}

.discovery-grid-shell {
    margin: 0 14px 14px;
    padding: 18px 14px 20px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 253, 231, 0.65) 100%);
    border: 2px solid rgba(21, 101, 192, 0.08);
    box-shadow:
        inset 0 2px 12px rgba(21, 101, 192, 0.04),
        0 8px 24px rgba(21, 101, 192, 0.06);
}

.section-card--discover .discovery-load-more,
.section-card--discover .discovery-no-more {
    margin: 0 14px 14px;
    border-radius: 0 0 14px 14px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    position: static;
}

.section-title::after { display: none; }
.section-title i { color: inherit; }

.section-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 15px;
    flex-shrink: 0;
}

.view-all {
    font-size: 13px;
    font-weight: 800;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-all:hover { background: var(--blue); color: #fff; }

/* ── HERO BANNER ── */
.hero-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark), var(--yellow));
    z-index: 2;
}

.hero-swiper { border-radius: var(--radius-lg); overflow: hidden; }
.hero-swiper .swiper-slide { position: relative; }

.hero-swiper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(21,101,192,0.82) 0%, rgba(21,101,192,0.3) 55%, transparent 80%);
}

.banner-content {
    position: absolute;
    bottom: 28px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 340px;
    z-index: 1;
}

.banner-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.06em;
    width: fit-content;
}

.banner-content h2 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    margin-bottom: 0;
    text-shadow: none;
}

.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: var(--yellow);
    color: var(--blue);
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 14px;
    width: fit-content;
    box-shadow: 0 8px 22px rgba(255,214,0,0.5);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255,214,0,0.65);
}

.btn-shop-now:hover i { transform: none; }

.swiper-pagination-bullet { background: rgba(255,255,255,0.6); }
.swiper-pagination-bullet-active { background: var(--yellow); }
.swiper-button-next, .swiper-button-prev { color: var(--yellow); }

/* ── FLASH DEALS BAR ── */
.flash-bar {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    box-shadow: 0 8px 28px rgba(21,101,192,0.35);
}

.flash-icon { font-size: 28px; color: var(--yellow); flex-shrink: 0; }

.flash-text h3 { font-size: 17px; font-weight: 900; margin: 0; }
.flash-text p  { font-size: 13px; opacity: 0.85; font-weight: 600; margin: 0; }

.flash-timer {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.flip-sep {
    font-size: 22px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    padding-bottom: 18px;
    user-select: none;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    perspective: 520px;
}

.flip-lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-transform: uppercase;
}

.flip-clock {
    --flip-h: 56px;
    --flip-w: 58px;
    position: relative;
    width: var(--flip-w);
    height: var(--flip-h);
    border-radius: 10px;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.22),
        0 8px 18px rgba(0, 0, 0, 0.18);
}

.flip-clock::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    z-index: 10;
    pointer-events: none;
}

.flip-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-half--top,
.flip-half--top-flip {
    top: 0;
    z-index: 1;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #fffef8 0%, #fff4b8 100%);
}

.flip-half--bottom,
.flip-half--bottom-flip {
    bottom: 0;
    z-index: 1;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #fff0a0 0%, #ffe566 100%);
}

.flip-digit {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--flip-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--blue);
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    pointer-events: none;
    user-select: none;
}

.flip-half--top .flip-digit,
.flip-half--top-flip .flip-digit {
    top: 0;
}

.flip-half--bottom .flip-digit,
.flip-half--bottom-flip .flip-digit {
    bottom: 0;
    top: auto;
}

.flip-half--top-flip {
    transform-origin: 50% 100%;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.flip-half--bottom-flip {
    transform-origin: 50% 0%;
    transform: rotateX(180deg);
    z-index: 2;
    visibility: hidden;
}

.flip-clock.is-flipping .flip-half--top {
    z-index: 0;
}

.flip-clock.is-flipping .flip-half--bottom-flip {
    visibility: visible;
    z-index: 3;
    animation: flip-reveal-bottom var(--flip-duration, 450ms) linear forwards;
}

.flip-clock.is-flipping .flip-half--top-flip {
    animation: flip-fold-top var(--flip-duration, 450ms) linear forwards;
}

@keyframes flip-fold-top {
    0%   { transform: rotateX(0deg); }
    100% { transform: rotateX(-180deg); }
}

@keyframes flip-reveal-bottom {
    0%   { transform: rotateX(180deg); }
    100% { transform: rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .flip-clock.is-flipping .flip-half--top-flip,
    .flip-clock.is-flipping .flip-half--bottom-flip {
        animation: none;
    }
    .flip-half--bottom-flip { visibility: hidden !important; }
}

/* ── CATEGORIES ── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.category-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 2px solid var(--yellow-light);
    padding: 16px 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    border-color: var(--yellow);
    background: var(--yellow-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255,214,0,0.35);
}

.category-img-container {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255,214,0,0.4);
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h4 { font-size: 12px; font-weight: 800; color: var(--text-dark); margin: 0; }

/* ── PRODUCT CARDS ── */
.recommended-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

/* Just For You + Daily Discoveries — product cards */
.product-card,
.discovery-card {
    --shop-card-radius: 18px;
    position: relative;
    background: #fff;
    border-radius: var(--shop-card-radius);
    border: 1px solid rgba(21, 101, 192, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(26, 26, 46, 0.04),
        0 10px 28px rgba(21, 101, 192, 0.07);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease;
}

/* Just For You cards */
.section-card--picks .product-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 214, 0, 0.35);
    box-shadow:
        0 2px 8px rgba(21, 101, 192, 0.06),
        0 12px 28px rgba(255, 214, 0, 0.15);
}

.section-card--picks .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow) 0%, #fff59d 50%, var(--blue-light) 100%);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.section-card--picks .product-card:hover::before {
    opacity: 1;
}

.section-card--picks .product-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--yellow);
    box-shadow:
        0 8px 20px rgba(21, 101, 192, 0.1),
        0 24px 48px rgba(255, 214, 0, 0.28);
}

.section-card--picks .product-img-container {
    background:
        radial-gradient(ellipse 80% 70% at 50% 30%, rgba(255, 253, 231, 0.95) 0%, transparent 70%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* Daily Discoveries cards */
.section-card--discover .discovery-card {
    border-radius: 16px;
    border: 1px solid rgba(21, 101, 192, 0.1);
    box-shadow:
        0 2px 6px rgba(26, 26, 46, 0.05),
        0 10px 24px rgba(30, 136, 229, 0.08);
}

.section-card--discover .discovery-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    border-color: rgba(30, 136, 229, 0.35);
    box-shadow:
        0 6px 16px rgba(21, 101, 192, 0.12),
        0 20px 40px rgba(30, 136, 229, 0.15);
}

.section-card--discover .discovery-img {
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 214, 0, 0.25) 0%, transparent 45%),
        linear-gradient(145deg, #eef6ff 0%, #fff 55%, #fffde7 100%);
}

.section-card--picks .product-card.skeleton::before {
    display: none;
}

.product-img-container,
.discovery-img {
    position: relative;
    flex-shrink: 0;
    padding: 20px 16px 14px;
    background: #fff;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-card--picks .product-img-container::after,
.section-card--discover .discovery-img::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.discovery-img {
    height: auto;
}

.product-card__img-link,
.discovery-card__img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.product-img-container img,
.discovery-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 148px;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-img-container img,
.discovery-card:hover .discovery-img img {
    transform: scale(1.06);
}

.shop-card__quick-view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 1px solid rgba(255, 214, 0, 0.25);
    box-shadow: 0 -6px 18px rgba(21, 101, 192, 0.35);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}

.shop-card__quick-view i {
    font-size: 14px;
    color: var(--yellow);
}

.product-card:hover .shop-card__quick-view,
.discovery-card:hover .shop-card__quick-view {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.shop-card__quick-view:hover {
    background: linear-gradient(135deg, var(--blue-light) 0%, #0d47a1 100%);
    box-shadow: 0 -8px 22px rgba(21, 101, 192, 0.45);
}

.product-info,
.discovery-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.discovery-info {
    display: block;
}

.section-card--picks .product-info {
    background: linear-gradient(180deg, #fff 0%, #fffef5 100%);
    border-top: 1px solid rgba(255, 214, 0, 0.2);
}

.section-card--discover .discovery-info {
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
    border-top: 1px dashed rgba(21, 101, 192, 0.1);
}

.section-card--picks .product-meta > div,
.section-card--discover .discovery-info .price {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(227, 240, 255, 0.65);
    width: fit-content;
    max-width: 100%;
}

.product-info h4,
.discovery-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    min-height: 0;
    max-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 2px;
}

.product-meta > div,
.discovery-info .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.price,
.discovery-info .price,
.discount-price {
    font-weight: 900;
    font-size: 16px;
    color: var(--blue);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.discovery-info .price {
    margin: 0;
    font-size: 15px;
}

.original-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #9e9eb8;
    font-weight: 600;
}

.discount-price {
    color: var(--blue);
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
}

.product-card__engagement,
.discovery-card__engagement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #4a4a68;
}

.product-card__rating-badge,
.discovery-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fff9e6;
    border: 1px solid rgba(249, 168, 37, 0.55);
    border-radius: 8px;
    color: #1a1a2e;
}

.product-card__rating-badge .fa-star,
.discovery-card__rating .fa-star {
    color: #ffc107;
    font-size: 11px;
}

.product-card__meta-sep,
.discovery-card__engagement-sep {
    width: 1px;
    height: 14px;
    background: #e0e0e8;
}

.product-card__sold,
.discovery-card__sold {
    font-variant-numeric: tabular-nums;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-controls { display: flex; gap: 8px; }

.carousel-prev, .carousel-next {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--yellow);
    background: var(--white);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.carousel-prev:hover, .carousel-next:hover { background: var(--yellow); }

/* ── TOP SELLING ── */
.top-products-list { display: flex; flex-direction: column; gap: 12px; }

.top-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.top-product-link:hover .top-product-item {
    border-color: var(--yellow);
    background: var(--yellow-light);
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 2px solid rgba(255,214,0,0.2);
    transition: all 0.2s;
}

.top-product-item:hover { border-color: var(--yellow); background: var(--yellow-light); }

.rank {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ececee;
    color: #6b6b7a;
    border: 2px solid #d4d4dc;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

/* Rank 1 — gold fill + gold border */
.top-product-link:nth-child(1) .rank {
    background: linear-gradient(145deg, #ffe44d 0%, var(--yellow) 50%, var(--yellow-dark) 100%);
    color: var(--blue);
    border: 2.5px solid #d4a017;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(255, 214, 0, 0.45);
}

/* Rank 2 — silver fill + silver border */
.top-product-link:nth-child(2) .rank {
    background: linear-gradient(145deg, #fafafa 0%, #e0e0e0 100%);
    color: #424242;
    border: 2.5px solid #a8a9ad;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Rank 3 — bronze fill + bronze border */
.top-product-link:nth-child(3) .rank {
    background: linear-gradient(145deg, #ffe0b2 0%, #ffcc80 100%);
    color: #5d4037;
    border: 2.5px solid #b87333;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.28);
}

/* Rank 4+ — plain gray */
.top-product-link:nth-child(n+4) .rank {
    background: #ececee;
    color: #7a7a88;
    border: 2px solid #d4d4dc;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

.product-img.small {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--white);
    padding: 4px;
    border: 1.5px solid rgba(255,214,0,0.3);
    flex-shrink: 0;
}

.product-details { flex: 1; min-width: 0; }
.product-details h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.sold {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-light);
    background: var(--blue-soft);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-left: 8px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-mid);
}

.empty-state i { font-size: 36px; margin-bottom: 10px; opacity: 0.4; display: block; }
.empty-state h4 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.empty-state p  { font-size: 13px; margin: 0; }

/* ── PROMO STRIP ── */
.yellow-strip {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 28px rgba(255,214,0,0.4);
}

.strip-text h3 { font-size: 18px; font-weight: 900; color: var(--blue); margin: 0; }
.strip-text p  { font-size: 13px; color: var(--text-mid); font-weight: 600; margin-top: 2px; }

.strip-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: var(--yellow);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 5px 16px rgba(21,101,192,0.4);
}

.strip-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(21,101,192,0.55); }

/* ── DAILY DISCOVERIES ── */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 18px;
}

.discovery-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 700;
}
.discovery-load-more .discovery-spinner {
    border: 4px solid var(--yellow-light);
    border-top-color: var(--blue);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
}
.discovery-no-more {
    text-align: center;
    padding: 20px;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 700;
}

/* ── SKELETON ── */
.skeleton {
    background: linear-gradient(90deg, #f5f5dc 25%, #fffde7 50%, #f5f5dc 75%);
    background-size: 200% 100%;
    animation: skeleton-load 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-load {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── LOADING OVERLAY ── */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 253, 231, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

.spinner {
    border: 5px solid var(--yellow-light);
    border-top: 5px solid var(--blue);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-overlay p {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--blue);
    font-size: 15px;
}

/* ── FLOATING NAV ── */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1.5px solid rgba(255, 214, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.floating-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--blue);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.floating-nav a:hover {
    background: var(--blue);
    color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21,101,192,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .shop-shell { margin-left: 80px; }
    .banner-content h2 { font-size: 28px; }
    .discovery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 992px) {
    .discovery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    .shop-shell { margin-left: 0; padding-top: 20px; }
    .hero-swiper img { height: 220px; }
    .banner-content { left: 30px; bottom: 28px; max-width: 340px; }
    .banner-content h2 { font-size: 22px; margin-bottom: 0; }
    .banner-content p { font-size: 14px; margin-bottom: 0; }
    .btn-shop-now { padding: 10px 22px; font-size: 14px; }
    .flash-bar { flex-wrap: wrap; }
    .flash-timer {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding-top: 4px;
    }
    .flip-clock {
        --flip-h: 44px;
        --flip-w: 46px;
    }
    .flip-digit { font-size: 26px; }
    .flip-sep { font-size: 18px; padding-bottom: 16px; }
    .yellow-strip { flex-direction: column; align-items: flex-start; }
    .category-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
    .discovery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .floating-nav { right: 10px; padding: 8px 6px; }
    .floating-nav a { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .shop-shell { padding: 18px 14px 50px; }
    .banner-content { left: 30px; bottom: 28px; max-width: 340px; }
    .section-title { font-size: 19px; }
    .section-subtitle { font-size: 12px; }
    .section-card--picks .section-header,
    .section-card--discover .section-header {
        padding-left: 16px;
        padding-right: 16px;
    }
    .picks-carousel-shell,
    .discovery-grid-shell {
        margin-left: 10px;
        margin-right: 10px;
        padding: 12px 10px 14px;
    }
    .category-grid,
    .recommended-carousel,
    .discovery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recommended-carousel { gap: 16px; }
}