/* Economizer LLC Marketplace Theme Styles */

:root {
    --mxn-gold: #c79a2b;
    --mxn-gold-dark: #9a7118;
    --mxn-gold-light: #e1b84b;
    --mxn-black: #101114;
    --mxn-surface: #f7f7f8;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--mxn-surface);
    color: #222;
}

/* Header Styles */
.top-notice-bar {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
}

.top-notice-bar a {
    color: #fff;
    text-decoration: none;
}

.mxn-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.mxn-brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--mxn-gold);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.mxn-brand-logo span {
    color: var(--mxn-black);
}

.mxn-search-input {
    border: 2px solid var(--mxn-gold);
    border-radius: 25px 0 0 25px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.mxn-search-input:focus {
    box-shadow: none;
    border-color: var(--mxn-gold-dark);
}

.mxn-search-btn {
    background-color: var(--mxn-gold);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0 25px;
    transition: background 0.2s;
}

.mxn-search-btn:hover {
    background-color: var(--mxn-gold-dark);
}

/* Category Mega Menu */
.mxn-mega-menu {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.mxn-mega-dropdown {
    position: static !important;
}

.mxn-mega-dropdown:hover .mega-dropdown-menu,
.mxn-mega-dropdown .dropdown-menu.show {
    display: block !important;
}

.mega-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1300px;
    margin: 0 auto !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 1.5rem !important;
    z-index: 1060 !important;
    background: #ffffff !important;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px);
    transition: transform 0.15s ease, background 0.15s ease;
}

@media (max-width: 767.98px) {
    .mega-dropdown-menu {
        border-radius: 0 0 12px 12px !important;
        padding: 0.75rem !important;
    }
}

/* MXN Free Gift Progress Bar Banner */
.free-gift-bar {
    background: linear-gradient(90deg, #9f7419 0%, #c79a2b 100%);
    color: #fff;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Product Card Component */
.mxn-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.mxn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.mxn-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f9f9f9;
}

.mxn-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mxn-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--mxn-gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.mxn-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mxn-gold);
}

.mxn-original-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
    margin-left: 5px;
}

.mxn-sold-tag {
    font-size: 0.75rem;
    color: #666;
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Buttons */
.btn-mxn-primary {
    background-color: var(--mxn-gold);
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    border: none;
}

.btn-mxn-primary:hover {
    background-color: var(--mxn-gold-dark);
    color: #fff;
}

/* Flash Sale Timer Header */
.flash-sale-header {
    background: linear-gradient(135deg, #111111 0%, #c79a2b 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.countdown-box {
    background: #000;
    color: #fff;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background-color: #111;
    min-height: calc(100vh - 70px);
    color: #fff;
}

.dashboard-sidebar a {
    color: #ccc;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.2s;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
    background-color: var(--mxn-gold);
    color: #fff;
}

/* Star Rating Histogram */
.rating-histogram-bar {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.rating-histogram-fill {
    height: 100%;
    border-radius: 5px;
    background-color: var(--mxn-gold-light);
}

/* MXN 4-Point Guarantee Bar */
.mxn-guarantee-box {
    background: #ffffff;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 15px;
}

/* Floating Sticky Purchase Bar */
.floating-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 12px 20px;
    z-index: 1040;
}

/* ============================================================
   Premium Responsive Layer
   Keeps storefront, buyer, seller and shared content usable on
   phones/tablets without relying on CDN-only Bootstrap assets.
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.table-responsive { -webkit-overflow-scrolling: touch; }
.card, .card-body, .row > * { min-width: 0; }
.text-break-mobile { overflow-wrap: anywhere; word-break: break-word; }

/* Seller drawer */
.seller-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    backdrop-filter: blur(2px);
    z-index: 1049;
}
.seller-mobile-bar {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(17,24,39,.06);
}

@media (max-width: 991.98px) {
    .flash-sale-header { gap: .75rem; flex-wrap: wrap; }
    .flash-sale-header h3 { font-size: 1.15rem; }
    .mxn-card .mxn-price { font-size: 1.08rem; }
}

@media (max-width: 767.98px) {
    body { font-size: .95rem; }
    .container, .container-fluid { --bs-gutter-x: 1.25rem; }

    .free-gift-bar { padding: 7px 0; font-size: .72rem; line-height: 1.25; }
    .free-gift-bar .container { flex-wrap: wrap; gap: 5px !important; }
    .free-gift-bar .btn { margin-left: 0 !important; font-size: .7rem; }

    .top-notice-bar { padding: 5px 0; font-size: .72rem; }
    .top-notice-bar .container { justify-content: center !important; text-align: center; }
    .top-notice-bar .container > div:first-child { width: 100%; }
    .top-notice-bar .container > div:last-child { display: none !important; }

    .mxn-header { padding-top: .35rem !important; padding-bottom: .45rem !important; }
    .mxn-header > .container { flex-wrap: wrap; gap: .55rem !important; }
    .mxn-brand-logo { order: 1; max-width: calc(100% - 118px); min-width: 0; font-size: 1.15rem; }
    .mxn-brand-logo img { max-height: 34px !important; max-width: 150px; width: auto; }
    .mxn-brand-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem !important; }
    .header-actions { order: 2; margin-left: auto; gap: .7rem !important; flex-shrink: 0; }
    .header-actions .fs-3 { font-size: 1.45rem !important; }
    .header-actions .fs-4 { font-size: 1.25rem !important; }
    .header-actions .dropdown-toggle::after { margin-left: .2rem; }
    .header-actions .dropdown-menu { max-width: calc(100vw - 24px); }
    .header-search { order: 3; flex: 0 0 100% !important; width: 100%; max-width: none !important; margin: 0 !important; }
    .mxn-search-input { min-width: 0; padding: 9px 13px; font-size: 16px; border-radius: 12px 0 0 12px; }
    .mxn-search-btn { min-width: 48px; padding: 0 14px; border-radius: 0 12px 12px 0; }

    .mxn-mega-menu { padding-top: .45rem !important; padding-bottom: .45rem !important; }
    .mxn-mega-menu > .container { gap: .5rem !important; }
    .mxn-mega-menu .btn { font-size: .82rem; }
    .mega-dropdown-menu { width: calc(100vw - 16px) !important; left: 8px !important; right: 8px !important; max-height: 68vh !important; }

    .carousel-item > .p-5 { padding: 1.25rem !important; min-height: 160px !important; }
    .carousel-item .display-6 { font-size: 1.55rem; }
    .flash-sale-header { padding: 12px 14px; border-radius: 14px 14px 0 0; }
    .flash-sale-header > div { min-width: 0; }
    .countdown-box { padding: 3px 6px; font-size: .78rem; }

    .dashboard-sidebar.seller-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 290px) !important;
        max-width: 290px;
        height: 100dvh;
        min-height: 100dvh;
        overflow-y: auto;
        z-index: 1055;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 0 20px 55px rgba(0,0,0,.3);
    }
    .dashboard-sidebar.seller-sidebar.mobile-open { transform: translateX(0); }
    .seller-sidebar-overlay.show { display: block; }
    .seller-main { width: 100% !important; margin-left: 0 !important; padding: 12px !important; }
    .seller-main > .d-flex.justify-content-between.align-items-center.mb-4 { align-items: flex-start !important; gap: .75rem; flex-wrap: wrap; }

    .card-body.p-4 { padding: 1rem !important; }
    .p-5 { padding: 1.5rem !important; }
    .btn-lg { font-size: 1rem; }
    h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
    .table-responsive { border-radius: .75rem; }
}

