/* Mobile critical fixes */
@media (max-width: 991.98px) {
    div._e9b._mo,
    div.stylusid-anniversary,
    div[class*="stylusid-anniversary"] {
        display: none !important;
    }

    .front-header-search {
        display: none !important;
    }
}

:root {
    --primary: #5C0022 !important;
    --hov-primary: #3d0016 !important;
    --soft-primary: rgba(92, 0, 34, 0.12) !important;
    --mall-btn-bg: rgba(0, 0, 0, 0.72);
    --mall-btn-color: #ffffff;
    --mall-radius: 12px;
}

/* Category sidebar header: brand burgundy (hardcoded to beat cache/vars) */
.p-3.bg-soft-primary.d-none.d-lg-block.rounded-top.all-category.position-relative.text-left,
.all-category.bg-soft-primary,
.aiz-category-menu > .all-category,
.aiz-category-menu .all-category,
.brand-cat-header,
div.all-category {
    background-color: #5C0022 !important;
    background-image: none !important;
    color: #ffffff !important;
}
.brand-cat-header a,
.brand-cat-header span,
.all-category a,
.all-category span {
    color: #ffffff !important;
}

/* Kill legacy scraped anniversary banner leftovers (was blocking all PC clicks) */
.stylusid-anniversary,
div[class*="stylusid-anniversary"],
div[class*="astro-sy6zno2k"] {
    display: none !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Ensure main UI remains clickable on PC */
html, body, .aiz-main-wrapper {
    pointer-events: auto !important;
}
.aiz-main-wrapper {
    position: relative;
    z-index: 1;
}

/* Global rounded images */
img:not(.no-round):not(.rounded-circle):not(.avatar-letter) {
    border-radius: var(--mall-radius) !important;
}
@media (max-width: 991.98px) {
    img:not(.no-round):not(.rounded-circle):not(.avatar-letter):not(.mall-mobile-logo):not(.altonalon-logo) {
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
    .hot-category-item img,
    .hot-brands-scroll img {
        border: 1px solid #eee !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
        border-radius: 12px !important;
    }
}
img:not(.no-round):not([class*="avatar-letter"]):not(.brand-icon):not(.altonalon-logo):not([style*="border-radius:50%"]) {
    border-radius: var(--mall-radius) !important;
}

.aiz-card-box img,
.product-card img,
.carousel-box img,
.img-fit,
.lazyload[data-src],
.brand-icon {
    border-radius: var(--mall-radius) !important;
}

/* Semi-transparent black buttons with white text */
.btn-mall-dark,
.btn-add-to-cart,
.btn-buy-now,
.product-details .btn-primary:not(.btn-soft-primary),
.product-details .btn-secondary,
.shop_listing .btn-soft-primary,
#section_newest .btn-primary,
.aiz-mobile-bottom-nav .bg-primary {
    background: var(--mall-btn-bg) !important;
    border-color: rgba(0, 0, 0, 0.85) !important;
    color: var(--mall-btn-color) !important;
}

.btn-mall-dark:hover,
.btn-add-to-cart:hover,
.btn-buy-now:hover,
.product-details .btn-primary:not(.btn-soft-primary):hover {
    background: rgba(0, 0, 0, 0.88) !important;
    color: #fff !important;
}

/* Letter avatar */
.avatar-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Seller badges (buyer-facing) */
.seller-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    color: #b0b0b0;
    background: #f3f3f3;
    opacity: 0.72;
    filter: grayscale(1);
    transition: all .2s ease;
}

.seller-badge.active {
    border-color: #5C0022;
    color: #5C0022;
    background: rgba(92, 0, 34, 0.1);
    opacity: 1;
    filter: none;
    box-shadow: 0 0 0 1px rgba(92, 0, 34, 0.12);
}

.seller-badge i {
    font-size: 12px;
}

/* Seller panel: shop level cards */
.shop-level-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px 18px 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.shop-level-card.is-lit {
    border-color: rgba(92,0,34,.35);
    box-shadow: 0 4px 14px rgba(92,0,34,.08);
}
.shop-level-medal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #efefef;
    color: #b5b5b5;
    border: 1px solid #e2e2e2;
    font-size: 16px;
    transition: all .25s ease;
}
.shop-level-medal.is-lit {
    background: linear-gradient(145deg, #7a1238, #5C0022);
    color: #fff;
    border-color: #5C0022;
    box-shadow: 0 0 0 3px rgba(92,0,34,.12);
}
.shop-level-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 36px;
    margin-bottom: 18px;
}
.shop-level-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #9a9a9a;
    font-size: 22px;
}
.shop-level-icon.is-lit {
    background: rgba(92,0,34,.1);
    color: #5C0022;
}
.shop-level-title {
    margin: 2px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.shop-level-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #8a8a8a;
}
.shop-level-progress-label,
.shop-level-progress-num {
    font-size: 12px;
    color: #666;
}
.shop-level-progress-num {
    font-weight: 700;
    color: #333;
}
.shop-level-bar {
    height: 8px;
    border-radius: 999px;
    background: #f0f0f0;
    overflow: hidden;
}
.shop-level-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #5C0022;
    transition: width .3s ease;
}
.shop-level-rules {
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 18px 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}
.shop-level-rules h6 {
    color: #222;
}

