/* Mobile-first florist storefront polish, compact vertical switcher, and category rail.
   Uses semantic tokens from theme-tokens.css for Light and Dark Mode support. */

body {
    background-color: var(--surface-page, #F7F8FC);
    color: var(--text-primary, #182234);
}

.storefront-home { --snow-crystals: url("/images/snow-crystals.svg?v=2"); }
.home-snow { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
    .storefront-home { isolation: isolate; }
    .home-snow {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
        color: rgb(72 113 157 / 78%);
    }
}
:root[data-theme="dark"] .home-snow {
    color: color-mix(in srgb, var(--text-secondary) 55%, transparent);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .home-snow {
        color: color-mix(in srgb, var(--text-secondary) 55%, transparent);
    }
}

.vertical-switch-section,
.hero-section,
.categories-section,
.todays-section {
    background: transparent;
}

/* ==================== VERTICAL SWITCH SECTION (Çikolata · Hediyelik) ==================== */
.vertical-switch-section {
    padding: clamp(10px, 1.5vh, 16px) 0 0;
}

/* The upper inset lets the product silhouettes extend beyond the card surface. */
.vertical-hub-strip {
    --product-rise: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 18px);
    padding-top: calc(var(--product-rise) + 5px);
}
.vertical-hub-card {
    --cover-ink: #fff5e7;
    --cover-surface: linear-gradient(106deg, #30201c 5%, #54372c 65%, #8b6450);
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    overflow: visible;
    min-width: 0;
    min-height: clamp(58px, calc(6vw - 10px), 76px);
    padding: 5px clamp(14px, 1.8vw, 24px);
    border: 0;
    border-radius: 14px;
    background: var(--cover-surface);
    color: var(--cover-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
}
.vertical-hub-card--gifts {
    --cover-ink: #432628;
    --cover-surface: linear-gradient(106deg, #f1ded3 5%, #e7c9bb 65%, #d3a699);
}
.vertical-hub-card__product {
    position: absolute;
    bottom: 3px;
    right: 5%;
    width: 34%;
    height: calc(100% + var(--product-rise) - 3px);
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    filter: drop-shadow(0 4px 3px rgb(41 19 12 / 20%));
    transform-origin: 50% 85%;
}
.vertical-hub-card__body {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 2px clamp(8px, 1vw, 14px);
    width: 62%;
}
.vertical-hub-card__title {
    font: var(--type-heading-weight) var(--type-section)/1.15 var(--font-ui);
    letter-spacing: -.035em;
}
.vertical-hub-card__desc {
    grid-area: 2 / 1 / 3 / -1;
    font-size: var(--type-label);
    line-height: 1.3;
}
.vertical-hub-card__soon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}
.vertical-hub-card__soon i { font-size: 9px; }
.vertical-hub-card:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }

@media (max-width: 679px) {
    .vertical-hub-strip {
        --product-rise: 14px;
        gap: 8px;
    }
    .vertical-hub-card {
        min-height: 48px;
        padding: 5px clamp(8px, 2.5vw, 14px);
        border-radius: 11px;
    }
    .vertical-hub-card__product {
        top: calc(-1 * var(--product-rise));
        bottom: auto;
        right: 3%;
        width: min(43%, 102px);
        height: 59px;
        object-position: right top;
    }
    .vertical-hub-card--gifts .vertical-hub-card__product { width: min(38%, 82px); }
    .vertical-hub-card__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        width: 54%;
    }
    .vertical-hub-card__title { font-size: var(--type-card); }
    .vertical-hub-card__desc { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .vertical-hub-card__product {
        animation: collection-product-float 3.6s ease-in-out infinite alternate both;
        animation-play-state: paused;
        transition: scale .4s ease;
    }
    .vertical-hub-card.is-in-view .vertical-hub-card__product { animation-play-state: running; }
    .vertical-hub-card--gifts .vertical-hub-card__product { animation-direction: alternate-reverse; }
    @keyframes collection-product-float {
        from { transform: translateY(1px) rotate(-1.5deg); }
        to { transform: translateY(-4px) rotate(1.5deg); }
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .vertical-hub-card:hover .vertical-hub-card__product { scale: 1.035; }
}

/* ==================== VERTICAL COMING SOON MODAL ==================== */
.vertical-soon {
    --stage-base: #3e2523;
    --stage-light: #a76e4b;
    --foil: #f7d09d;
    box-sizing: border-box;
    width: min(460px, calc(100% - 36px));
    max-width: none;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--surface-card);
    color: var(--text-primary);
    box-shadow: 0 24px 84px #10131d52;
}
.vertical-soon[data-vertical="gifts"] {
    --stage-base: #253c40;
    --stage-light: #70958b;
    --foil: #e6dab7;
}
.vertical-soon::backdrop { background: rgb(15 19 29 / .62); backdrop-filter: blur(5px); }
body:has(.vertical-soon[open]) { overflow: hidden; }
.vertical-soon-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    place-items: center;
    height: clamp(182px, 27vh, 240px);
    background: radial-gradient(ellipse at 51% 12%, var(--stage-light), transparent 76%), var(--stage-base);
}
.vertical-soon-stage::after {
    content: "";
    position: absolute;
    bottom: 10%;
    width: 46%;
    height: 6%;
    border-radius: 50%;
    background: #160e0e55;
    filter: blur(8px);
    z-index: -1;
}
.vertical-soon-orbit {
    position: absolute;
    z-index: -1;
    width: 114%;
    height: 74%;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--foil) 48%, transparent);
    transform: rotate(-18deg);
}
.vertical-soon-orbit::before {
    content: "";
    position: absolute;
    inset: 8px -12px -8px 12px;
    border: 1px solid color-mix(in srgb, var(--foil) 22%, transparent);
    border-radius: inherit;
}
.vertical-soon-product {
    width: 68%;
    height: 84%;
    object-fit: contain;
    filter: drop-shadow(0 8px 8px #21151833);
}
.vertical-soon-status, .vertical-soon-close {
    position: absolute;
    z-index: 1;
    top: 14px;
    color: #fffaf2;
    background: rgb(24 20 24 / .55);
}
.vertical-soon-status {
    left: 16px;
    padding: 5px 10px;
    border: 1px solid #ffffff40;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .75rem;
    font-weight: 650;
}
.vertical-soon-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--foil); }
.vertical-soon-close {
    right: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #ffffff45;
    border-radius: 50%;
    cursor: pointer;
}
.vertical-soon-copy { padding: clamp(20px, 5vw, 32px); }
.vertical-soon-copy h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 1.95rem); line-height: 1.16; letter-spacing: -.035em; }
.vertical-soon-copy p { margin: 10px 0 22px; color: var(--text-secondary); line-height: 1.55; }
.vertical-soon-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vertical-soon-return, .vertical-soon-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}
.vertical-soon-return { padding: 8px 18px; border: 0; border-radius: 12px; background: var(--brand-primary-solid); color: #fff; }
.vertical-soon-return:hover { background: var(--brand-primary-solid-hover); }
.vertical-soon-contact { gap: 7px; color: var(--text-primary); text-decoration: none; }
.vertical-soon-contact:hover { text-decoration: underline; }
.vertical-soon :focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
@media (max-width: 599px) {
    .vertical-soon { --entry-offset: 100%; width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .vertical-soon-copy { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
    .vertical-soon[open] .vertical-soon-snow {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: -1;
    }
    .vertical-soon-snow::before, .vertical-soon-snow::after {
        content: "";
        position: absolute;
        inset: -112px -24px 0;
        background-image: var(--snow-crystals);
        opacity: .56;
        background-size: 159px 112px;
    }
    .vertical-soon[open] .vertical-soon-snow::before { animation: vertical-snowfall 6.8s linear -3.2s infinite; }
    .vertical-soon[open] .vertical-soon-snow::after {
        background-position: 53px 26px;
        background-size: 207px 112px;
        opacity: .48;
        animation: vertical-snowfall 10s linear -7s infinite;
    }
    @keyframes vertical-snowfall {
        from { transform: translate(0, 0); }
        50% { transform: translate(6px, 56px); }
        to { transform: translate(0, 112px); }
    }
    .vertical-soon[open] { animation: vertical-reveal .38s cubic-bezier(.22,.7,.15,1) both; }
    .vertical-soon[open] .vertical-soon-product { animation: vertical-hover 4.8s ease-in-out infinite alternate; }
    .vertical-soon[open][data-vertical="gifts"] .vertical-soon-product { animation-direction: alternate-reverse; }
    .vertical-soon[open] .vertical-soon-orbit { animation: vertical-orbit 7s ease-in-out infinite alternate; }
    .vertical-soon[open] .vertical-soon-stage::after { animation: vertical-shadow 4.8s ease-in-out infinite alternate; }
    .vertical-soon[open][data-vertical="gifts"] .vertical-soon-stage::after { animation-direction: alternate-reverse; }
    @keyframes vertical-reveal {
        from { opacity: .35; transform: translate3d(0, var(--entry-offset, 32px), 0); }
        to { opacity: 1; transform: translate3d(0, 0, 0); }
    }
    @keyframes vertical-hover { from { transform: translateY(3px) rotate(-1deg); } to { transform: translateY(-4px) rotate(1.25deg); } }
    @keyframes vertical-shadow { to { transform: scaleX(.85); opacity: .65; } }
    @keyframes vertical-orbit { to { transform: rotate(-13deg) translateY(4px); } }
}

/* ==================== SECTION HEADERS ==================== */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.home-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.home-section-heading > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.home-section-header h2,
.home-section-header .section-title-main {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--type-section) !important;
    font-weight: var(--type-heading-weight) !important;
    color: var(--text-primary, #0F172A);
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

.home-section-header .section-subtitle {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12.5px;
    color: var(--text-secondary, #64748B);
    font-weight: 500;
    line-height: 1.25;
}

.section-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.home-section-heading :is(.section-icon-badge--best, .section-icon-badge--rec) {
    width: clamp(38px, 4vw, 50px);
    height: auto;
    aspect-ratio: 1;
}

:is(.bestsellers-section, .todays-section) .home-section-pill-btn {
    min-height: 44px;
    box-sizing: border-box;
}

:is(.bestsellers-section, .todays-section) .home-section-pill-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.home-section-header .home-section-pill-btn,
.home-section-header .view-all-btn.home-section-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 2px 5px 10px !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--text-secondary, #475569) !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    line-height: 1.2 !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.home-section-header .home-section-pill-btn i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    border: 1px solid var(--border-subtle);
    color: var(--brand-primary);
    font-size: 10px;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
    .home-section-header .home-section-pill-btn:hover {
        color: var(--brand-primary) !important;
        background: transparent !important;
    }

    .home-section-header .home-section-pill-btn:hover i {
        background: var(--brand-primary-solid);
        border-color: var(--brand-primary-solid);
        color: #FFFFFF;
        transform: translateX(3px);
    }
}

/* ==================== COMPACT BACKGROUNDLESS CATEGORIES SECTION ==================== */
.categories-section {
    padding: clamp(16px, 2vw, 28px) 0 10px;
}

.categories-section .home-section-header {
    border-top: 1px solid var(--border-strong);
    padding-top: clamp(12px, 1.6vw, 20px);
    margin-bottom: 12px;
}

.categories-section #categoryGrid .category-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-decoration: none;
}

.categories-section #categoryGrid .category-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.categories-section #categoryGrid .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.14));
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .categories-section #categoryGrid .category-icon img {
        filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    }
}

:root[data-theme="dark"] .categories-section #categoryGrid .category-icon img {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

/* Desktop Categories (single clean 8-col backgroundless row) */
@media (min-width: 1025px) {
    .categories-section #categoryGrid.category-grid {
        display: grid !important;
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .categories-section #categoryGrid .category-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 6px 4px !important;
        gap: 8px !important;
        transition: color 0.18s ease;
    }

    .categories-section #categoryGrid .category-icon {
        width: 60px !important;
        height: 60px !important;
        --cat-size: 60px !important;
    }

    .categories-section #categoryGrid .category-item span {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: var(--text-primary);
        text-align: center;
        line-height: 1.25;
        min-height: 2.5em;
        max-height: 2.5em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.18s ease;
    }
}

