/* Storefront system-default landing — non-critical styles (critical shell stays inline). */

/* ── Product grid: CSS Grid (Bootstrap-independent → stable CLS) ── */
#productsContainer.row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
#productsContainer.row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
@media (min-width: 768px) {
    #productsContainer.row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
    #productsContainer[data-grid-cols="2"].row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #productsContainer[data-grid-cols="3"].row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    #productsContainer.row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
    #productsContainer[data-grid-cols="2"].row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #productsContainer[data-grid-cols="3"].row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.landing-hero-compact { padding: 2rem 0 2.5rem; background: var(--hero-gradient); }
.landing-hero-compact .hero-headline { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.5rem; }
.landing-product-card .card-actions .btn-order-now { position: relative; }
.landing-product-card .card-actions .btn-order-now::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: max(100%, 48px);
    transform: translate(-50%, -50%);
}
.landing-hero-compact .hero-lead { font-size: 0.95rem; margin-bottom: 1rem; }
.landing-product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.04);
    contain: content;
}
.landing-product-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: var(--card-shadow-hover); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .landing-product-card:hover { transform: translateY(-2px); }
    .landing-product-card:hover .img-wrap img { transform: scale(1.04); }
}
.landing-product-card .img-wrap {
    aspect-ratio: 1;
    background: var(--bg-section);
    overflow: hidden;
    position: relative;
}
.landing-product-card .img-wrap img,
.landing-product-card .img-wrap picture,
.landing-product-card .img-wrap picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .landing-product-card .img-wrap img { transition: transform 0.35s ease; }
}
.landing-product-card .img-wrap .placeholder-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 2.5rem; opacity: 0.5;
}
.landing-product-card .card-body-custom { padding: 0.65rem 0.7rem 0.75rem; flex: 1; display: flex; flex-direction: column; }
.landing-product-card .product-title {
    font-weight: 650; font-size: 0.86rem; color: var(--text); margin-top: 0; margin-bottom: 0.3rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.landing-product-card .product-price { font-weight: 750; font-size: 0.95rem; color: color-mix(in srgb, var(--primary) 32%, var(--text)); letter-spacing: -0.01em; }
.landing-product-card .product-compare { font-size: 0.76rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.25rem; }
.landing-product-card .card-actions { margin-top: auto; display: flex; align-items: stretch; gap: 0.35rem; flex-wrap: nowrap; }
.landing-product-card .card-actions .btn-order-now {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.4rem 0.4rem;
    font-size: clamp(0.66rem, 2.7vw, 0.84rem);
    font-weight: 650;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.15;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.landing-product-card .card-actions .btn-order-now.btn-primary {
    background: var(--primary);
    border-color: color-mix(in srgb, var(--primary-hover, var(--primary)) 80%, #000 20%);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 28%, transparent), inset 0 1px 0 rgba(255,255,255,0.12);
}
.landing-product-card .card-actions .btn-order-now.btn-primary:hover {
    background: var(--primary-hover, var(--primary));
    border-color: color-mix(in srgb, var(--primary-hover, var(--primary)) 70%, #000 30%);
    color: #fff;
    filter: none;
}
.landing-product-card .card-actions .btn-order-now.btn-primary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
    outline-offset: 2px;
}
.landing-product-card .card-actions .btn-add-to-cart {
    flex: 0 0 auto; width: 2.5rem; min-width: 2.5rem; min-height: 40px; padding: 0.4rem; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
    border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text);
    transition: background .2s, border-color .2s, color .2s; cursor: pointer;
}
.landing-product-card .card-actions .btn-add-to-cart:hover { background: color-mix(in srgb, var(--primary) 12%, var(--card-bg)); border-color: var(--primary); color: var(--primary); }
.landing-product-card .card-actions .btn-add-to-cart:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
    outline-offset: 2px;
}
.landing-product-card .badge-out-of-stock { font-size: 0.7rem; }
.landing-product-card .badge-off { font-size: 0.7rem; background: var(--primary); }
.landing-product-card .variant-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.landing-product-card .variant-pill {
    display: inline-flex; align-items: center; gap: 0.2rem;
    font-size: 0.68rem; font-weight: 500; line-height: 1;
    padding: 0.2rem 0.45rem; border-radius: 5px;
    background: color-mix(in srgb, var(--primary) 8%, var(--card-bg));
    color: color-mix(in srgb, var(--primary) 80%, var(--text));
    border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.landing-product-card .variant-pill i { font-size: 0.6rem; opacity: 0.7; }
.landing-product-card .variant-count {
    font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.35rem;
}
.landing-product-card .price-range { font-weight: 750; font-size: 0.95rem; color: color-mix(in srgb, var(--primary) 32%, var(--text)); }
.landing-product-card .price-range .price-sep { font-weight: 400; opacity: 0.5; margin: 0 0.1rem; }
.landing-product-card .btn-view-options {
    flex: 1 1 auto; min-width: 0; min-height: 44px;
    padding: 0.5rem 0.6rem; border-radius: 12px; font-weight: 650;
    font-size: clamp(0.72rem, 3.2vw, 0.85rem); letter-spacing: 0.01em;
    background: var(--primary);
    color: #fff; border: none; text-align: center; display: flex; align-items: center;
    justify-content: center; gap: 0.35rem; text-decoration: none; cursor: pointer;
    transition: transform .12s, box-shadow .2s, background .2s;
}
.landing-product-card .btn-view-options:hover { background: var(--primary-hover, var(--primary)); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); color: #fff; }
.landing-product-card .btn-view-options:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
    outline-offset: 2px;
}
#loadMoreProducts { min-height: 44px; font-weight: 650; }
#loadMoreProducts:disabled { opacity: 0.7; cursor: not-allowed; }
#loadMoreProducts:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .landing-product-card {
        border-radius: 12px;
        box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    }
    .landing-product-card:hover { transform: none; }
    .landing-product-card .img-wrap { aspect-ratio: 1 / 1; }
    .landing-product-card .img-wrap .placeholder-icon { font-size: 1.75rem; }
    .landing-product-card .card-body-custom { padding: 0.5rem 0.55rem 0.55rem; }
    .landing-product-card .product-title {
        font-size: 0.78rem;
        margin-bottom: 0.25rem;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }
    .landing-product-card .product-price { font-size: 0.84rem; }
    .landing-product-card .product-compare { font-size: 0.68rem; }
    .landing-product-card .price-range { font-size: 0.78rem; }
    .landing-product-card .variant-pills { gap: 0.15rem; margin-bottom: 0.3rem; }
    .landing-product-card .variant-pill { font-size: 0.55rem; padding: 0.12rem 0.28rem; border-radius: 4px; }
    .landing-product-card .variant-count { font-size: 0.58rem; margin-bottom: 0.2rem; }
    .landing-product-card .card-actions { gap: 0.28rem; }
    .landing-product-card .card-actions .btn-order-now {
        min-height: 32px;
        padding: 0.28rem 0.28rem;
        font-size: clamp(0.62rem, 2.8vw, 0.75rem);
        border-radius: 8px;
        letter-spacing: -0.02em;
    }
    .landing-product-card .card-actions .btn-add-to-cart {
        width: 2rem;
        min-width: 2rem;
        padding: 0.28rem;
        font-size: 0.88rem;
        border-radius: 8px;
    }
    .landing-product-card .btn-view-options {
        padding: 0.28rem 0.35rem;
        min-height: 32px;
        font-size: clamp(0.62rem, 2.8vw, 0.74rem);
        border-radius: 8px;
        gap: 0.2rem;
    }
    .landing-product-card .badge-out-of-stock,
    .landing-product-card .badge-off { font-size: 0.58rem; }
    #productsContainer.row,
    #landingForYouRow.row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
}
@media (max-width: 575.98px) {
    .landing-hero-compact { padding: 1.5rem 0 2rem; }
    .landing-product-card {
        border-radius: 10px;
    }
    .landing-product-card .img-wrap { aspect-ratio: 1 / 1; }
    .landing-product-card .card-body-custom { padding: 0.4rem 0.45rem 0.45rem; }
    .landing-product-card .product-title {
        font-size: 0.72rem;
        margin-bottom: 0.18rem;
        line-height: 1.22;
        -webkit-line-clamp: 2;
    }
    .landing-product-card .product-price { font-size: 0.78rem; }
    .landing-product-card .product-compare { font-size: 0.62rem; margin-left: 0.15rem; }
    .landing-product-card .price-range { font-size: 0.72rem; }
    .landing-product-card .card-body-custom > p.mb-2 { margin-bottom: 0.35rem !important; }
    .landing-product-card .variant-pills { display: none; }
    .landing-product-card .variant-count { display: none; }
    .landing-product-card .card-actions { gap: 0.22rem; }
    .landing-product-card .card-actions .btn-order-now {
        padding: 0.22rem 0.2rem;
        font-size: clamp(0.58rem, 2.9vw, 0.7rem);
        letter-spacing: -0.03em;
        min-height: 28px;
        border-radius: 7px;
    }
    .landing-product-card .card-actions .btn-add-to-cart {
        width: 1.85rem;
        min-width: 1.85rem;
        font-size: 0.82rem;
        padding: 0.2rem;
        border-radius: 7px;
    }
    .landing-product-card .btn-view-options {
        min-height: 28px;
        padding: 0.22rem 0.28rem;
        font-size: clamp(0.58rem, 2.9vw, 0.68rem);
        border-radius: 7px;
    }
    .landing-product-card .img-wrap .placeholder-icon { font-size: 1.45rem; }
    #productsContainer.row,
    #landingForYouRow.row {
        --bs-gutter-x: 0.4rem;
        --bs-gutter-y: 0.4rem;
    }
}
@media (max-width: 380px) {
    .landing-product-card .card-actions .btn-order-now {
        font-size: clamp(0.55rem, 3vw, 0.65rem);
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }
    .landing-product-card .product-title { font-size: 0.68rem; }
    .landing-product-card .product-price { font-size: 0.72rem; }
}