/* Header layout - login near cart */
.header-auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.header-auth-links a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.header-auth-links a:hover {
    color: var(--primary);
}

/* Auth pages: sticky header must not cover form controls */
body.page-auth header.mall-site-header {
    position: relative !important;
    top: auto !important;
}
body.page-auth .aiz-checkbox span.opacity-60 {
    pointer-events: none;
}

.header-sub-nav {
    border-top: 1px solid #eee;
    background: #fafafa;
}

.header-sub-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    padding: 8px 16px;
    display: inline-block;
}

.header-sub-nav a:hover {
    color: var(--primary);
}

/* Footer locale bar */
.footer-locale-bar {
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    padding: 12px 0;
}

.footer-locale-bar select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 12px;
}

/* Modern auth pages */
.auth-modern-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafafa 0%, #f0ebe8 100%);
    padding: 40px 16px;
}

.auth-modern-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
}

.auth-modern-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.auth-modern-card .subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.auth-modern-card .form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    height: auto;
}

.auth-modern-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 0, 34, 0.1);
}

.auth-modern-card .btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: var(--mall-btn-bg) !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
}

.auth-modern-card .btn-submit:hover {
    background: rgba(0, 0, 0, 0.88) !important;
    color: #fff !important;
}

/* Local captcha */
.local-captcha-wrap {
    margin-bottom: 16px;
}

.local-captcha-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.local-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.local-captcha-question {
    flex-shrink: 0;
    min-width: 88px;
    padding: 10px 12px;
    background: #f5f0ed;
    border: 1px solid #e8ddd8;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    letter-spacing: 1px;
}

.local-captcha-refresh {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.local-captcha-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.local-captcha-input {
    flex: 1;
    min-width: 0;
    max-width: 100px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile header auth buttons */
.mobile-header-actions {
    gap: 4px;
}

.mobile-header-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 2px;
}

.btn-mobile-auth {
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
}

.btn-mobile-login,
.btn-mobile-register {
    color: #fff !important;
    background: var(--mall-btn-bg, rgba(0, 0, 0, 0.72)) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.btn-mobile-login:active,
.btn-mobile-register:active {
    opacity: 0.85;
    transform: scale(0.97);
}

.mobile-cart-link {
    margin-left: 2px;
}

@media (max-width: 380px) {
    .mobile-logo-col {
        max-width: 32%;
    }

    .btn-mobile-auth {
        font-size: 10px;
        padding: 5px 7px;
    }

    .local-captcha-row {
        flex-wrap: wrap;
    }

    .local-captcha-input {
        max-width: none;
        width: 100%;
        flex: 1 1 100%;
    }
}


/* PayPal trust block on product detail */
.paypal-trust-block {
    border: 1px solid #eee;
    border-radius: var(--mall-radius);
    padding: 16px;
    margin-top: 16px;
    background: #fafafa;
}

.paypal-trust-block .paypal-logo {
    height: 24px;
    margin-bottom: 10px;
}

.paypal-trust-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.paypal-trust-links a {
    color: #666;
    text-decoration: underline;
}

/* Payment blocked page */
.payment-blocked-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.payment-blocked-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.payment-blocked-card .icon-warning {
    width: 64px;
    height: 64px;
    background: #fff3cd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #856404;
}

/* Featured sellers carousel banner */
.sellers-page-banner {
    border-radius: var(--mall-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Hot brands horizontal scroll */
.hot-brands-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.hot-brands-scroll::-webkit-scrollbar {
    height: 4px;
}

.hot-brands-scroll img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Hot categories horizontal scroll (mobile) */
.hot-categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
}

.hot-category-item {
    flex: 0 0 88px;
    text-align: center;
}

.hot-category-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--mall-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto 6px;
}

.hot-category-item span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #444;
}

.hot-categories-sidebar .hot-category-sidebar-item img {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Seller application modern form */
.seller-modern-wrap {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #fafafa 0%, #f0ebe8 100%);
    padding: 40px 16px 60px;
}

.seller-modern-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
}

.seller-modern-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.seller-modern-card .subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.seller-modern-card .form-control,
.seller-modern-card select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    height: auto;
}