@media (min-width: 1025px) and (hover: hover) {
    .categories-section #categoryGrid .category-item:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }

    .categories-section #categoryGrid .category-item:hover .category-icon img {
        filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.22));
    }

    .categories-section #categoryGrid .category-item:hover span {
        color: var(--brand-primary);
    }
}

/* Tablet Categories (single clean 8-col backgroundless row) */
@media (min-width: 769px) and (max-width: 1024px) {
    .vertical-switch-section {
        padding: clamp(8px, 1.2vh, 13px) 0 0;
    }

    .categories-section #categoryGrid.category-grid {
        display: grid !important;
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .categories-section #categoryGrid .category-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 4px 2px !important;
        gap: 6px !important;
    }

    .categories-section #categoryGrid .category-icon {
        width: 50px !important;
        height: 50px !important;
        --cat-size: 50px !important;
        flex-shrink: 0;
    }

    .categories-section #categoryGrid .category-item span {
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: var(--text-primary);
        text-align: center;
        line-height: 1.2;
        min-height: 2.4em;
        max-height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bestsellers-section {
        padding: 20px 0 18px;
    }

    .bestsellers-section #flashSaleProducts.products-slider {
        gap: 14px !important;
    }

    .bestsellers-section #flashSaleProducts .product-card,
    .bestsellers-section #flashSaleProducts .product-skeleton {
        flex: 0 0 calc((100% - 42px) / 3.22) !important;
        width: calc((100% - 42px) / 3.22) !important;
        min-width: 210px !important;
        max-width: 256px !important;
    }
}