/* All-products denser / slightly shorter cards */
#productsContainer .landing-product-card { border-radius: 12px; contain: content; }
#productsContainer .landing-product-card .card-body-custom { padding: 0.42rem 0.48rem 0.48rem; }
#productsContainer .landing-product-card .product-title { font-size: 0.76rem; margin-bottom: 0.2rem; }
#productsContainer .landing-product-card .product-price { font-size: 0.84rem; }
#productsContainer .landing-product-card .product-compare { font-size: 0.66rem; }
#productsContainer .landing-product-card .card-actions .btn-order-now {
    min-height: 32px; padding: 0.3rem 0.28rem; font-size: clamp(0.58rem, 1.45vw, 0.72rem); border-radius: 8px;
}
#productsContainer .landing-product-card .card-actions .btn-add-to-cart {
    width: 1.95rem; min-width: 1.95rem; min-height: 32px; font-size: 0.86rem; border-radius: 8px;
}
#productsContainer .landing-product-card .variant-pills,
#productsContainer .landing-product-card .variant-count { display: none; }
#productsContainer .landing-product-card .btn-view-options {
    min-height: 32px; padding: 0.3rem 0.32rem; font-size: clamp(0.58rem, 1.45vw, 0.72rem); border-radius: 8px;
}
@media (max-width: 400px) {
    #productsContainer .landing-product-card .btn-add-to-cart { display: none; }
}
@media (max-width: 575.98px) {
    #productsContainer .landing-product-card .card-body-custom { padding: 0.28rem 0.3rem 0.32rem; }
    #productsContainer .landing-product-card .product-title { font-size: 0.62rem; }
    #productsContainer .landing-product-card .product-price { font-size: 0.68rem; }
    #productsContainer .landing-product-card .card-actions .btn-order-now,
    #productsContainer .landing-product-card .btn-view-options {
        min-height: 26px; font-size: clamp(0.5rem, 2.5vw, 0.6rem);
    }
}
#productsContainer > [class*="col-"]:nth-child(n+7) {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}