.seller-modern-card label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.seller-modern-card .btn-submit-shop {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: var(--mall-btn-bg) !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
}

/* PayPal checkout button on product detail */
.btn-paypal-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: var(--mall-radius);
    background: #000;
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-paypal-checkout img {
    height: 20px;
    margin-left: 8px;
}

/* More buttons: black semi-transparent */
.btn-primary:not(.btn-soft-primary):not(.btn-submit):not(.btn-submit-shop),
.pagination .page-item.active .page-link {
    background: var(--mall-btn-bg) !important;
    border-color: rgba(0, 0, 0, 0.85) !important;
    color: #fff !important;
}

#section_newest .btn-primary,
.aiz-pagination .page-link {
    border-radius: 8px;
}

/* Mobile bottom nav premium styling */
@media (max-width: 991px) {
    body {
        background: #fff !important;
    }

    .mall-mobile-nav {
        background: #fff !important;
        border-top: 1px solid #ececec !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
        padding: 0 4px;
        height: 62px;
        z-index: 1030;
    }

    .mall-nav-item {
        padding: 8px 2px 6px;
        min-height: 58px;
    }

    .mall-nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        margin: 0 auto 3px;
    }

    .mall-nav-icon svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    .mall-nav-label {
        display: block;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
        color: #8a8a8a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mall-nav-item.is-active .mall-nav-label {
        color: var(--primary);
        font-weight: 700;
    }

    .mall-nav-cart {
        position: relative;
        padding-top: 0;
    }

    .mall-nav-cart-btn {
        width: 52px;
        height: 52px;
        margin: -22px auto 2px;
        border-radius: 50%;
        background: linear-gradient(145deg, #6b0030 0%, #5C0022 55%, #3d0016 100%);
        border: 3px solid #fff;
        box-shadow: 0 4px 14px rgba(92, 0, 34, 0.35);
    }

    .mall-nav-cart-btn .mall-nav-icon {
        width: 28px;
        height: 28px;
        margin: 0;
    }

    .mall-nav-cart-btn svg {
        width: 26px;
        height: 26px;
    }

    .mall-nav-cart.is-active .mall-nav-label {
        color: var(--primary);
        font-weight: 700;
    }

    .mall-nav-dot {
        position: absolute;
        top: 0;
        right: -2px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--primary);
        border: 1.5px solid #fff;
    }

    .mall-nav-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        margin: 0 auto 3px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }

    .mall-nav-avatar img {
        width: 26px;
        height: 26px;
        object-fit: cover;
        border-radius: 50% !important;
    }

    .mobile-policy-links {
        padding: 16px;
        border-top: 1px solid #eee;
    }

    .mobile-policy-links a {
        display: block;
        padding: 10px 0;
        color: #555;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    /* Hide footer policy icon grid on mobile (moved to account center) */
    section.bg-white.border-top.mt-auto.d-none.d-md-block {
        display: none !important;
    }
}