/* ==================== BEST SELLERS CAROUSEL ==================== */
.bestsellers-section {
    position: relative;
    padding: 30px 0 28px;
    background: var(--surface-band-fade);
    border-top: none;
    border-bottom: none;
    margin: 6px 0 6px;
}

.bestsellers-section::before,
.bestsellers-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-subtle) 18%,
        var(--border-subtle) 82%,
        transparent 100%
    );
    pointer-events: none;
}

.bestsellers-section::before {
    top: 0;
}

.bestsellers-section::after {
    bottom: 0;
}

.bestsellers-section .flash-sale-container {
    position: relative;
    display: block;
    margin-top: 6px;
    overflow: visible;
}

.bestsellers-section #flashSaleProducts.products-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 4px 18px !important;
    margin: -6px -4px 0 !important;
    scroll-padding-inline: 4px;
    outline: none;
}

.bestsellers-section #flashSaleProducts.products-slider::-webkit-scrollbar {
    display: none;
}

.bestsellers-section #flashSaleProducts.products-slider.is-dragging {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    cursor: grabbing !important;
    user-select: none;
}

.bestsellers-section #flashSaleProducts.products-slider.is-dragging * {
    user-select: none;
}

@media (hover: hover) and (pointer: fine) {
    .bestsellers-section #flashSaleProducts.products-slider {
        cursor: grab;
    }
}