/* Smart-picks: ~1/3 card size */
#landingForYouRow.landing-pick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}
@media (min-width: 576px) {
    #landingForYouRow.landing-pick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
}
@media (min-width: 1200px) {
    #landingForYouRow.landing-pick-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.55rem; }
}
.landing-pick-card {
    display: flex; flex-direction: column; height: 100%;
    text-decoration: none; color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    contain: content;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-pick-card:hover { border-color: color-mix(in srgb, var(--primary) 32%, transparent); color: inherit; }
.landing-pick-card .pick-img {
    display: block; aspect-ratio: 1; background: var(--bg-section);
    overflow: hidden; position: relative;
}
.landing-pick-card .pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-pick-card .pick-body { padding: 0.35rem 0.4rem 0.42rem; display: flex; flex-direction: column; gap: 0.1rem; }
.landing-pick-card .pick-title {
    font-size: 0.68rem; font-weight: 600; line-height: 1.25; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0;
}
.landing-pick-card .pick-price {
    font-size: 0.72rem; font-weight: 700;
    color: color-mix(in srgb, var(--primary) 28%, var(--text));
}
.landing-pick-card .pick-compare { font-size: 0.58rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.15rem; font-weight: 500; }
@media (max-width: 575.98px) {
    .landing-pick-card { border-radius: 10px; }
    .landing-pick-card .pick-body { padding: 0.28rem 0.3rem 0.32rem; }
    .landing-pick-card .pick-title { font-size: 0.6rem; }
    .landing-pick-card .pick-price { font-size: 0.64rem; }
}
.landing-default-section-head {
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, color-mix(in srgb, var(--primary) 55%, transparent), color-mix(in srgb, var(--primary) 15%, transparent) 55%, transparent) 1;
}
.landing-default-section-head .section-title {
    color: var(--text);
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.landing-default-section-head .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 40rem;
}
.landing-default-section-head .section-title { color: var(--text); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .landing-default-section-head .section-title {
        background: linear-gradient(105deg, var(--text) 0%, color-mix(in srgb, var(--primary) 72%, var(--text)) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* Smart picks (on-device interest) */
.landing-for-you {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, var(--bg-section)) 0%, var(--bg-section) 48%);
    border-bottom: 1px solid var(--card-border);
    padding: 0.85rem 0;
}
.landing-for-you > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.landing-for-you-head {
    margin-bottom: 0.75rem !important;
}
.landing-for-you-head .landing-for-you-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
}
.landing-for-you-head .landing-for-you-badge i { font-size: 0.85rem; }
.landing-for-you-head .h4 { font-size: 1.2rem; }
.landing-for-you-desc { max-width: 42rem; line-height: 1.4; margin-top: 0.28rem !important; }
@media (max-width: 575.98px) {
    .landing-for-you { padding: 0.55rem 0; }
    .landing-for-you-head { margin-bottom: 0.45rem !important; }
    .landing-for-you-head .h4 { font-size: 1.12rem; }
    .landing-for-you-desc { display: none; }
}