/* Privacy consent popup — never steal clicks from Accept */
#privacy-consent-modal {
    z-index: 200050 !important;
    pointer-events: auto !important;
}
#privacy-consent-modal:not(.show):not(.is-open) {
    display: none !important;
}
#privacy-consent-modal.show,
#privacy-consent-modal.is-open {
    display: block !important;
    pointer-events: auto !important;
}
#privacy-consent-modal .modal-dialog,
#privacy-consent-modal .modal-content,
#privacy-consent-modal .btn-accept {
    pointer-events: auto !important;
    position: relative;
    z-index: 200051;
}
#privacy-consent-modal .modal-content {
    border-radius: 16px;
    border: none;
}
#privacy-consent-modal .btn-accept {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 24px;
    cursor: pointer;
}
.modal-backdrop {
    z-index: 200040 !important;
}

/* USD fixed display */
.usd-fixed-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* Product cards — keep simple */
.aiz-card-box {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    position: relative;
}

.aiz-card-box > .position-relative > a > img.img-fit {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block !important;
}

@media (min-width: 768px) {
    .aiz-card-box > .position-relative > a > img.img-fit {
        height: 180px !important;
    }
}

/* Defer paint for below-fold homepage sections */
.home-deferred-section,
.home-below-fold-section,
#section_featured,
#section_best_selling,
#section_best_sellers {
    content-visibility: auto;
    contain-intrinsic-size: 0 420px;
}

/* Discount badge: yellow background, white text */
.badge-custom {
    background: #F0B429 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(240, 180, 41, 0.35) !important;
}

.badge-custom .box {
    background: #D99E12 !important;
    color: #fff !important;
}

/* Auth form helpers */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-forgot-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
}

.auth-forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.auth-switch-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.auth-switch-block .text-muted {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.auth-switch-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    background: #fff;
    text-decoration: none !important;
    text-align: center;
    box-sizing: border-box;
}

.auth-switch-btn:hover {
    background: rgba(92, 0, 34, 0.06);
}

