/* Storefront system-default landing — non-critical styles (critical shell stays inline). */
.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: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.22s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.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 { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .landing-product-card .img-wrap img { transition: transform 0.3s 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: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.landing-product-card .product-title {
    font-weight: 600; font-size: 0.95rem; color: var(--text); margin-top: 0; margin-bottom: 0.4rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.landing-product-card .product-price { font-weight: 700; font-size: 1.05rem; color: color-mix(in srgb, var(--primary) 28%, var(--text)); }
.landing-product-card .product-compare { font-size: 0.85rem; 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.4rem; flex-wrap: nowrap; }
.landing-product-card .card-actions .btn-order-now {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.45rem;
    font-size: clamp(0.68rem, 2.85vw, 0.9rem);
    font-weight: 600;
    border-radius: 11px;
    white-space: nowrap;
    line-height: 1.15;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-product-card .card-actions .btn-order-now.btn-primary {
    background: color-mix(in srgb, var(--primary) 76%, #000 24%);
    border-color: color-mix(in srgb, var(--primary-hover, var(--primary)) 74%, #000 26%);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 32%, transparent), inset 0 1px 0 rgba(255,255,255,0.12);
}
.landing-product-card .card-actions .btn-order-now.btn-primary:hover {
    background: color-mix(in srgb, var(--primary-hover, var(--primary)) 70%, #000 30%);
    border-color: color-mix(in srgb, var(--primary-hover, var(--primary)) 68%, #000 32%);
    color: #fff;
    filter: none;
}
.landing-product-card .card-actions .btn-add-to-cart { flex: 0 0 auto; width: 2.65rem; min-width: 2.65rem; padding: 0.5rem; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.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 .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: 700; font-size: 0.95rem; color: color-mix(in srgb, var(--primary) 28%, 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;
    padding: 0.5rem 0.6rem; border-radius: 11px; font-weight: 600;
    font-size: clamp(0.72rem, 3.2vw, 0.85rem); letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 85%, #000) 100%);
    color: #fff; border: none; text-align: center; display: flex; align-items: center;
    justify-content: center; gap: 0.35rem; text-decoration: none;
    transition: transform .12s, box-shadow .2s;
}
.landing-product-card .btn-view-options:hover { transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
#loadMoreProducts:disabled { opacity: 0.7; cursor: not-allowed; }

@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 2/3-size denser cards */
#productsContainer .landing-product-card { border-radius: 14px; contain: content; }
#productsContainer .landing-product-card .card-body-custom { padding: 0.55rem 0.6rem 0.6rem; }
#productsContainer .landing-product-card .product-title { font-size: 0.82rem; margin-bottom: 0.28rem; }
#productsContainer .landing-product-card .product-price { font-size: 0.9rem; }
#productsContainer .landing-product-card .product-compare { font-size: 0.72rem; }
#productsContainer .landing-product-card .card-actions .btn-order-now {
    min-height: 36px; padding: 0.38rem 0.35rem; font-size: clamp(0.62rem, 1.5vw, 0.78rem); border-radius: 9px;
}
#productsContainer .landing-product-card .card-actions .btn-add-to-cart {
    width: 2.15rem; min-width: 2.15rem; font-size: 0.92rem; border-radius: 9px;
}
#productsContainer .landing-product-card .variant-pills,
#productsContainer .landing-product-card .variant-count { display: none; }
#productsContainer .landing-product-card .btn-view-options {
    min-height: 36px; padding: 0.38rem 0.4rem; font-size: clamp(0.62rem, 1.5vw, 0.78rem); border-radius: 9px;
}
@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.32rem 0.35rem 0.38rem; }
    #productsContainer .landing-product-card .product-title { font-size: 0.66rem; }
    #productsContainer .landing-product-card .product-price { font-size: 0.72rem; }
    #productsContainer .landing-product-card .card-actions .btn-order-now,
    #productsContainer .landing-product-card .btn-view-options {
        min-height: 28px; font-size: clamp(0.52rem, 2.6vw, 0.64rem);
    }
}
#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.65rem;
    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); }
@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;
    padding: 0.35rem 0 1rem;
    background:
        radial-gradient(ellipse 100% 80% at 50% -15%, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 52%),
        linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--bg)) 0%, var(--bg) 45%, var(--bg) 100%);
    overflow: hidden;
}
.landing-hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 88%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 28%),
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 32%);
    pointer-events: none;
    z-index: 0;
}
.landing-hero-wrap > .container { position: relative; z-index: 1; }
@media (max-width: 991.98px) {
    .landing-hero-wrap { padding-top: 0.85rem; }
}
.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; }
.landing-hero-carousel {
    --landing-hero-h: clamp(120px, min(20vh, 200px), 220px);
}
.landing-hero-carousel .landing-hero-carousel-box {
    border-radius: 1.35rem;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent),
        0 20px 56px rgba(0,0,0,0.11),
        0 0 100px color-mix(in srgb, var(--primary) 14%, transparent);
    background: var(--card-bg);
    position: relative;
}
.landing-hero-carousel .landing-hero-carousel-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 45%, transparent), transparent 42%, color-mix(in srgb, var(--primary) 25%, transparent));
    -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;
    opacity: 0.85;
}
.landing-hero-carousel #landingHeroCarousel {
    position: relative;
    z-index: 1;
}
.landing-hero-carousel .carousel-inner {
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: var(--landing-hero-h);
    background: linear-gradient(160deg, var(--bg-section) 0%, color-mix(in srgb, var(--primary) 8%, var(--card-bg)) 100%);
    position: relative;
}
.landing-hero-carousel .carousel-item {
    min-height: var(--landing-hero-h);
}
.landing-hero-carousel .landing-hero-slide-media {
    position: relative;
    width: 100%;
    height: var(--landing-hero-h);
    min-height: 100px;
    max-height: 220px;
    overflow: hidden;
    background: var(--bg-section);
}
.landing-hero-carousel .landing-hero-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.06) 38%, transparent 58%);
    pointer-events: none;
    z-index: 1;
}
.landing-hero-carousel .landing-hero-slide-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.landing-hero-carousel .carousel-fade .carousel-item { transition-duration: 0.85s; }
.landing-hero-fallback {
    min-height: var(--landing-hero-h);
    max-height: 220px;
    background:
        radial-gradient(ellipse 90% 70% at 30% 20%, color-mix(in srgb, var(--primary) 22%, transparent) 0%, transparent 55%),
        var(--hero-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
}
@media (max-width: 991.98px) {
    .landing-hero-carousel { --landing-hero-h: clamp(90px, 14vh, 140px); }
    .landing-hero-carousel .landing-hero-slide-media {
        height: var(--landing-hero-h);
        min-height: 0;
        max-height: none;
    }
    .landing-hero-carousel .landing-hero-slide-media img {
        object-fit: cover;
        object-position: center center;
    }
    .landing-hero-fallback {
        min-height: var(--landing-hero-h);
        max-height: none;
        height: var(--landing-hero-h);
        padding: 1.1rem 0.85rem;
    }
}
@media (max-width: 575.98px) {
    .landing-hero-wrap { padding-top: 0.85rem; padding-bottom: 0; }
    .landing-hero-wrap > .container { padding-top: 0.35rem !important; }
    .landing-hero-carousel { --landing-hero-h: 14vh; }
    .landing-hero-carousel .landing-hero-carousel-box {
        border-radius: 1rem;
    }
    .landing-hero-carousel .carousel-inner,
    .landing-hero-carousel .landing-hero-carousel-box .carousel { border-radius: 1rem; }
    .landing-hero-carousel .carousel-inner,
    .landing-hero-carousel .carousel-item {
        min-height: var(--landing-hero-h);
        height: var(--landing-hero-h);
    }
    .landing-hero-carousel .landing-hero-slide-media {
        height: var(--landing-hero-h);
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }
    .landing-hero-carousel .landing-hero-slide-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    .landing-hero-carousel .carousel-control-prev,
    .landing-hero-carousel .carousel-control-next {
        width: 34px;
        height: 34px;
    }
    .landing-hero-fallback {
        min-height: var(--landing-hero-h);
        max-height: none;
        height: var(--landing-hero-h);
        padding: 0.85rem 0.75rem;
    }
}
.landing-hero-carousel .carousel-control-prev,
.landing-hero-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 4;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}
.landing-hero-carousel .carousel-control-prev:hover,
.landing-hero-carousel .carousel-control-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}
.landing-hero-carousel .carousel-control-prev-icon,
.landing-hero-carousel .carousel-control-next-icon {
    filter: invert(0.35);
    width: 1.25rem;
    height: 1.25rem;
}
.landing-hero-carousel .carousel-control-prev { left: 10px; }
.landing-hero-carousel .carousel-control-next { right: 10px; }
.landing-hero-carousel .carousel-indicators {
    margin-bottom: 0.85rem;
    z-index: 4;
    gap: 0.35rem;
}
.landing-hero-carousel .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2px solid rgba(255,255,255,0.85);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}
.landing-hero-carousel .carousel-indicators [data-bs-target].active {
    background: #fff;
    transform: scale(1.2);
    border-color: #fff;
}
.flash-sale-section {
    --fs-card-w: 84px;
    --fs-body-h: 2.75rem;
    --fs-price-h: 1.35rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e11d48 0%, #dc2626 42%, #991b1b 100%);
}
.flash-sale-section.py-4 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.flash-sale-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(253,224,71,0.25) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(253,224,71,0.15) 0%, transparent 40%);
    pointer-events: none;
}
.flash-sale-inner { position: relative; z-index: 1; }
.flash-sale-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem; margin-bottom: 0.3rem; }
.flash-sale-title-wrap { display: flex; align-items: center; gap: 0.3rem; color: #fff; }
.flash-sale-title-wrap .bi-lightning-charge-fill { font-size: 0.95rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.flash-sale-title { font-weight: 800; font-size: clamp(0.85rem, 2vw, 1.05rem); letter-spacing: -0.02em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.flash-sale-countdown { display: flex; align-items: center; gap: 0.22rem; flex-wrap: wrap; color: rgba(255,255,255,0.95); font-size: 0.65rem; font-weight: 600; }
.flash-sale-countdown .cd-box {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.35rem; height: 1.35rem; padding: 0 0.18rem;
    background: #0d9488; border-radius: 5px; font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 0 #0f766e, inset 0 1px 0 rgba(255,255,255,0.15);
    font-size: 0.68rem;
}
.flash-sale-countdown .cd-sep { opacity: 0.85; font-weight: 700; }
.flash-sale-seeall {
    border: 1.5px solid rgba(255,255,255,0.95); color: #fff !important;
    background: transparent; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px;
    text-decoration: none; font-size: 0.65rem; transition: background 0.2s, color 0.2s;
}
.flash-sale-seeall:hover { background: rgba(255,255,255,0.15); color: #fff !important; }
.flash-sale-scroll-wrapper { align-items: center; gap: 0; }
.flash-sale-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.05rem 0 0.15rem;
    flex: 1;
    min-width: 0;
    -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.5rem;
    flex-shrink: 0;
    padding-right: 0.5rem;
    align-items: stretch;
}
/* Reuse All Products card in flash marquee */
.flash-sale-card-slot {
    flex: 0 0 min(42vw, 158px);
    width: min(42vw, 158px);
    max-width: 168px;
    scroll-snap-align: start;
}
@media (min-width: 576px) {
    .flash-sale-card-slot { flex-basis: 148px; width: 148px; max-width: 148px; }
}
@media (min-width: 992px) {
    .flash-sale-card-slot { flex-basis: 160px; width: 160px; max-width: 160px; }
}
.flash-sale-card-slot .landing-product-card {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.flash-sale-card-slot .landing-product-card .card-body-custom {
    padding: 0.45rem 0.5rem 0.55rem;
}
.flash-sale-card-slot .landing-product-card .product-title {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
    -webkit-line-clamp: 2;
}
.flash-sale-card-slot .landing-product-card .product-price,
.flash-sale-card-slot .landing-product-card .price-range {
    font-size: 0.8rem;
}
.flash-sale-card-slot .landing-product-card .product-compare { font-size: 0.68rem; }
.flash-sale-card-slot .landing-product-card .card-actions .btn-order-now {
    min-height: 34px;
    font-size: 0.68rem;
    padding: 0.35rem 0.3rem;
    border-radius: 9px;
}
.flash-sale-card-slot .landing-product-card .card-actions .btn-add-to-cart {
    width: 2.15rem;
    min-width: 2.15rem;
    padding: 0.35rem;
    font-size: 0.95rem;
    border-radius: 9px;
}
.flash-sale-card-slot .landing-product-card .variant-pills { display: none; }
.flash-sale-card-slot .landing-product-card .btn-view-options {
    font-size: 0.68rem;
    min-height: 34px;
    padding: 0.35rem 0.3rem;
}
.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;
}
.flash-sale-card {
    flex: 0 0 var(--fs-card-w);
    width: var(--fs-card-w);
    max-width: var(--fs-card-w);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.flash-sale-card .fs-img {
    width: 100%;
    height: var(--fs-card-w);
    aspect-ratio: 1;
    max-height: var(--fs-card-w);
    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.15rem 0.25rem calc(var(--fs-price-h) + 0.08rem);
    position: relative;
    min-height: var(--fs-body-h);
}
.flash-sale-card .fs-rating { font-size: 0.52rem; color: #ca8a04; margin-bottom: 0.05rem; line-height: 1.1; }
.flash-sale-card .fs-name {
    font-size: 0.62rem; font-weight: 600; color: var(--text); line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-sale-card .fs-price-row {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: stretch;
    min-height: var(--fs-price-h); height: var(--fs-price-h);
}
.flash-sale-card .fs-price {
    flex: 1; background: #0d9488; color: #fff; font-weight: 800; font-size: 0.64rem;
    display: flex; align-items: center; padding: 0 0.28rem;
}
.flash-sale-card .fs-off {
    position: relative; background: #0f766e; color: #fff; font-size: 0.5rem; font-weight: 800;
    padding: 0 0.22rem; display: flex; align-items: center;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
    min-width: 1.7rem; justify-content: center;
}
@media (min-width: 576px) {
    .flash-sale-section {
        --fs-card-w: 96px;
        --fs-body-h: 2.9rem;
        --fs-price-h: 1.4rem;
    }
    .flash-sale-card .fs-name { font-size: 0.66rem; }
    .flash-sale-card .fs-price { font-size: 0.7rem; }
}
@media (min-width: 992px) {
    .flash-sale-section {
        --fs-card-w: 104px;
        --fs-body-h: 3rem;
        --fs-price-h: 1.45rem;
    }
    .flash-sale-section.py-4 {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }
}
@media (max-width: 991.98px) {
    .flash-sale-section {
        --fs-card-w: 76px;
        --fs-body-h: 2.55rem;
        --fs-price-h: 1.25rem;
    }
    .flash-sale-section.py-4 {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }
    .flash-sale-head { margin-bottom: 0.25rem; gap: 0.25rem; }
}
@media (max-width: 575.98px) {
    .flash-sale-section {
        --fs-card-w: 68px;
        --fs-body-h: 2.4rem;
        --fs-price-h: 1.2rem;
    }
    .flash-sale-section.py-4 {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
    .flash-sale-title-wrap .bi-lightning-charge-fill { font-size: 0.85rem; }
    .flash-sale-title { font-size: 0.82rem; }
    .flash-sale-countdown .cd-box { min-width: 1.25rem; height: 1.25rem; font-size: 0.6rem; }
    .flash-sale-seeall { padding: 0.1rem 0.45rem; font-size: 0.6rem; }
    .flash-sale-card { border-radius: 7px; }
    .flash-sale-card .fs-rating { font-size: 0.48rem; margin-bottom: 0.04rem; }
    .flash-sale-card .fs-name { font-size: 0.56rem; -webkit-line-clamp: 1; }
    .flash-sale-card .fs-price { font-size: 0.58rem; padding: 0 0.2rem; }
    .flash-sale-card .fs-off { font-size: 0.46rem; min-width: 1.5rem; }
    .flash-sale-marquee-track { gap: 0.35rem; padding-right: 0.35rem; }
}
.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%);
    }
}
.landing-category-thumb {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    margin: 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%; object-fit: cover; 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;
}
.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-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-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; }
    .landing-hero-carousel .carousel-fade .carousel-item { transition: none !important; }
}