@media (max-width: 575.98px) {
    .container.my-4, .container.my-5 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
    .row { --bs-gutter-x: 1rem; }
    .row.g-4 { --bs-gutter-y: 1rem; }
    .card { border-radius: 14px; }

    /* Cart becomes readable mobile cards instead of a squeezed desktop table. */
    .cart-table-wrap { overflow: visible; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table thead { display: none; }
    .cart-table tbody { padding: 10px; }
    .cart-table tr {
        background: #fff;
        border: 1px solid #eceff3;
        border-radius: 14px;
        padding: 10px 12px;
        margin-bottom: 10px;
        box-shadow: 0 5px 16px rgba(17,24,39,.04);
    }
    .cart-table tr:last-child { margin-bottom: 0; }
    .cart-table td {
        border: 0;
        padding: 7px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
    }
    .cart-table td::before {
        content: attr(data-label);
        color: #6b7280;
        font-size: .72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .03em;
        text-align: left;
        flex: 0 0 72px;
    }
    .cart-table td:first-child { display: block; text-align: left; padding-bottom: 10px; border-bottom: 1px solid #f0f1f3; }
    .cart-table td:first-child::before { display: block; margin-bottom: 7px; }
    .cart-table td form { margin-left: auto; }
    .cart-table td input[type="number"] { width: 78px; }
    .cart-table td:first-child a { max-width: calc(100vw - 150px) !important; }
    .cart-coupon-form { flex-wrap: wrap; }
    .cart-coupon-form .fa-ticket { display: none; }
    .cart-coupon-form .form-control { flex: 1 1 100%; }
    .cart-coupon-form .btn { width: 100%; }

    .form-control, .form-select, textarea { font-size: 16px; }
    .modal-dialog { margin: .5rem; }
    .dropdown-menu { max-width: calc(100vw - 20px); }
    .mxn-card-badge { top: 6px; left: 6px; font-size: .6rem; }
    .mxn-card .p-2 { padding: .55rem !important; }
    .mxn-card h6 { font-size: .78rem !important; }
    .mxn-price { font-size: 1rem; }
    .mxn-original-price { font-size: .7rem; }
    .floating-sticky-bar { padding: 9px 10px; }
}

@media print {
    .mxn-header, .top-notice-bar, .free-gift-bar, .mxn-mega-menu, footer { display: none !important; }
    body { overflow: visible !important; background: #fff !important; }
}

/* ============================================================
   Premium Mobile App Product Feed v3
   Consistent storefront cards + reliable responsive View Item CTA
   ============================================================ */
.app-product-grid > .col { display: flex; min-width: 0; }
.app-product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eceff3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(20, 24, 32, .065);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-product-card:hover {
    border-color: rgba(255, 68, 0, .22);
    box-shadow: 0 12px 32px rgba(20, 24, 32, .11);
}
.app-product-media { overflow: hidden; background: #f5f6f8; }
.app-product-media .mxn-card-img,
.app-product-card .mxn-card-img { transition: transform .3s ease; }
.app-product-card:hover .mxn-card-img { transform: scale(1.025); }
.app-product-body { min-height: 148px; }
.app-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
}
.app-product-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}
.app-shipping-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    color: #12833b;
    background: #eaf8ef;
    border: 1px solid #ccefd8;
    font-size: .7rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-product-cta {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px !important;
    line-height: 1.1;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 14px rgba(255, 68, 0, .18);
}
.app-product-cta > span { overflow: hidden; text-overflow: ellipsis; }
.app-product-cta i { flex: 0 0 auto; font-size: .78rem; }
.app-flash-cta { width: auto; min-height: 32px; padding: 5px 9px; border-radius: 10px !important; }

@media (max-width: 767.98px) {
    /* App-like content density */
    .app-product-grid {
        --bs-gutter-x: .65rem;
        --bs-gutter-y: .75rem;
    }
    .app-product-card {
        border-radius: 15px;
        box-shadow: 0 5px 16px rgba(20, 24, 32, .065);
    }
    .app-product-card .mxn-card-img-wrapper { padding-top: 105%; }
    .app-product-card .p-3,
    .app-product-card .app-product-body { padding: .72rem !important; }
    .app-product-card .mxn-card-badge {
        max-width: calc(100% - 12px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-radius: 8px;
        padding: 4px 7px;
    }
    .app-product-title,
    .app-product-card h6 {
        font-size: .82rem !important;
        line-height: 1.34 !important;
        min-height: 2.68em !important;
        margin-bottom: .45rem !important;
    }
    .app-product-card .mxn-price {
        display: inline-block;
        max-width: 100%;
        font-size: 1.05rem !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
    .app-product-card .mxn-original-price { font-size: .68rem; }
    .app-product-card .badge { max-width: 100%; }
    .app-product-card .text-warning.small { font-size: .66rem !important; white-space: nowrap; }
    .app-product-footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .app-shipping-pill {
        padding: 4px 7px;
        font-size: .64rem;
    }
    .app-product-cta {
        width: 100% !important;
        min-height: 39px;
        padding: 8px 7px;
        border-radius: 11px !important;
        font-size: .76rem;
    }
    .app-product-cta i { font-size: .72rem; }
    .app-flash-card .app-product-cta {
        width: auto !important;
        min-height: 31px;
        padding: 5px 8px;
        font-size: .7rem;
    }
}

@media (max-width: 420px) {
    /* Keep two-column marketplace feed even on small phones without squeezing CTA */
    .app-product-grid { --bs-gutter-x: .55rem; --bs-gutter-y: .65rem; }
    .app-product-card { border-radius: 14px; }
    .app-product-card .p-3,
    .app-product-card .app-product-body { padding: .62rem !important; }
    .app-product-card .mxn-price { font-size: .98rem !important; }
    .app-product-cta { min-height: 38px; font-size: .72rem; gap: 5px; }
    .app-shipping-pill { font-size: .6rem; }
}

@media (max-width: 340px) {
    .app-product-cta { font-size: .69rem; padding-left: 5px; padding-right: 5px; }
    .app-product-card .mxn-price { font-size: .92rem !important; }
}

/* ============================================================
   Premium Mobile Storefront v4
   Responsive hero banners, swipeable Lightning Deals, app-style
   bottom navigation and theme-aware mobile browser chrome.
   ============================================================ */

/* Banner system */
.app-hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--app-secondary, #111827);
    box-shadow: 0 16px 42px rgba(17, 24, 39, .12);
}
.app-hero-slide {
    position: relative;
    min-height: 270px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--app-secondary, #111827) 0%, var(--app-primary, #c79a2b) 100%);
}
.app-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -3;
}
.app-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 12, 22, .90) 0%, rgba(8, 12, 22, .70) 44%, rgba(8, 12, 22, .24) 75%, rgba(8, 12, 22, .12) 100%),
        linear-gradient(135deg, rgba(0,0,0,.20), rgba(255,68,0,.10));
}
.app-hero-copy {
    width: min(680px, 68%);
    padding: 42px 54px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.app-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--app-secondary, #111827);
    font-size: .72rem;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.app-hero-kicker i { color: var(--app-primary, #c79a2b); }
.app-hero-copy h2 {
    margin: 12px 0 8px;
    max-width: 620px;
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.app-hero-copy p {
    max-width: 560px;
    margin: 0 0 18px;
    color: rgba(255,255,255,.82);
    font-size: .98rem;
    line-height: 1.55;
}
.app-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--app-secondary, #111827);
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.app-hero-cta:hover { color: var(--app-primary, #c79a2b); background: #fff; }
.app-hero-indicators { margin-bottom: 12px; }
.app-hero-indicators [data-bs-target] {
    width: 22px;
    height: 4px;
    border: 0;
    border-radius: 999px;
}
.app-hero-control { width: 7%; }

/* Lightning Deals system */
.flash-sale-header,
.app-lightning-header {
    background: linear-gradient(135deg, var(--app-secondary, #111827) 0%, var(--app-primary, #c79a2b) 100%);
}
.app-lightning-header {
    gap: 16px;
    padding: 15px 18px;
    border-radius: 18px 18px 0 0;
}
.app-lightning-title,
.app-lightning-heading,
.app-lightning-timer {
    display: flex;
    align-items: center;
}
.app-lightning-title { gap: 12px; min-width: 0; }
.app-lightning-heading { gap: 8px; min-width: 0; }
.app-lightning-heading i { color: #ffd24d; font-size: 1.15rem; }
.app-lightning-heading h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1;
    white-space: nowrap;
    font-weight: 950;
    letter-spacing: -.025em;
}
.app-lightning-offer {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    color: #ffe16c;
    font-size: .7rem;
    font-weight: 900;
    white-space: nowrap;
}
.app-lightning-timer {
    flex: 0 0 auto;
    gap: 6px;
    padding: 5px 7px 5px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(0,0,0,.22);
}
.app-lightning-ends {
    margin-right: 2px;
    font-size: .68rem;
    text-transform: uppercase;
    font-weight: 850;
    letter-spacing: .04em;
    color: rgba(255,255,255,.78);
}
.app-lightning-timer .countdown-box {
    min-width: 31px;
    padding: 5px 6px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    color: var(--app-secondary, #111827);
    font-size: .76rem;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
}
.app-lightning-timer b { color: rgba(255,255,255,.72); }
.app-flash-grid {
    padding: 12px;
    border: 1px solid #eceff3;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
}

/* Mobile app navigation is storefront-only. */
.mobile-app-nav,
.mobile-app-sheet { display: none; }

@media (max-width: 767.98px) {
    body.storefront-body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
        background: #f5f6f8;
    }

    /* Clean app header: account/search/cart move to bottom navigation. */
    body.storefront-body .top-notice-bar,
    body.storefront-body .mxn-mega-menu { display: none !important; }
    body.storefront-body .free-gift-bar {
        padding: 6px 8px;
        font-size: .68rem;
    }
    body.storefront-body .free-gift-bar .container {
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 5px !important;
        min-width: 0;
        overflow: hidden;
    }
    body.storefront-body .free-gift-bar .container > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.storefront-body .free-gift-bar .btn {
        flex: 0 0 auto;
        margin: 0 0 0 3px !important;
        padding: 2px 7px !important;
        font-size: .62rem;
        white-space: nowrap;
    }
    body.storefront-body .mxn-header {
        top: 0;
        padding: 7px 0 !important;
        box-shadow: 0 5px 18px rgba(17,24,39,.075);
    }
    body.storefront-body .mxn-header > .container {
        min-height: 43px;
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }
    body.storefront-body .mxn-brand-logo {
        order: 1;
        width: auto;
        max-width: min(78vw, 220px);
        margin: 0 auto;
        justify-content: center;
    }
    body.storefront-body .mxn-brand-logo img {
        max-height: 38px !important;
        max-width: min(68vw, 190px);
    }
    body.storefront-body .mxn-brand-logo span {
        font-size: 1.05rem !important;
        text-align: center;
    }
    body.storefront-body .header-search,
    body.storefront-body .header-actions { display: none !important; }

    /* Responsive banners with swipe-friendly copy and touch CTA. */
    .app-hero-carousel {
        margin-left: 0;
        margin-right: 0;
        border-radius: 18px;
        box-shadow: 0 9px 25px rgba(17,24,39,.10);
    }
    .app-hero-slide { min-height: 205px; }
    .app-hero-bg { object-position: center; }
    .app-hero-overlay {
        background: linear-gradient(90deg, rgba(8,12,22,.88) 0%, rgba(8,12,22,.68) 58%, rgba(8,12,22,.32) 100%);
    }
    .app-hero-copy {
        width: 86%;
        padding: 22px 20px 34px;
    }
    .app-hero-kicker {
        padding: 5px 8px;
        font-size: .58rem;
    }
    .app-hero-copy h2 {
        margin: 9px 0 6px;
        max-width: 95%;
        font-size: clamp(1.32rem, 6vw, 1.72rem);
        line-height: 1.08;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .app-hero-copy p {
        max-width: 94%;
        margin-bottom: 12px;
        font-size: .75rem;
        line-height: 1.38;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .app-hero-cta {
        min-height: 36px;
        padding: 7px 13px;
        font-size: .72rem;
    }
    .app-hero-control { display: none; }
    .app-hero-indicators { margin-bottom: 7px; }
    .app-hero-indicators [data-bs-target] { width: 16px; height: 3px; }

    /* Lightning Deals becomes an app-like horizontal swipe rail. */
    .app-lightning-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border-radius: 16px 16px 0 0;
    }
    .app-lightning-title {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .app-lightning-heading { gap: 6px; }
    .app-lightning-heading i { font-size: .92rem; }
    .app-lightning-heading h3 { font-size: .95rem !important; }
    .app-lightning-offer {
        padding: 5px 8px;
        font-size: .58rem;
    }
    .app-lightning-timer {
        width: 100%;
        justify-content: center;
        gap: 5px;
        padding: 6px 8px;
        border-radius: 10px;
    }
    .app-lightning-ends {
        margin-right: auto;
        font-size: .6rem;
    }
    .app-lightning-timer .countdown-box {
        min-width: 30px;
        padding: 5px 5px;
        font-size: .72rem;
    }
    .app-flash-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        margin: 0 0 1.35rem !important;
        padding: 10px 10px 13px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 0 0 16px 16px;
    }
    .app-flash-grid::-webkit-scrollbar { display: none; }
    .app-flash-grid > .col {
        flex: 0 0 min(43vw, 178px) !important;
        width: min(43vw, 178px) !important;
        max-width: none !important;
        padding: 0 !important;
        scroll-snap-align: start;
    }
    .app-flash-card {
        border-radius: 13px;
        box-shadow: 0 4px 13px rgba(17,24,39,.06);
    }
    .app-flash-card .mxn-card-img-wrapper { padding-top: 102%; }
    .app-flash-card .mxn-card-badge {
        max-width: calc(100% - 10px);
        font-size: .56rem;
        padding: 4px 6px;
    }
    .app-flash-card .p-2 { padding: .58rem !important; }
    .app-flash-card h6 {
        min-height: 2.35em;
        margin-bottom: 4px !important;
        font-size: .72rem !important;
        line-height: 1.18;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .app-flash-card .mxn-price { font-size: .9rem !important; }
    .app-flash-card .mxn-original-price { font-size: .6rem; }
    .app-flash-card .mxn-sold-tag { font-size: .58rem; }
    .app-flash-card .app-flash-cta {
        min-width: 48px;
        min-height: 29px;
        padding: 5px 7px;
        font-size: .64rem;
    }

    /* Fixed bottom app navigation */
    .mobile-app-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1080;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        min-height: calc(66px + env(safe-area-inset-bottom));
        padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.97);
        border-top: 1px solid rgba(17,24,39,.08);
        box-shadow: 0 -10px 30px rgba(17,24,39,.10);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
    }
    .mobile-app-nav-item {
        position: relative;
        min-width: 0;
        min-height: 53px;
        padding: 5px 2px 1px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #707784;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
        font-family: inherit;
        font-size: .61rem;
        line-height: 1;
        font-weight: 750;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-app-nav-item:hover,
    .mobile-app-nav-item:focus,
    .mobile-app-nav-item.active { color: var(--app-primary, #c79a2b); }
    .mobile-nav-icon {
        width: 30px;
        height: 27px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
    }
    .mobile-app-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        width: 22px;
        height: 3px;
        border-radius: 999px;
        background: var(--app-primary, #c79a2b);
    }
    .mobile-app-nav-main { color: var(--app-primary, #c79a2b); overflow: visible; }
    .mobile-nav-main-icon {
        width: 44px;
        height: 44px;
        margin-top: -20px;
        margin-bottom: 1px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 4px solid #fff;
        border-radius: 50%;
        background: linear-gradient(145deg, var(--app-primary, #c79a2b), var(--app-primary-dark, #9a7118));
        color: #fff;
        font-size: 1.05rem;
        box-shadow: 0 9px 20px rgba(17,24,39,.18);
    }
    .mobile-nav-badge {
        position: absolute;
        top: -5px;
        right: -7px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        border-radius: 999px;
        background: var(--app-primary, #c79a2b);
        color: #fff;
        font-size: .52rem;
        font-weight: 900;
        line-height: 1;
    }

    /* Bottom sheets */
    .mobile-app-sheet {
        display: block;
        z-index: 1090;
        height: auto !important;
        max-height: min(74dvh, 620px);
        border: 0;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -18px 55px rgba(17,24,39,.22);
        overflow: hidden;
    }
    #mobileSearchSheet { min-height: 225px; }
    .mobile-menu-sheet { height: min(72dvh, 610px) !important; }
    .mobile-app-sheet .offcanvas-body {
        padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
    }
    .mobile-sheet-header {
        padding: 15px 16px 9px;
        border-bottom: 1px solid #f0f1f3;
    }
    .mobile-sheet-kicker {
        display: block;
        margin-bottom: 2px;
        color: var(--app-primary, #c79a2b);
        font-size: .62rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
    }
    .mobile-sheet-header h5 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 900;
        color: var(--app-secondary, #111827);
    }
    .mobile-sheet-search {
        min-height: 50px;
        padding: 5px 5px 5px 14px;
        display: grid;
        grid-template-columns: auto minmax(0,1fr) auto;
        align-items: center;
        gap: 9px;
        border: 1.5px solid #e5e7eb;
        border-radius: 16px;
        background: #f8f9fb;
    }
    .mobile-sheet-search > i { color: #8a9099; }
    .mobile-sheet-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 16px;
        color: #20242b;
    }
    .mobile-sheet-search button {
        min-height: 38px;
        padding: 7px 12px;
        border: 0;
        border-radius: 12px;
        background: var(--app-primary, #c79a2b);
        color: #fff;
        font-size: .72rem;
        font-weight: 900;
    }
    .mobile-quick-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 8px;
    }
    .mobile-quick-links a {
        min-width: 0;
        min-height: 48px;
        padding: 8px 6px;
        border: 1px solid #eceff3;
        border-radius: 13px;
        background: #fff;
        color: #4b5563;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
        font-size: .62rem;
        font-weight: 800;
    }
    .mobile-quick-links i { color: var(--app-primary, #c79a2b); font-size: .9rem; }
    .mobile-menu-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap: 8px;
        margin-bottom: 16px;
    }
    .mobile-menu-actions a {
        min-width: 0;
        color: #374151;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: .63rem;
        text-align: center;
    }
    .mobile-menu-actions a span {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: #fff4ef;
        color: var(--app-primary, #c79a2b);
        font-size: 1rem;
    }
    .mobile-menu-actions b { font-weight: 800; }
    .mobile-menu-section-title {
        margin: 4px 0 8px;
        color: #848b96;
        font-size: .66rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
    }
    .mobile-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }
    .mobile-category-item {
        min-width: 0;
        min-height: 56px;
        padding: 8px 9px;
        display: grid;
        grid-template-columns: 34px minmax(0,1fr) auto;
        align-items: center;
        gap: 8px;
        border: 1px solid #eceff3;
        border-radius: 13px;
        background: #fff;
        color: #303640;
        text-decoration: none;
        font-size: .7rem;
        font-weight: 800;
        box-shadow: 0 3px 10px rgba(17,24,39,.035);
    }
    .mobile-category-icon {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #fff4ef;
        color: var(--app-primary, #c79a2b);
    }
    .mobile-category-item > span:nth-child(2) {
        min-width: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        line-height: 1.15;
    }
    .mobile-category-arrow { color: #b5bac2; font-size: .58rem; }

    /* Keep footer clear of the fixed app nav. */
    body.storefront-body footer { margin-bottom: 0 !important; }
    body.storefront-body .floating-sticky-bar {
        bottom: calc(66px + env(safe-area-inset-bottom));
        z-index: 1040;
    }
}

@media (max-width: 390px) {
    .app-flash-grid > .col {
        flex-basis: 45vw !important;
        width: 45vw !important;
    }
    .mobile-app-nav-item { font-size: .58rem; }
    .mobile-category-grid { grid-template-columns: 1fr; }
}

@media print {
    .mobile-app-nav,
    .mobile-app-sheet { display: none !important; }
}


/* ============================================================
   Premium Mobile Storefront v5
   Hard mobile-only navigation + rebuilt Lightning Deals layout.
   ============================================================ */

/* Never allow the app navigation/sheets to appear on desktop/tablet. */
@media (min-width: 768px) {
    body.storefront-body .mobile-app-nav,
    body.storefront-body .mobile-app-sheet {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    body.storefront-body { padding-bottom: 0 !important; }
}

/* Lightning Deals: independent grid, no Bootstrap row/column side effects. */
.app-lightning-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17,24,39,.055);
}
.app-lightning-section .app-lightning-header { margin: 0; }
.app-flash-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 12px;
    overflow: hidden;
    border: 1px solid #eceff3;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #fff;
}
.app-flash-item { min-width: 0; width: 100%; }
.app-flash-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.app-flash-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
}
.app-flash-media { flex: 0 0 auto; padding-top: 100%; }
.app-flash-body {
    min-width: 0;
    flex: 1 1 auto;
    padding: 9px;
    display: flex;
    flex-direction: column;
}
.app-flash-name {
    min-width: 0;
    min-height: 2.5em;
    margin: 0 0 7px;
    color: #20242b;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.app-flash-claim { min-width: 0; margin-bottom: 7px; }
.app-flash-progress {
    width: 100%;
    height: 5px;
    margin-bottom: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffe8e2;
}
.app-flash-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--app-primary, #c79a2b);
}
.app-flash-claim small {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #dc3545;
    font-size: .62rem;
    font-weight: 800;
    white-space: nowrap;
}
.app-flash-prices {
    min-width: 0;
    margin-top: auto;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 5px;
}
.app-flash-prices .mxn-price {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: anywhere;
}
.app-flash-prices .mxn-original-price { font-size: .66rem; }
.app-flash-meta {
    min-width: 0;
    margin-top: 7px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 6px;
}
.app-flash-meta .mxn-sold-tag {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .62rem;
}
.app-flash-meta .app-flash-cta {
    width: auto !important;
    min-width: 54px;
    min-height: 31px;
    padding: 6px 9px;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: .67rem;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .app-flash-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
    /* App navigation is enabled ONLY in this breakpoint. */
    body.storefront-body .mobile-app-nav { display: grid !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }
    body.storefront-body .mobile-app-sheet { visibility: visible !important; opacity: 1; pointer-events: auto; }
    body.storefront-body .mobile-app-sheet:not(.show):not(.showing) { visibility: hidden !important; }

    .app-lightning-section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(17,24,39,.06);
    }
    .app-lightning-header {
        width: 100%;
        min-width: 0;
        padding: 11px 10px 10px;
        gap: 8px;
        overflow: hidden;
    }
    .app-lightning-title {
        min-width: 0;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        align-items: center;
        gap: 7px;
    }
    .app-lightning-heading { min-width: 0; overflow: hidden; }
    .app-lightning-heading h3 {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(.84rem, 4vw, 1rem) !important;
        letter-spacing: -.03em;
    }
    .app-lightning-offer {
        max-width: 35vw;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 5px 7px;
        font-size: .56rem;
    }
    .app-lightning-timer {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 6px 8px;
        display: grid;
        grid-template-columns: minmax(0,1fr) 30px auto 30px auto 30px;
        align-items: center;
        gap: 4px;
    }
    .app-lightning-ends {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: .58rem;
    }
    .app-lightning-timer .countdown-box {
        min-width: 0;
        width: 30px;
        padding: 5px 2px;
        font-size: .7rem;
    }

    .app-flash-grid {
        display: grid !important;
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: clamp(142px, 43vw, 176px);
        gap: 9px;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 9px 9px 12px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 9px;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .app-flash-grid::-webkit-scrollbar { display: none; }
    .app-flash-item {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        scroll-snap-align: start;
    }
    .app-flash-card { border-radius: 13px; }
    .app-flash-media { padding-top: 100%; }
    .app-flash-body { padding: 8px; }
    .app-flash-name {
        min-height: 2.45em;
        margin-bottom: 6px;
        font-size: .72rem !important;
        line-height: 1.22;
    }
    .app-flash-progress { height: 4px; margin-bottom: 3px; }
    .app-flash-claim small { font-size: .56rem; }
    .app-flash-prices .mxn-price { font-size: .9rem !important; }
    .app-flash-prices .mxn-original-price { font-size: .58rem; }
    .app-flash-meta {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 6px;
    }
    .app-flash-meta .mxn-sold-tag { font-size: .56rem; }
    .app-flash-meta .app-flash-cta {
        width: 100% !important;
        min-width: 0;
        min-height: 32px;
        padding: 6px 7px;
        font-size: .65rem;
    }
}

@media (max-width: 360px) {
    .app-lightning-header { padding-left: 8px; padding-right: 8px; }
    .app-lightning-offer { max-width: 32vw; font-size: .52rem; }
    .app-lightning-timer {
        grid-template-columns: minmax(0,1fr) 27px auto 27px auto 27px;
        gap: 3px;
        padding-left: 6px;
        padding-right: 6px;
    }
    .app-lightning-timer .countdown-box { width: 27px; font-size: .66rem; }
    .app-flash-grid { grid-auto-columns: clamp(136px, 46vw, 158px); gap: 8px; }
}

/* ============================================================
   Economizer LLC restore patch: legacy hero branding + catalog pagination
   ============================================================ */
.app-hero-slide-branded {
    background:
        radial-gradient(circle at 82% 35%, rgba(199,154,43,.30), transparent 26%),
        linear-gradient(135deg, #090d16 0%, #151922 48%, var(--app-primary, #c79a2b) 145%);
}
.app-hero-slide-branded::before,
.app-hero-slide-branded::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    pointer-events: none;
}
.app-hero-slide-branded::before {
    width: 420px;
    height: 420px;
    right: -150px;
    top: -210px;
}
.app-hero-slide-branded::after {
    width: 280px;
    height: 280px;
    right: 40px;
    bottom: -210px;
}
.app-hero-brand-visual {
    position: absolute;
    z-index: 0;
    right: 6.5%;
    top: 50%;
    transform: translateY(-50%);
    width: min(31%, 350px);
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.app-hero-brand-card {
    width: 100%;
    min-height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 30px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(6px);
}
.app-hero-brand-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}
.app-hero-brand-card strong {
    color: var(--app-secondary, #111827);
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 900;
    text-align: center;
}

.app-home-pagination {
    padding-top: .25rem;
}
.app-page-btn {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-weight: 800;
    box-shadow: 0 4px 13px rgba(17,24,39,.05);
}
.app-page-btn:hover,
.app-page-btn:focus {
    border-color: var(--app-primary, #c79a2b);
    color: var(--app-primary-dark, #9a7118);
    background: #fffdf7;
}
.app-page-btn.active {
    border-color: var(--app-primary, #c79a2b);
    background: var(--app-primary, #c79a2b);
    color: #fff;
    box-shadow: 0 8px 22px rgba(199,154,43,.24);
}
.app-page-btn.disabled {
    opacity: .45;
    pointer-events: none;
}
.app-page-gap {
    min-width: 24px;
    text-align: center;
    color: #9ca3af;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .app-hero-brand-visual {
        right: 14px;
        width: 35%;
        opacity: .96;
    }
    .app-hero-brand-card {
        min-height: 112px;
        padding: 10px;
        border-radius: 20px;
    }
    .app-hero-brand-card img {
        max-height: 100px;
    }
    .app-hero-slide-branded .app-hero-copy {
        width: 70%;
        padding-right: 6px;
    }
    .app-page-btn {
        min-width: 38px;
        min-height: 38px;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 10px;
        font-size: .82rem;
    }
}

@media (max-width: 430px) {
    .app-hero-brand-visual {
        right: 9px;
        width: 34%;
    }
    .app-hero-brand-card {
        min-height: 92px;
        padding: 7px;
        border-radius: 16px;
    }
    .app-hero-brand-card img { max-height: 82px; }
    .app-hero-slide-branded .app-hero-copy {
        width: 69%;
        padding-left: 16px;
        padding-right: 4px;
    }
    .app-hero-slide-branded .app-hero-copy h2 {
        font-size: 1.18rem;
    }
    .app-hero-slide-branded .app-hero-copy p {
        font-size: .69rem;
    }
}

/* Reliable desktop hover navigation for All Categories */
@media (hover: hover) and (pointer: fine) {
    .mxn-mega-dropdown.is-hover-open .mega-dropdown-menu,
    .mxn-mega-dropdown:focus-within .mega-dropdown-menu {
        display: block !important;
    }

    .mxn-mega-dropdown .mega-dropdown-menu {
        margin-top: 0 !important;
    }
}

/* Expected delivery card on product detail */
.eco-delivery-estimate {
    padding: .8rem 1rem;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fbfbfb;
}

/* Customer review / As Received media */
.eco-as-received-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}

.eco-review-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.eco-review-media img,
.eco-review-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eco-review-upload-preview {
    margin-top: .75rem;
}

.eco-review-upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: .65rem;
}

.eco-review-upload-preview-item {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: .4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.eco-review-upload-preview-item img,
.eco-review-video-preview-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    object-fit: cover;
    background: #f4f4f4;
}

.eco-review-video-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.eco-review-upload-name {
    margin-top: .35rem;
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .eco-as-received-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   Storefront Product Grid Alignment + Stable Mega Menu v6.2
   Equal premium product cards across category/search/home/shop.
   ============================================================ */
.app-product-grid {
    align-items: stretch;
}

.app-product-grid > .col {
    display: flex;
    align-self: stretch;
    min-width: 0;
}

/* The product link is itself a flex item. Make it fill the whole
   Bootstrap column so card width/height never shrink to its content. */
.app-product-grid > .col > a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    flex: 1 1 auto;
}

.app-product-grid .app-product-card {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid #e9edf2;
    box-shadow: 0 8px 24px rgba(20, 24, 32, .075);
    overflow: hidden;
}

/* Every listing image gets one identical premium square frame. */
.app-product-grid .app-product-media,
.app-product-grid .mxn-card-img-wrapper.app-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding-top: 0 !important;
    flex: 0 0 auto;
    overflow: hidden;
    background: #f6f7f9;
}

.app-product-grid .app-product-media .mxn-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Normalize the information area so title/rating/price/button baselines
   stay aligned even when product names have different lengths. */
.app-product-grid .app-product-body,
.app-product-grid .app-product-card > .p-3.flex-grow-1 {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto !important;
    width: 100%;
    min-height: 172px;
}

.app-product-grid .app-product-title,
.app-product-grid .text-truncate-2 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em !important;
    max-height: 2.7em;
    line-height: 1.35 !important;
}

.app-product-grid .app-product-cta {
    min-height: 40px;
}

@media (max-width: 767.98px) {
    .app-product-grid .app-product-card {
        border-radius: 15px;
    }

    .app-product-grid .app-product-body,
    .app-product-grid .app-product-card > .p-3.flex-grow-1 {
        min-height: 158px;
    }
}

/* Desktop mega-menu hover bridge. The transparent strip fills the tiny
   visual gap between the All Categories button row and the dropdown. */
@media (hover: hover) and (pointer: fine) {
    .mxn-mega-dropdown.is-hover-open .mega-dropdown-menu,
    .mxn-mega-dropdown .mega-dropdown-menu.show,
    .mxn-mega-dropdown:focus-within .mega-dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .mxn-mega-dropdown .mega-dropdown-menu {
        margin-top: 0 !important;
    }

    .mxn-mega-dropdown .mega-dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -14px;
        height: 14px;
        background: transparent;
        pointer-events: auto;
    }

    .mxn-mega-dropdown .mega-dropdown-menu a {
        position: relative;
        z-index: 1;
    }
}

/* ============================================================
   Premium rotating product hero v6.3
   Product-driven homepage slider. Promotional presentation only;
   pricing data is never modified by this component.
   ============================================================ */
.app-product-hero {
    border: 1px solid rgba(199,154,43,.20);
    background: #0d111b;
    box-shadow: 0 20px 55px rgba(15,23,42,.16);
}

.app-product-hero-slide {
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: center;
    gap: 34px;
    padding: 34px 74px 34px 58px;
    background:
        radial-gradient(circle at 82% 20%, rgba(245,190,53,.22), transparent 27%),
        radial-gradient(circle at 68% 82%, rgba(255,255,255,.07), transparent 24%),
        linear-gradient(132deg, #0b0f17 0%, #151a24 55%, #2d2514 125%);
    isolation: isolate;
}

.app-product-hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -110px;
    top: -165px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,154,43,.24), rgba(199,154,43,0) 68%);
    pointer-events: none;
    z-index: 0;
}

.app-product-hero-copy {
    width: 100%;
    max-width: 720px;
    padding: 0;
    position: relative;
    z-index: 2;
}

.app-product-hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.app-product-hero-saving {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(199,154,43,.16);
    border: 1px solid rgba(240,192,70,.34);
    color: #f8d86d;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.app-product-hero-category {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.60);
    font-size: .72rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-product-hero-copy h2 {
    margin: 0 0 12px;
    max-width: 660px;
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3.45rem);
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: -.04em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-product-hero-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: rgba(255,255,255,.68);
    font-size: .82rem;
}
.app-product-hero-rating i { color: #f3b51a; }
.app-product-hero-rating strong { color: #fff; font-weight: 900; }

.app-product-hero-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.app-product-hero-price {
    color: #f6c94e;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 950;
    letter-spacing: -.025em;
}
.app-product-hero-old-price {
    color: rgba(255,255,255,.48);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: line-through;
}

.app-product-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}
.app-product-hero-actions .app-hero-cta {
    min-height: 46px;
    padding-inline: 21px;
    background: var(--app-primary, #c79a2b);
    color: #111827;
    box-shadow: 0 12px 28px rgba(199,154,43,.25);
}
.app-product-hero-actions .app-hero-cta:hover {
    transform: translateY(-1px);
    background: #e0b53e;
    color: #111827;
}
.app-product-hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.65);
    font-size: .77rem;
    font-weight: 750;
}
.app-product-hero-trust i { color: #71d59a; }

.app-product-hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    justify-self: end;
    text-decoration: none;
}
.app-product-hero-image-shell {
    position: relative;
    width: min(100%, 330px);
    aspect-ratio: 1 / 1;
    padding: 18px;
    border-radius: 32px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 28px 65px rgba(0,0,0,.34);
    overflow: hidden;
}
.app-product-hero-image-shell::after {
    content: "";
    position: absolute;
    inset: auto 12% -22% 12%;
    height: 30%;
    border-radius: 50%;
    background: rgba(199,154,43,.20);
    filter: blur(18px);
    pointer-events: none;
}
.app-product-hero-image-shell img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    transition: transform .35s ease;
}
.app-product-hero-visual:hover .app-product-hero-image-shell img { transform: scale(1.035); }

.app-product-hero-discount,
.app-product-hero-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1;
    font-weight: 950;
    box-shadow: 0 7px 18px rgba(17,24,39,.15);
}
.app-product-hero-discount {
    background: #dc2626;
    color: #fff;
}
.app-product-hero-featured {
    background: #111827;
    color: #f6c94e;
}

.app-product-hero .app-hero-control {
    width: 52px;
    opacity: .78;
}
.app-product-hero .carousel-control-prev { left: 4px; }
.app-product-hero .carousel-control-next { right: 4px; }
.app-product-hero .app-hero-indicators { margin-bottom: 10px; }
.app-product-hero .app-hero-indicators [data-bs-target] {
    background-color: rgba(255,255,255,.82);
}

@media (max-width: 991.98px) {
    .app-product-hero-slide {
        min-height: 330px;
        grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
        gap: 20px;
        padding: 30px 52px 34px 38px;
    }
    .app-product-hero-image-shell { width: min(100%, 270px); border-radius: 26px; }
    .app-product-hero-copy h2 { font-size: clamp(1.65rem, 4.7vw, 2.6rem); }
}

@media (max-width: 767.98px) {
    .app-product-hero {
        border-radius: 20px;
    }
    .app-product-hero-slide {
        min-height: 430px;
        grid-template-columns: minmax(0, 1fr) minmax(128px, 38%);
        align-items: center;
        gap: 12px;
        padding: 26px 15px 34px 18px;
    }
    .app-product-hero-copy h2 {
        margin-bottom: 10px;
        font-size: clamp(1.25rem, 5.7vw, 1.75rem);
        line-height: 1.08;
    }
    .app-product-hero-category { font-size: .62rem; }
    .app-product-hero-badges { gap: 6px; margin-bottom: 9px; }
    .app-product-hero-badges .app-hero-kicker,
    .app-product-hero-saving { font-size: .58rem; min-height: 25px; padding: 5px 8px; }
    .app-product-hero-rating { margin-bottom: 9px; font-size: .69rem; }
    .app-product-hero-price-row { margin-bottom: 12px; gap: 7px; }
    .app-product-hero-price { font-size: 1.3rem; }
    .app-product-hero-old-price { font-size: .72rem; }
    .app-product-hero-actions { gap: 8px; }
    .app-product-hero-actions .app-hero-cta { min-height: 40px; padding: 8px 12px; font-size: .72rem; }
    .app-product-hero-trust { width: 100%; font-size: .62rem; }
    .app-product-hero-visual { max-width: 180px; }
    .app-product-hero-image-shell {
        width: 100%;
        padding: 9px;
        border-radius: 21px;
        box-shadow: 0 18px 38px rgba(0,0,0,.30);
    }
    .app-product-hero-image-shell img { border-radius: 14px; }
    .app-product-hero-discount,
    .app-product-hero-featured {
        top: 8px;
        right: 8px;
        min-height: 24px;
        padding: 4px 7px;
        font-size: .56rem;
    }
    .app-product-hero .app-hero-control { display: none; }
}

@media (max-width: 430px) {
    .app-product-hero-slide {
        min-height: 380px;
        grid-template-columns: minmax(0, 1fr) minmax(112px, 36%);
        padding: 22px 11px 30px 14px;
    }
    .app-product-hero-copy h2 { font-size: 1.17rem; }
    .app-product-hero-rating span { display: none; }
    .app-product-hero-trust { display: none; }
    .app-product-hero-actions .app-hero-cta { min-height: 37px; }
}


/* ============================================================
   Mobile Categories Sheet v6.4
   Keep category scrolling inside the sheet and fully lock the
   storefront page behind it on touch devices.
   ============================================================ */
@media (max-width: 767.98px) {
    html.mobile-sheet-scroll-locked,
    body.mobile-sheet-scroll-locked {
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    body.mobile-sheet-scroll-locked {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    body.storefront-body .mobile-app-sheet {
        display: flex !important;
        flex-direction: column;
        overscroll-behavior: contain;
        touch-action: none;
    }

    body.storefront-body .mobile-menu-sheet {
        height: min(82dvh, 680px) !important;
        max-height: calc(100dvh - max(12px, env(safe-area-inset-top))) !important;
    }

    body.storefront-body .mobile-app-sheet .offcanvas-header {
        flex: 0 0 auto;
        position: relative;
        z-index: 2;
        background: #fff;
    }

    body.storefront-body .mobile-app-sheet .offcanvas-body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y !important;
        scrollbar-gutter: stable;
    }

    body.storefront-body .mobile-category-grid {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    body.storefront-body .mobile-app-nav-main > span:last-child {
        max-width: 68px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ============================================================
   Commerce UX Suite v7.1 — logo, delivery, wallet, checkout, spin
   ============================================================ */
/* Slightly larger logo without increasing the header's visual height. */
.mxn-site-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: 208px;
    object-fit: contain;
    object-position: left center;
    margin-block: -10px;
}
@media (max-width: 991.98px) {
    .mxn-site-logo { height: 57px; max-width: 194px; margin-block: -8px; }
}
@media (max-width: 767.98px) {
    body.storefront-body .mxn-brand-logo img.mxn-site-logo,
    .mxn-brand-logo img.mxn-site-logo {
        height: 47px !important;
        max-height: 47px !important;
        max-width: min(70vw, 190px) !important;
        margin-block: -6px;
    }
}

.eco-currency-menu { min-width: 235px; border-radius: 14px; padding: .4rem; }
.eco-currency-menu .dropdown-item { border-radius: 10px; padding: .55rem .7rem; }
.eco-currency-menu .dropdown-item.active { background: #111827; color: #fff; }

/* Compact premium FAST marker used beside delivery guarantee labels. */
.eco-fast-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: .3rem;
    padding: .16rem .42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #198754, #0f6b42);
    color: #fff;
    font-size: .58rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .055em;
    vertical-align: .12em;
    box-shadow: 0 2px 7px rgba(25,135,84,.2);
}

/* Automatic delivery range */
.eco-delivery-estimate {
    display: flex; align-items: center; gap: .8rem;
    padding: .9rem 1rem; border: 1px solid #dff1e5; border-radius: 16px;
    background: linear-gradient(135deg,#f6fff9,#fff); box-shadow: 0 8px 22px rgba(22,101,52,.06);
}
.eco-delivery-icon, .eco-checkout-delivery-icon {
    width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
    border-radius: 13px; background: #e9f8ee; color: #16803d; font-size: 1.1rem;
}
.eco-checkout-delivery {
    display:flex; align-items:center; gap:1rem; padding:1rem 1.15rem; border:1px solid #dff1e5;
    border-radius:18px; background:linear-gradient(135deg,#f7fff9,#fff); box-shadow:0 8px 24px rgba(22,101,52,.06);
}

/* Checkout payment cards */
.eco-payment-option {
    display:flex; align-items:center; gap:.9rem; padding:1rem; border:1px solid #e5e7eb;
    border-radius:16px; cursor:pointer; transition:.18s ease; background:#fff;
}
.eco-payment-option:hover { border-color:#d5a51f; box-shadow:0 8px 22px rgba(17,24,39,.07); transform:translateY(-1px); }
.eco-payment-option:has(input:checked) { border-color:#c79a2b; background:#fffcf2; box-shadow:0 0 0 2px rgba(199,154,43,.10); }
.eco-payment-icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:13px; background:#111827; color:#f7c948; }
.eco-payment-wallet .eco-payment-icon { background:#eaf8ef; color:#16803d; }
.eco-checkout-items { max-height:270px; overflow:auto; scrollbar-width:thin; }
.min-w-0 { min-width:0; }

/* Premium wallet */
.eco-wallet-hero {
    position:relative; overflow:hidden; border-radius:24px; padding:1.6rem 1.7rem;
    background:radial-gradient(circle at 85% 20%,rgba(244,196,48,.22),transparent 34%),linear-gradient(135deg,#090d14,#1a2230 62%,#7a5b10);
    box-shadow:0 18px 45px rgba(9,13,20,.18); color:#fff;
}
.eco-wallet-glow { position:absolute; width:280px; height:280px; right:-110px; bottom:-180px; border-radius:50%; background:rgba(246,194,43,.2); filter:blur(5px); }
.eco-wallet-kicker { display:inline-flex; align-items:center; padding:.38rem .7rem; border:1px solid rgba(255,255,255,.14); border-radius:999px; font-size:.72rem; font-weight:800; letter-spacing:.08em; color:#f7c948; background:rgba(255,255,255,.05); }
.eco-wallet-money { display:flex; align-items:baseline; gap:.5rem; font-weight:900; font-size:clamp(2rem,5vw,3.65rem); line-height:1; letter-spacing:-.04em; }
.eco-wallet-symbol { color:#f7c948; font-size:.52em; letter-spacing:0; }
.eco-wallet-coins-card { min-width:min(100%,310px); padding:1rem 1.1rem; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(255,255,255,.07); backdrop-filter:blur(8px); }
.eco-wallet-coin-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:16px; background:#f7c948; color:#111827; font-size:1.35rem; box-shadow:0 8px 20px rgba(247,201,72,.18); }
.eco-coin-package { border:1px solid #e4e6ea; border-radius:14px; padding:.75rem .6rem; background:#fff; color:#111827; transition:.18s ease; }
.eco-coin-package strong,.eco-coin-package small { display:block; }
.eco-coin-package small { color:#6b7280; margin-top:.12rem; font-size:.72rem; }
.eco-coin-package:hover { border-color:#c79a2b; background:#fffaf0; transform:translateY(-1px); box-shadow:0 8px 20px rgba(17,24,39,.07); }

/* Advanced real reward wheel (DOM/CSS only - no canvas) */
.eco-spin-modal .modal-content { border-radius:30px; box-shadow:0 32px 100px rgba(0,0,0,.38); background:#fff; }
.eco-spin-close { position:absolute; z-index:30; top:14px; right:14px; }
.eco-spin-stage { position:relative; padding:2rem 2rem 2.25rem; text-align:center; background:radial-gradient(circle at 50% 22%,#344255 0,#151b25 43%,#06080d 100%); min-height:560px; overflow:hidden; isolation:isolate; }
.eco-spin-stage::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.28; background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size:24px 24px; }
.eco-spin-glow { position:absolute; z-index:-1; border-radius:50%; filter:blur(10px); pointer-events:none; }
.eco-spin-glow-one { width:250px; height:250px; left:-120px; top:110px; background:rgba(245,183,43,.16); }
.eco-spin-glow-two { width:220px; height:220px; right:-100px; bottom:-70px; background:rgba(85,103,255,.15); }
.eco-spin-eyebrow { display:inline-flex; align-items:center; color:#ffe18a; background:rgba(247,201,72,.1); border:1px solid rgba(247,201,72,.34); padding:.42rem .82rem; border-radius:999px; font-size:.7rem; font-weight:900; letter-spacing:.09em; }
.eco-wheel-wrap { position:relative; width:min(382px,80vw); aspect-ratio:1; padding:23px; filter:drop-shadow(0 22px 32px rgba(0,0,0,.34)); }
.eco-wheel-rim { position:relative; width:100%; height:100%; padding:15px; border-radius:50%; background:linear-gradient(145deg,#fff3ac 0,#e0ad34 22%,#865b06 52%,#f3c64e 77%,#6a4605 100%); box-shadow:0 0 0 6px #241804,0 22px 48px rgba(0,0,0,.52),inset 0 0 0 3px rgba(255,255,255,.54),inset 0 -9px 16px rgba(55,31,0,.28); }
.eco-wheel-rim::before { content:""; position:absolute; inset:7px; border-radius:50%; border:1px solid rgba(255,250,213,.68); box-shadow:inset 0 0 12px rgba(255,239,154,.35); pointer-events:none; }
.eco-wheel-rim::after { content:""; position:absolute; inset:12px; border-radius:50%; border:2px solid rgba(76,46,0,.36); pointer-events:none; }
.eco-wheel-lights { position:absolute; inset:0; z-index:8; pointer-events:none; border-radius:50%; }
.eco-wheel-lights i { position:absolute; left:50%; top:50%; width:7px; height:7px; margin:-3.5px; border-radius:50%; background:#fff8c9; box-shadow:0 0 8px #ffe78a,0 0 14px rgba(255,213,66,.8); transform:rotate(calc(var(--i) * 18deg)) translateY(-174px); transform-origin:3.5px 3.5px; animation:ecoWheelBulb 1.2s ease-in-out infinite alternate; animation-delay:calc(var(--i) * -60ms); }
@keyframes ecoWheelBulb { from{opacity:.48;filter:brightness(.85)} to{opacity:1;filter:brightness(1.4)} }
.eco-wheel { position:relative; width:100%; height:100%; border-radius:50%; overflow:hidden; transform:translateZ(0); backface-visibility:hidden; will-change:transform; transition:transform 4.95s cubic-bezier(.08,.72,.07,1); background:conic-gradient(from 0deg,#d29214 0 45deg,#202938 45deg 90deg,#b8323a 90deg 135deg,#13734c 135deg 180deg,#7041bb 180deg 225deg,#cf9318 225deg 270deg,#2456a8 270deg 315deg,#92243e 315deg 360deg); box-shadow:inset 0 0 0 5px rgba(255,255,255,.3),inset 0 0 28px rgba(0,0,0,.28); }
.eco-wheel::before { content:""; position:absolute; inset:3.5%; border:1px solid rgba(255,255,255,.28); border-radius:50%; background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.38) 0 .45deg,transparent .45deg 45deg); pointer-events:none; z-index:1; }
.eco-wheel::after { content:""; position:absolute; inset:0; border-radius:50%; background:radial-gradient(circle at 35% 24%,rgba(255,255,255,.22),transparent 25%,transparent 62%,rgba(0,0,0,.2) 100%); pointer-events:none; z-index:1; }
.eco-wheel-label { position:absolute; inset:0; z-index:3; pointer-events:none; transform:rotate(var(--angle)); }
.eco-wheel-label b { position:absolute; top:8.5%; left:50%; width:94px; margin-left:-47px; text-align:center; transform:rotate(90deg); transform-origin:center; color:#fff; font-size:.68rem; line-height:1.05; font-weight:950; letter-spacing:.025em; text-shadow:0 2px 5px rgba(0,0,0,.75); white-space:normal; }
.eco-wheel-hub { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:100px; height:100px; border-radius:50%; background:linear-gradient(145deg,#fffbe7 0,#f6cf68 30%,#d69a1f 68%,#9a6506 100%); color:#111827; display:grid; place-items:center; align-content:center; border:6px solid rgba(255,255,255,.96); box-shadow:0 8px 24px rgba(0,0,0,.4),inset 0 2px 4px rgba(255,255,255,.9),inset 0 -5px 8px rgba(100,61,0,.22); font-size:1.3rem; z-index:6; }
.eco-wheel-hub-ring { position:absolute; inset:7px; border-radius:50%; border:1px solid rgba(91,56,0,.28); }
.eco-wheel-hub small { font-size:.44rem; font-weight:900; margin-top:1px; letter-spacing:.1em; }
.eco-wheel-hub strong { font-size:.58rem; line-height:1; margin-top:2px; letter-spacing:.04em; }
.eco-wheel-pointer { position:absolute; z-index:15; top:-5px; left:50%; transform:translateX(-50%); color:#fff; font-size:3.35rem; line-height:1; filter:drop-shadow(0 5px 5px rgba(0,0,0,.65)); transform-origin:50% 0; }
.eco-pointer-pin { position:absolute; left:50%; top:4px; width:16px; height:16px; border-radius:50%; background:linear-gradient(#ffe78b,#bc7d09); border:3px solid #fff; transform:translateX(-50%); box-shadow:0 2px 8px rgba(0,0,0,.4); }
.eco-wheel-pointer.is-spinning { animation:ecoPointerTick .13s ease-in-out infinite alternate; }
@keyframes ecoPointerTick { from{transform:translateX(-50%) rotate(-5deg)} to{transform:translateX(-50%) rotate(5deg)} }
.eco-spin-stage.is-winning .eco-wheel-rim { animation:ecoWinnerGlow .7s ease-in-out 3 alternate; }
@keyframes ecoWinnerGlow { from{filter:brightness(1)} to{filter:brightness(1.22);box-shadow:0 0 0 6px #241804,0 0 44px rgba(255,209,75,.65),0 22px 48px rgba(0,0,0,.52),inset 0 0 0 3px rgba(255,255,255,.54)} }
.eco-spin-trust { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.55rem; }
.eco-spin-trust span { display:inline-flex; align-items:center; gap:.35rem; padding:.38rem .65rem; border-radius:999px; border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.06); color:rgba(255,255,255,.72); font-size:.67rem; font-weight:800; }
.eco-spin-trust i { color:#f5c84b; }
.eco-spin-panel { background:linear-gradient(180deg,#fff,#fffaf0); }
.eco-spin-panel-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:17px; background:linear-gradient(145deg,#fff1b9,#f7c948); color:#4b3304; font-size:1.4rem; box-shadow:0 10px 25px rgba(199,154,43,.2); }
.eco-spin-action { box-shadow:0 10px 24px rgba(17,24,39,.16); transition:transform .18s ease,box-shadow .18s ease; }
.eco-spin-action:hover { transform:translateY(-1px); box-shadow:0 13px 28px rgba(17,24,39,.22); }
.eco-spin-result { border:1px solid #d8e9d9; border-radius:18px; padding:1rem; margin-bottom:1rem; background:linear-gradient(180deg,#f8fff8,#f2fbf3); box-shadow:0 8px 20px rgba(22,101,52,.06); }
.eco-spin-win,.eco-spin-neutral,.eco-spin-bonus { display:flex; gap:.75rem; align-items:center; text-align:left; }
.eco-spin-win { color:#166534; }.eco-spin-neutral { color:#7c2d12; }.eco-spin-bonus { color:#1d4ed8; }
.eco-result-icon { flex:0 0 42px; width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#fff; border:1px solid rgba(0,0,0,.07); box-shadow:0 5px 13px rgba(0,0,0,.06); }
.eco-result-icon i { font-size:1.2rem; color:#c78d0d; }
.eco-spin-win small,.eco-spin-win strong,.eco-spin-neutral small,.eco-spin-neutral strong,.eco-spin-bonus small,.eco-spin-bonus strong { display:block; }
.eco-spin-win small,.eco-spin-neutral small,.eco-spin-bonus small { font-size:.62rem; font-weight:900; letter-spacing:.08em; }
.eco-spin-win strong,.eco-spin-neutral strong,.eco-spin-bonus strong { font-size:1.04rem; line-height:1.28; }
.eco-spin-code-wrap { display:flex; align-items:stretch; gap:.45rem; margin-top:.8rem; }
.eco-spin-code { flex:1; min-width:0; padding:.68rem .72rem; border:1px dashed #c79a2b; border-radius:11px; background:#fff; font-weight:950; letter-spacing:.07em; text-align:center; color:#111827; overflow-wrap:anywhere; }
.eco-spin-copy { flex:0 0 43px; width:43px; border:1px solid #e2d09a; border-radius:11px; background:#fff8e5; color:#5b4307; transition:.18s ease; }
.eco-spin-copy:hover { background:#f7c948; color:#111827; }
.eco-spin-applied { margin-top:.62rem; display:flex; align-items:center; justify-content:center; gap:.35rem; color:#166534; font-size:.72rem; font-weight:850; }
@media(max-width:767.98px){
  .eco-spin-modal .modal-dialog{margin:.45rem}
  .eco-spin-stage{min-height:auto;padding:1.1rem .75rem 1.15rem}
  .eco-spin-stage h3{font-size:1.3rem}
  .eco-spin-stage p{font-size:.7rem!important;margin-bottom:.45rem!important}
  .eco-wheel-wrap{width:min(300px,82vw);padding:18px}
  .eco-wheel-rim{padding:11px}
  .eco-wheel-lights i{width:5px;height:5px;margin:-2.5px;transform:rotate(calc(var(--i) * 18deg)) translateY(-136px)}
  .eco-wheel-hub{width:76px;height:76px;border-width:4px;font-size:1.05rem}
  .eco-wheel-label b{top:8%;width:72px;margin-left:-36px;font-size:.5rem}
  .eco-wheel-pointer{font-size:2.8rem;top:-4px}
  .eco-pointer-pin{width:13px;height:13px;border-width:2px}
  .eco-spin-trust{margin-top:.5rem!important}
  .eco-spin-trust span{font-size:.6rem;padding:.3rem .5rem}
  .eco-spin-panel{padding:1.15rem!important}
  .eco-spin-panel-icon{width:45px;height:45px;border-radius:14px;font-size:1.15rem;margin-bottom:.65rem!important}
  .eco-spin-panel h4{font-size:1.08rem}
  .eco-spin-result{padding:.8rem}
}

/* Official UAE Dirham sign (D form with two horizontal bars).
   Sized in em units so it follows the surrounding price typography. */
.aed-dirham-sign{display:inline-flex;align-items:center;justify-content:center;width:.92em;height:1em;line-height:1;vertical-align:-.08em;margin-right:.22em;flex:0 0 auto;color:inherit;max-width:.92em;max-height:1em}
.aed-dirham-sign svg{display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%;overflow:visible}
.aed-dirham-value{white-space:nowrap}
.aed-dirham-sign-sm{width:.82em;height:.9em;margin-right:.12em;vertical-align:-.06em;max-width:.82em;max-height:.9em}
.aed-dirham-sign-wallet{width:.86em;height:.96em;margin-right:0;vertical-align:-.05em;max-width:.86em;max-height:.96em}
.aed-dirham-sign-settings{width:1em;height:1.08em;margin-right:0;vertical-align:-.08em;max-width:1em;max-height:1.08em}
@media (max-width:575.98px){.aed-dirham-sign{min-width:0}}