.bestsellers-section #flashSaleProducts .product-card,
.bestsellers-section #flashSaleProducts .product-skeleton {
    flex: 0 0 calc((100% - 64px) / 4.22) !important;
    width: calc((100% - 64px) / 4.22) !important;
    min-width: 224px !important;
    max-width: 280px !important;
    scroll-snap-align: start;
    animation: none !important;
    opacity: 1 !important;
}

.bestsellers-section #flashSaleProducts .product-card:not(:hover) {
    transform: none !important;
}

.bestsellers-section .flash-sale-container[data-can-scroll-left="false"][data-can-scroll-right="true"] #flashSaleProducts {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
}

.bestsellers-section .flash-sale-container[data-can-scroll-left="true"][data-can-scroll-right="true"] #flashSaleProducts {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 36px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 36px), transparent 100%);
}

.bestsellers-section .flash-sale-container[data-can-scroll-left="true"][data-can-scroll-right="false"] #flashSaleProducts {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 100%);
}

.bestsellers-section .flash-sale-container[data-can-scroll-left="false"][data-can-scroll-right="false"] #flashSaleProducts {
    -webkit-mask-image: none;
    mask-image: none;
}

.bestsellers-progress {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.bestsellers-progress[hidden] {
    display: none !important;
}

.bestsellers-progress__track {
    width: 112px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-subtle);
    overflow: hidden;
}