.auth-page-back {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

/* Auth pages: clean mobile layout */
@media (max-width: 991px) {
    body.page-auth .aiz-mobile-bottom-nav {
        display: none !important;
    }

    body.page-auth .top-navbar {
        display: none !important;
    }

    body.page-auth header.shadow-sm {
        box-shadow: none !important;
    }

    body.page-auth .logo-bar-area {
        border-bottom: 1px solid #f0f0f0;
    }

    body.page-auth .logo-bar-area .py-20px {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    body.page-auth .auth-modern-wrap,
    body.page-auth .seller-modern-wrap {
        min-height: calc(100vh - 64px);
        padding: 20px 16px 32px;
        align-items: flex-start;
    }

    body.page-auth .auth-modern-card,
    body.page-auth .seller-modern-card {
        max-width: 100%;
        padding: 24px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    body.page-auth .auth-modern-card h1,
    body.page-auth .seller-modern-card h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    body.page-auth .auth-modern-card .subtitle,
    body.page-auth .seller-modern-card .subtitle {
        margin-bottom: 20px;
    }

    body.page-auth .auth-modern-card .btn-submit,
    body.page-auth .seller-modern-card .btn-submit-shop {
        padding: 15px;
        font-size: 16px;
    }

    body.page-auth .local-captcha-row {
        flex-wrap: wrap;
    }

    body.page-auth .local-captcha-input {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    body.page-auth .auth-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    body.page-auth footer,
    body.page-auth .footer-widget {
        display: none !important;
    }

    body.page-auth .aiz-main-wrapper {
        min-height: 100vh;
        background: linear-gradient(180deg, #fafafa 0%, #f0ebe8 100%);
    }
}

/* Mobile reference header (logo + search + categories) */
@media (max-width: 991px) {
    .mall-site-header {
        background: #5C0022 !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .mall-mobile-header {
        background: #5C0022;
        padding: 10px 12px 0;
    }

    .mall-mobile-header-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mall-mobile-logo-link {
        flex: 0 0 auto;
        line-height: 0;
    }

    .mall-mobile-logo {
        height: 26px !important;
        width: auto !important;
        max-width: 120px !important;
        min-width: 0 !important;
        object-fit: contain;
        display: block;
        background: transparent !important;
    }

    .mall-mobile-search-form {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }

    .mall-mobile-search-pill {
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 999px;
        height: 40px;
        padding: 0 6px 0 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .mall-mobile-search-pill input {
        border: 0;
        outline: 0;
        background: transparent;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13px;
        color: #333;
        padding: 0;
    }

    .mall-mobile-search-pill input::placeholder {
        color: #999;
    }

    .mall-mobile-search-pill button {
        border: 0;
        background: transparent;
        color: #222;
        font-size: 20px;
        line-height: 1;
        padding: 0 8px;
        flex-shrink: 0;
    }

    .mall-mobile-cat-row {
        display: flex;
        align-items: center;
        overflow-x: auto;
        padding: 10px 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mall-mobile-cat-row::-webkit-scrollbar {
        display: none;
    }

    .mall-mobile-cat-link {
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        padding: 0 12px;
        white-space: nowrap;
        text-decoration: none !important;
    }

    .mall-mobile-cat-link:first-child {
        padding-left: 0;
    }

    /* Compact privacy toast */
    .mall-privacy-bar {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 70px;
        z-index: 1025;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #ececec;
        padding: 10px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }

    .mall-privacy-bar .mall-privacy-title {
        font-size: 13px;
        font-weight: 700;
        color: #222;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .mall-privacy-bar .mall-privacy-accept {
        border: 0;
        background: #5C0022;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        border-radius: 999px;
        padding: 5px 14px;
        flex-shrink: 0;
    }

    .mall-privacy-bar p {
        font-size: 11px;
        line-height: 1.4;
        color: #666;
        margin: 0;
    }

    body.has-privacy-bar .aiz-main-wrapper {
        padding-bottom: 72px;
    }
}

/* Brand logo sizing — keep modest; do not force oversized !important height */
.altonalon-logo {
    height: 34px;
    width: auto !important;
    max-width: 170px !important;
    min-width: 0 !important;
    object-fit: contain;
    display: inline-block;
}

.logo-bar-area .altonalon-logo {
    height: 34px !important;
    max-height: 34px !important;
}

.logo-bar-area .altonalon-logo-link,
.logo-bar-area a.d-block {
    line-height: 0;
}

@media (max-width: 991px) {
    .altonalon-logo,
    .logo-bar-area .altonalon-logo,
    .logo-bar-area .mobile-header-logo {
        height: 26px !important;
        max-height: 26px !important;
        max-width: 120px !important;
        min-width: 0 !important;
        mix-blend-mode: normal !important;
    }
}

@media (min-width: 992px) {
    .logo-bar-area .py-20px {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}

/* Mobile header compaction */
@media (max-width: 991px) {
    .logo-bar-area .py-20px {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .header-menu-strip {
        border-bottom: 1px solid #f0f0f0;
    }

    .header-menu-strip .list-inline-item a {
        font-size: 13px !important;
        padding: 6px 10px !important;
        white-space: nowrap;
    }

    .header-sub-nav .container .d-flex {
        gap: 4px;
    }

    .header-sub-nav a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .logo-bar-area > .container > .d-flex {
        flex-wrap: nowrap;
    }

    .mobile-logo-col {
        flex: 0 1 auto;
        max-width: 48%;
        min-width: 0;
        padding-right: 6px !important;
    }

    .mobile-header-actions {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 2px;
    }

    .mobile-header-auth {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
        gap: 5px;
        margin-right: 2px;
    }

    .btn-mobile-auth {
        font-size: 11px;
        padding: 6px 9px;
        flex-shrink: 0;
    }

    .btn-mobile-auth span {
        display: inline !important;
    }

    .mobile-cart-link i,
    .mobile-icon-btn i {
        font-size: 1.45rem !important;
    }

    .mobile-icon-btn,
    .mobile-cart-link {
        padding: 5px !important;
        flex-shrink: 0;
    }

    .aiz-main-wrapper {
        padding-bottom: 68px;
    }

    body.page-auth .aiz-main-wrapper {
        padding-bottom: 0;
    }
}

@media (max-width: 575px) {
    .local-captcha-row {
        flex-wrap: wrap;
    }

    .local-captcha-input {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    .auth-modern-wrap {
        padding: 16px 12px 24px;
    }

    .auth-modern-card {
        padding: 22px 16px;
        border-radius: 14px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .btn-mobile-auth {
        font-size: 11px;
        padding: 7px 10px;
    }
}