@media (max-width: 575.98px) {
    .elastic-search-result .result-thumb { width: 48px; height: 48px; }
}

/* Add-to-cart toast: top-right, highlighted */
.landing-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
}
.landing-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04), 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    animation: landing-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.landing-toast i {
    font-size: 1.35rem;
    color: var(--primary);
    flex-shrink: 0;
}
.landing-toast.landing-toast-out {
    animation: landing-toast-out 0.25s ease forwards;
}
@keyframes landing-toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes landing-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
@media (max-width: 575.98px) {
    .landing-toast-container { top: 0.75rem; right: 0.75rem; left: 0.75rem; max-width: none; }
    .landing-toast { padding: 0.75rem 1rem; font-size: 0.9rem; }
}
.landing-hero-wrap {
    position: relative;
    min-height: clamp(300px, 38vw, 420px);
    padding: 0;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}
.landing-hero-wrap::before { display: none; }
.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.landing-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 1.6rem 0 2.1rem;
}
.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 1.25rem 1.75rem;
    align-items: center;
}
@media (max-width: 991.98px) {
    .landing-hero-grid {
        grid-template-columns: 1fr minmax(200px, 0.9fr);
        gap: 1rem;
    }
}
.landing-hero-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255,255,255,0.65);
}
.landing-hero-ai-badge i { font-size: 1rem; opacity: 0.95; }
/* Full-bleed hero slider background */
.landing-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.landing-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.landing-hero-slide img,
.landing-hero-cover-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}
.landing-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,.62) 40%, rgba(15,23,42,.28) 62%, rgba(15,23,42,.2) 100%),
        linear-gradient(0deg, rgba(15,23,42,.4) 0%, transparent 48%);
}
.landing-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 34rem;
    color: #fff;
}
.landing-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #fff;
    background: color-mix(in srgb, var(--primary) 78%, #0f172a);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.landing-hero-title {
    margin: 0;
    font-size: clamp(1.45rem, 3.4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.landing-hero-sub {
    margin: 0;
    max-width: 36ch;
    font-size: clamp(0.9rem, 1.35vw, 1.08rem);
    line-height: 1.45;
    color: rgba(255,255,255,.9);
    text-shadow: 0 1px 10px rgba(0,0,0,.25);
}
.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.15rem;
}
.landing-hero-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.landing-hero-actions .btn-hero-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.landing-hero-actions .btn-hero-primary:hover {
    background: var(--primary-hover, var(--primary)) !important;
    border-color: var(--primary-hover, var(--primary)) !important;
    color: #fff !important;
}
.landing-hero-actions .btn-hero-ghost {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
}
.landing-hero-actions .btn-hero-ghost:hover {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
}
.landing-hero-spotlight {
    position: relative;
    min-height: 300px;
}
.landing-hero-spotlight-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s;
    z-index: 0;
}
.landing-hero-spotlight-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}
.landing-hero-product-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    backdrop-filter: blur(10px);
    color: var(--text, #0f172a);
}
.landing-hero-product-img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: var(--bg-section, #e2e8f0);
    overflow: hidden;
}
.landing-hero-product-img img,
.landing-hero-product-img picture,
.landing-hero-product-img picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.landing-hero-product-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1rem 0;
    min-width: 0;
}
.landing-hero-product-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.landing-hero-product-price {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary) 40%, var(--text, #0f172a));
}
.landing-hero-product-compare {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #64748b);
    text-decoration: line-through;
    margin-left: 0.25rem;
}
.landing-hero-product-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.15rem;
}
.landing-hero-product-actions .btn-order-now {
    flex: 1;
    min-height: 40px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 0.55rem;
    padding: 0.35rem 0.5rem;
}
.landing-hero-product-actions .btn-add-to-cart {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    background: var(--card-bg, #fff);
    color: var(--primary);
}
.landing-hero-product-actions .btn-add-to-cart:hover {
    background: color-mix(in srgb, var(--primary) 12%, var(--card-bg));
}
.landing-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 0.35rem;
    padding: 0.2rem;
    pointer-events: auto;
}
.landing-hero-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,.45);
    transition: width 0.25s ease, background 0.25s ease;
}
.landing-hero-dot.is-active {
    width: 1.15rem;
    background: #fff;
}
.landing-hero-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--hero-gradient, linear-gradient(135deg, #1e293b, #0f172a));
}
@media (prefers-reduced-motion: reduce) {
    .landing-hero-slide,
    .landing-hero-dot,
    .landing-hero-spotlight-slide {
        transition: none;
    }
}
.landing-hero-carousel .carousel-indicators,
.landing-hero-carousel .carousel-control-prev,
.landing-hero-carousel .carousel-control-next {
    display: none !important;
}
/* Flash sale — compact 4:3 cards, readable name + ≥44px cart CTAs */
.flash-sale-section {
    --fs-slot: 158px;
    --fs-img-ratio: 4 / 3;
    --fs-cta-h: 44px;
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0.5rem 0 0.65rem;
    background:
        linear-gradient(105deg, rgba(253, 224, 71, 0.2) 0%, transparent 32%),
        linear-gradient(145deg, #e11d48 0%, #dc2626 38%, #b91c1c 72%, #7f1d1d 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.flash-sale-section.py-4 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.65rem !important;
}
.flash-sale-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 55% 80% at 8% 0%, rgba(254, 240, 138, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 92% 100%, rgba(253, 224, 71, 0.12) 0%, transparent 42%);
    pointer-events: none;
}
.flash-sale-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
    animation: flash-sale-sheen 7s ease-in-out infinite;
}
@keyframes flash-sale-sheen {
    0%, 55% { transform: translateX(0); opacity: 0; }
    60% { opacity: 1; }
    85% { transform: translateX(350%); opacity: 0.55; }
    100% { transform: translateX(350%); opacity: 0; }
}
@keyframes flash-sale-bolt {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.65)); }
}
.flash-sale-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}
.flash-sale-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem 0.6rem;
    margin: 0 0 0.45rem;
    padding: 0 clamp(0.65rem, 2.2vw, 1.25rem);
    min-height: 1.85rem;
}
.flash-sale-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    flex-shrink: 0;
}
.flash-sale-title-wrap .bi-lightning-charge-fill {
    font-size: 1.1rem;
    color: #fef08a;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    animation: flash-sale-bolt 1.8s ease-in-out infinite;
}
.flash-sale-title {
    font-weight: 800;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}