.bestsellers-progress__bar {
    height: 100%;
    width: 28%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-primary-solid), var(--brand-accent-solid));
    transform: translateX(0);
    will-change: transform;
    transition: width 0.2s ease;
}

@media (min-width: 769px) {
    .bestsellers-section .flash-nav-btn {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--border-strong);
        background: var(--surface-glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: var(--text-primary);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 6;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s ease;
    }

    .bestsellers-section .flash-nav-btn.prev {
        left: 10px;
    }

    .bestsellers-section .flash-nav-btn.next {
        right: 10px;
    }

    .bestsellers-section .flash-nav-btn:hover {
        background: var(--brand-primary-solid);
        border-color: var(--brand-primary-solid);
        color: #FFFFFF;
        transform: translateY(-50%) scale(1.07);
    }

    .bestsellers-section .flash-nav-btn:disabled,
    .bestsellers-section .flash-nav-btn.is-hidden {
        opacity: 0 !important;
        transform: translateY(-50%) scale(0.9);
        pointer-events: none;
        visibility: hidden;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .bestsellers-section .flash-nav-btn {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
    }
}

:root[data-theme="dark"] .bestsellers-section .flash-nav-btn {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
}

@media (min-width: 1260px) {
    .bestsellers-section .flash-nav-btn.prev {
        left: -22px;
    }

    .bestsellers-section .flash-nav-btn.next {
        right: -22px;
    }
}

/* ==================== RECOMMENDED PRODUCTS ==================== */
.todays-section {
    padding: 18px 0 40px;
}

.recommended-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 16px;
    border-radius: 16px;
    background: var(--surface-card);
    border: 1px dashed var(--border-strong);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.todays-section .load-more-btn {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 26px auto 0;
    min-height: 46px;
    padding: 12px 30px;
    border-radius: 12px;
    background: var(--surface-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.todays-section .load-more-btn:hover {
    background: var(--brand-primary-solid);
    border-color: var(--brand-primary-solid);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.26);
    transform: translateY(-1px);
}

/* ==================== MOBILE-FIRST COMPACT REFINEMENTS ==================== */
@media (max-width: 768px) {
    .vertical-switch-section {
        padding: clamp(6px, 1vh, 10px) 0 0;
    }

    .categories-section {
        padding: 16px 0 6px !important;
    }

    .categories-section .home-section-header {
        margin-bottom: 8px;
    }

    .home-section-header {
        margin-bottom: 10px;
    }

    .home-section-header h2,
    .home-section-header .section-title-main {
        font-size: var(--type-section) !important;
    }

    .home-section-header .section-subtitle {
        font-size: 12px;
    }

    .section-icon-badge {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 13px;
    }

    .home-section-header .home-section-pill-btn,
    .home-section-header .view-all-btn.home-section-pill-btn,
    .categories-section .home-section-header .home-section-pill-btn {
        font-size: 12px !important;
        padding: 4px 2px 4px 6px !important;
        gap: 6px !important;
        border: none !important;
        border-width: 0 !important;
        background: transparent !important;
        color: var(--brand-primary) !important;
    }

    .home-section-header .home-section-pill-btn i {
        width: 20px;
        height: 20px;
        font-size: 9.5px;
    }

    /* Ultra-compact backgroundless mobile category rail (shows 5+ categories cleanly) */
    .categories-section #categoryGrid.category-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 4px 12px 6px !important;
        margin: 0 -10px !important;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories-section #categoryGrid.category-grid::-webkit-scrollbar {
        display: none;
    }

    .categories-section #categoryGrid .category-item {
        flex: 0 0 62px !important;
        min-width: 62px !important;
        width: 62px !important;
        padding: 2px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        scroll-snap-align: start;
        text-decoration: none;
    }

    .categories-section #categoryGrid .category-icon {
        width: 48px !important;
        height: 48px !important;
        --cat-size: 48px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .categories-section #categoryGrid .category-icon img {
        object-fit: contain;
    }

    .categories-section #categoryGrid .category-item span {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--text-primary, #1E293B);
        line-height: 1.18 !important;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Best Sellers Mobile Carousel */
    .bestsellers-section {
        padding: 18px 0 16px !important;
        margin: 4px 0 4px !important;
    }

    .bestsellers-section .home-section-header {
        padding: 0 12px;
        margin-bottom: 10px;
    }

    .bestsellers-section .flash-nav-btn {
        display: none !important;
    }

    .bestsellers-section #flashSaleProducts.products-slider {
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 6px 12px 12px !important;
        margin: 0 -10px !important;
        scroll-padding-inline: 12px;
    }

    .bestsellers-section .flash-sale-container[data-can-scroll-left="false"][data-can-scroll-right="true"] #flashSaleProducts {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    }

    .bestsellers-section .flash-sale-container[data-can-scroll-left="true"][data-can-scroll-right="true"] #flashSaleProducts {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 24px), transparent 100%);
    }

    .bestsellers-section .flash-sale-container[data-can-scroll-left="true"][data-can-scroll-right="false"] #flashSaleProducts {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 100%);
    }

    .bestsellers-section #flashSaleProducts .product-card,
    .bestsellers-section #flashSaleProducts .product-skeleton {
        flex: 0 0 calc(46vw - 10px) !important;
        width: calc(46vw - 10px) !important;
        min-width: 158px !important;
        max-width: 196px !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .bestsellers-section #flashSaleProducts .product-card .product-image {
        aspect-ratio: var(--product-card-image-ratio) !important;
    }

    .bestsellers-section #flashSaleProducts .product-card .product-info {
        padding: var(--product-card-body-padding) !important;
        gap: 4px !important;
    }

    .bestsellers-progress {
        margin-top: 2px;
    }

    .bestsellers-progress__track {
        width: 84px;
        height: 3.5px;
    }

    /* Recommended Grid */
    .todays-section {
        --recommended-columns: 2;
        --recommended-gap: 10px;
        padding: 12px 0 28px !important;
    }

    .todays-section > .container {
        padding-inline: 10px !important;
    }

    .todays-section .load-more-btn {
        width: 100%;
        display: flex;
        margin-top: 18px;
    }
}

.categories-section #categoryGrid .category-skeleton {
    flex: 0 0 62px;
    padding: 4px 0;
    background: transparent;
    gap: 8px;
}

.categories-section .category-skeleton .skeleton-circle {
    width: clamp(48px, 5vw, 60px);
    height: auto;
    aspect-ratio: 1;
}

.categories-section .category-skeleton .skeleton-line {
    width: 44px;
    height: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .categories-section .category-skeleton span { animation: none; }
}