.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}
.flash-sale-countdown .cd-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.28rem;
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 0 #0f766e, inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.flash-sale-countdown .cd-sep {
    opacity: 0.9;
    font-weight: 800;
    font-size: 0.75rem;
    line-height: 1;
}
.flash-sale-seeall {
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.2;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.flash-sale-seeall:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: #fff;
    color: #fff !important;
}
.flash-sale-seeall:focus-visible {
    outline: 2px solid #fef08a;
    outline-offset: 2px;
}
.flash-sale-scroll-wrapper {
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    padding: 0 clamp(0.35rem, 1.2vw, 0.75rem);
    box-sizing: border-box;
}
.flash-sale-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0 0.2rem;
    flex: 1;
    min-width: 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-behavior: auto;
    scrollbar-width: none;
}
.flash-sale-marquee::-webkit-scrollbar { display: none; }
.flash-sale-marquee-inner {
    display: flex;
    width: max-content;
}
.flash-sale-marquee-track {
    display: flex;
    gap: 0.55rem;
    flex-shrink: 0;
    padding-right: 0.55rem;
    align-items: stretch;
}
.flash-sale-card-slot {
    flex: 0 0 var(--fs-slot);
    width: var(--fs-slot);
    max-width: var(--fs-slot);
    scroll-snap-align: start;
}
.flash-sale-card-slot .landing-product-card {
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    background: var(--card-bg, #fff);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .flash-sale-card-slot .landing-product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }
}
.flash-sale-card-slot .landing-product-card .img-wrap {
    aspect-ratio: var(--fs-img-ratio);
    width: 100%;
    position: relative;
    flex-shrink: 0;
    background: var(--bg-section, #e2e8f0);
}
.flash-sale-card-slot .landing-product-card .img-wrap img,
.flash-sale-card-slot .landing-product-card .img-wrap picture,
.flash-sale-card-slot .landing-product-card .img-wrap picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
/* Body: name + price + CTAs get priority over image height */
.flash-sale-card-slot .landing-product-card .card-body-custom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.42rem 0.48rem 0.48rem;
    margin: 0;
    background: var(--card-bg, #fff);
    pointer-events: auto;
    min-height: 0;
}
.flash-sale-card-slot .landing-product-card .card-body-custom > a {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.flash-sale-card-slot .landing-product-card .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--text, #1e293b);
    min-height: calc(1.3em * 2);
}
.flash-sale-card-slot .landing-product-card .variant-pills,
.flash-sale-card-slot .landing-product-card .variant-count {
    display: none !important;
}
.flash-sale-card-slot .landing-product-card .card-body-custom > p.mb-2 {
    margin: 0 !important;
    line-height: 1.2;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.3rem;
}
.flash-sale-card-slot .landing-product-card .product-price,
.flash-sale-card-slot .landing-product-card .price-range {
    font-size: 0.9375rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary, #2563eb) 22%, var(--text, #1e293b));
    letter-spacing: -0.02em;
    text-shadow: none;
}
.flash-sale-card-slot .landing-product-card .price-sep {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}
.flash-sale-card-slot .landing-product-card .product-compare {
    display: inline !important;
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    text-decoration: line-through;
    margin-left: 0;
}
.flash-sale-card-slot .landing-product-card .card-actions {
    display: flex !important;
    align-items: stretch;
    gap: 0.35rem;
    margin-top: 0.15rem;
    flex-wrap: nowrap;
}
.flash-sale-card-slot .landing-product-card .card-actions > form {
    min-width: 0;
}
.flash-sale-card-slot .landing-product-card .btn-view-options {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: var(--fs-cta-h);
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 10px;
    gap: 0.3rem;
}
.flash-sale-card-slot .landing-product-card .badge-out-of-stock {
    display: inline-block !important;
    font-size: 0.7rem;
    align-self: flex-start;
    margin-top: 0.1rem;
}
.flash-sale-card-slot .landing-product-card .card-actions .btn-order-now {
    min-height: var(--fs-cta-h);
    padding: 0.35rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}
.flash-sale-card-slot .landing-product-card .card-actions .btn-add-to-cart {
    width: var(--fs-cta-h);
    min-width: var(--fs-cta-h);
    min-height: var(--fs-cta-h);
    border-radius: 10px;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-width: 1.5px;
    border-color: color-mix(in srgb, var(--primary, #2563eb) 45%, transparent);
    color: var(--primary, #2563eb);
    background: color-mix(in srgb, var(--primary, #2563eb) 8%, var(--card-bg, #fff));
}
.flash-sale-card-slot .landing-product-card .card-actions .btn-add-to-cart:hover {
    background: color-mix(in srgb, var(--primary, #2563eb) 16%, var(--card-bg, #fff));
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
}
.flash-sale-card-slot .landing-product-card .card-actions .btn-order-now span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.flash-sale-card-slot .landing-card-off {
    top: 0.35rem;
    left: 0.35rem;
    font-size: 0.68rem;
    padding: 0.2rem 0.42rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.flash-sale-scroll-wrapper .cat-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    flex-shrink: 0;
    align-self: center;
    background: rgba(255, 255, 255, 0.95);
    color: #b91c1c;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
.flash-sale-scroll-wrapper .cat-arrow:hover {
    background: #fff;
    color: #991b1b;
}
.flash-sale-scroll-wrapper .cat-arrow:focus-visible {
    outline: 2px solid #fef08a;
    outline-offset: 2px;
}
.landing-card-off {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 1;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.12rem 0.35rem;
    border-radius: 0.4rem;
    line-height: 1.1;
    pointer-events: none;
}
/* Smart picks: same grid as All Products */
#landingForYouRow.row > [class*="col-"]:nth-child(n+7) {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}
/* Legacy .flash-sale-card (builder / older markup) */
.flash-sale-card {
    flex: 0 0 var(--fs-slot);
    width: var(--fs-slot);
    max-width: var(--fs-slot);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
}
.flash-sale-card .fs-img {
    width: 100%;
    aspect-ratio: var(--fs-img-ratio);
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.flash-sale-card .fs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.flash-sale-card .fs-body {
    padding: 0.42rem 0.48rem 0.48rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.flash-sale-card .fs-rating { font-size: 0.65rem; color: #ca8a04; line-height: 1.1; }
.flash-sale-card .fs-name {
    font-size: 0.8125rem; font-weight: 700; color: var(--text); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-sale-card .fs-price-row {
    margin-top: auto; display: flex; align-items: stretch; min-height: var(--fs-cta-h, 44px); border-radius: 10px; overflow: hidden;
}
.flash-sale-card .fs-price {
    flex: 1; background: #0d9488; color: #fff; font-weight: 800; font-size: 0.85rem;
    display: flex; align-items: center; padding: 0 0.5rem;
}
.flash-sale-card .fs-off {
    position: relative; background: #0f766e; color: #fff; font-size: 0.7rem; font-weight: 800;
    padding: 0 0.45rem; display: flex; align-items: center;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    min-width: 2.5rem; justify-content: center;
}
@media (min-width: 576px) {
    .flash-sale-section {
        --fs-slot: 168px;
        padding-top: 0.55rem;
        padding-bottom: 0.7rem;
    }
}
@media (min-width: 768px) {
    .flash-sale-section {
        --fs-slot: 176px;
    }
    .flash-sale-card-slot .landing-product-card .product-title { font-size: 0.85rem; }
    .flash-sale-card-slot .landing-product-card .product-price,
    .flash-sale-card-slot .landing-product-card .price-range { font-size: 1rem; }
}
@media (min-width: 992px) {
    .flash-sale-section {
        --fs-slot: 186px;
        --fs-cta-h: 46px;
        padding-top: 0.65rem;
        padding-bottom: 0.8rem;
    }
    .flash-sale-marquee-track { gap: 0.65rem; padding-right: 0.65rem; }
    .flash-sale-card-slot .landing-product-card .card-body-custom {
        padding: 0.48rem 0.55rem 0.55rem;
        gap: 0.25rem;
    }
    .flash-sale-card-slot .landing-product-card .product-title { font-size: 0.9rem; }
    .flash-sale-card-slot .landing-product-card .product-price,
    .flash-sale-card-slot .landing-product-card .price-range { font-size: 1.05rem; }
    .flash-sale-card-slot .landing-product-card .product-compare { font-size: 0.75rem; }
    .flash-sale-card-slot .landing-product-card .card-actions .btn-order-now,
    .flash-sale-card-slot .landing-product-card .btn-view-options {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
    .flash-sale-card-slot .landing-product-card .card-actions .btn-add-to-cart {
        font-size: 1.25rem;
    }
}
@media (min-width: 1200px) {
    .flash-sale-section { --fs-slot: 198px; }
}
@media (max-width: 991.98px) {
    .flash-sale-scroll-wrapper .cat-arrow { display: none; }
}
@media (max-width: 575.98px) {
    .flash-sale-section {
        --fs-slot: 152px;
        --fs-cta-h: 44px;
        padding-top: 0.45rem;
        padding-bottom: 0.55rem;
    }
    .flash-sale-head {
        margin-bottom: 0.4rem;
        gap: 0.3rem 0.4rem;
        padding: 0 0.55rem;
        min-height: 1.7rem;
    }
    .flash-sale-title-wrap .bi-lightning-charge-fill { font-size: 1rem; }
    .flash-sale-title { font-size: 0.95rem; }
    .flash-sale-countdown .cd-box {
        min-width: 1.45rem;
        height: 1.45rem;
        font-size: 0.65rem;
        border-radius: 5px;
    }
    .flash-sale-countdown .cd-sep { font-size: 0.65rem; }
    .flash-sale-seeall {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
        min-height: 34px;
    }
    .flash-sale-scroll-wrapper { padding: 0 0.4rem; }
    .flash-sale-marquee-track { gap: 0.45rem; padding-right: 0.45rem; }
    .flash-sale-card-slot .landing-product-card { border-radius: 11px; }
    .flash-sale-card-slot .landing-product-card .card-body-custom {
        padding: 0.4rem 0.42rem 0.45rem;
        gap: 0.18rem;
    }
    .flash-sale-card-slot .landing-product-card .product-title {
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.28;
        min-height: calc(1.28em * 2);
    }
    .flash-sale-card-slot .landing-product-card .product-price,
    .flash-sale-card-slot .landing-product-card .price-range { font-size: 0.9rem; }
    .flash-sale-card-slot .landing-product-card .product-compare { font-size: 0.68rem; }
    .flash-sale-card-slot .landing-product-card .card-actions { gap: 0.3rem; }
    .flash-sale-card-slot .landing-product-card .card-actions .btn-order-now,
    .flash-sale-card-slot .landing-product-card .btn-view-options {
        font-size: 0.78rem;
        padding: 0.32rem 0.35rem;
        border-radius: 9px;
    }
    .flash-sale-card-slot .landing-product-card .card-actions .btn-add-to-cart {
        border-radius: 9px;
        font-size: 1.12rem;
    }
    .flash-sale-card { border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .flash-sale-section::after,
    .flash-sale-title-wrap .bi-lightning-charge-fill {
        animation: none !important;
    }
    .flash-sale-card-slot .landing-product-card {
        transition: none;
    }
}
.flash-sale-scroll-wrapper .flash-sale-card-slot { scroll-snap-align: start; }
.flash-sale-scroll-wrapper .flash-sale-card { scroll-snap-align: start; }
.flash-sale-scroll-wrapper .flash-sale-marquee { scroll-snap-type: x proximity; }
/* Category section */
.landing-category-section {
    background:
        radial-gradient(ellipse 80% 90% at 0% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%),
        var(--bg, #f8fafc);
}
.landing-category-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.landing-category-scroll-wrapper .cat-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--card-border, #e5e7eb));
    background: var(--card-bg, #fff);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    color: var(--primary, #6c63ff);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
    z-index: 2;
    opacity: 0.92;
}
.landing-category-scroll-wrapper .cat-arrow:hover { background: var(--primary, #6c63ff); color: #fff; opacity: 1; border-color: var(--primary); }
.landing-category-scroll-wrapper .cat-arrow:disabled { opacity: 0.22; cursor: default; }
.landing-category-scroll-wrapper .cat-arrow-left { margin-right: 4px; }
.landing-category-scroll-wrapper .cat-arrow-right { margin-left: 4px; }
.landing-category-scroll {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}
.landing-category-scroll::-webkit-scrollbar { display: none; }
.landing-category-item {
    flex-shrink: 0;
    width: 5.35rem;
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
    color: var(--text, #0f172a);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.28rem 0.5rem;
    border-radius: 16px;
    background: var(--card-bg, #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 10%, var(--card-border, #e5e7eb));
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .landing-category-item:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--primary) 32%, transparent);
        box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 16%, transparent);
        color: color-mix(in srgb, var(--primary) 58%, #0f172a 42%);
    }
}
/* Match critical CSS specificity so width/height stay square (oval thumbs look broken). */
.landing-category-section .landing-category-thumb,
.landing-category-thumb {
    width: 58px;
    height: 58px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 32% 28%, color-mix(in srgb, #fff 70%, var(--primary)) 0%, transparent 52%),
        linear-gradient(160deg, color-mix(in srgb, var(--primary) 16%, #fff), color-mix(in srgb, var(--primary) 8%, var(--bg-section)));
    border: 1.5px solid color-mix(in srgb, var(--primary) 22%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 2px 8px color-mix(in srgb, var(--primary) 10%, transparent);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-category-item:nth-child(6n+2) .landing-category-thumb-placeholder { filter: hue-rotate(28deg); }
.landing-category-item:nth-child(6n+3) .landing-category-thumb-placeholder { filter: hue-rotate(72deg); }
.landing-category-item:nth-child(6n+4) .landing-category-thumb-placeholder { filter: hue-rotate(128deg); }
.landing-category-item:nth-child(6n+5) .landing-category-thumb-placeholder { filter: hue-rotate(188deg); }
.landing-category-item:nth-child(6n+6) .landing-category-thumb-placeholder { filter: hue-rotate(248deg); }
.landing-category-item.landing-category-active {
    color: color-mix(in srgb, var(--primary) 62%, #0f172a 38%);
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    background: color-mix(in srgb, var(--primary) 7%, var(--card-bg, #fff));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 16%, transparent);
}
.landing-category-item.landing-category-active .landing-category-thumb,
.landing-category-item:hover .landing-category-thumb {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.75);
}
.landing-category-item.landing-category-active .landing-category-name { font-weight: 800; }
.landing-category-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}
.landing-category-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
}
.landing-category-thumb-placeholder .bi {
    display: block;
    line-height: 1;
    font-size: inherit;
}
.landing-category-name {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
@media (max-width: 991.98px) {
    .landing-category-scroll-wrapper .cat-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.88rem;
    }
    .landing-category-scroll-wrapper .cat-arrow-left { margin-right: 2px; }
    .landing-category-scroll-wrapper .cat-arrow-right { margin-left: 2px; }
    .landing-category-item { width: 4.55rem; padding: 0.38rem 0.2rem 0.42rem; border-radius: 14px; gap: 0.32rem; }
    .landing-category-section .landing-category-thumb,
    .landing-category-thumb { width: 48px; height: 48px; }
    .landing-category-thumb-placeholder { font-size: 1.12rem; }
    .landing-category-name { font-size: 0.62rem; line-height: 1.2; }
    .landing-category-scroll { gap: 0.4rem; }
    .landing-category-section.py-4 { padding-top: 0.7rem !important; padding-bottom: 0.7rem !important; }
    .landing-category-section .landing-default-section-head { margin-bottom: 0.5rem !important; }
    .landing-category-section .landing-default-section-head .section-title { font-size: 1.05rem; }
}
@media (max-width: 575.98px) {
    .landing-category-item { width: 4.2rem; padding: 0.32rem 0.15rem 0.38rem; }
    .landing-category-section .landing-category-thumb,
    .landing-category-thumb { width: 44px; height: 44px; }
    .landing-category-thumb-placeholder { font-size: 1.05rem; }
    .landing-category-name { font-size: 0.58rem; }
    .landing-category-scroll { gap: 0.32rem; }
    .landing-category-section.py-4 { padding-top: 0.55rem !important; padding-bottom: 0.55rem !important; }
    .landing-category-item:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .landing-product-card, .landing-category-item, .landing-pick-card { transition: none; transform: none !important; }
    .landing-product-card:hover .img-wrap img { transform: none !important; }
    .landing-hero-carousel .carousel-fade .carousel-item { transition: none !important; }
    .landing-toast, .landing-toast.landing-toast-out { animation: none !important; }
}
