/*your custom css goes here*/

/* Home category shortcuts — 5×2 compact icons */
.home-category-shortcuts {
    overflow: visible;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 4px;
    row-gap: 12px;
    align-items: start;
    justify-items: center;
    width: 100%;
    margin: 0;
    padding: 4px 0 2px;
    box-sizing: border-box;
}

.home-category-shortcuts .home-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    box-sizing: border-box;
}

.home-category-shortcuts .home-category-thumb {
    display: block;
    width: 58px;
    height: 58px;
    max-width: 58px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
    line-height: 0;
}

.home-category-shortcuts .home-category-icon {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 50%;
    position: static !important;
    flex: none;
    margin: 0;
}

.home-category-shortcuts .home-category-label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 1px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    min-height: 0;
    height: auto;
    overflow: visible;
    color: #222;
    opacity: 1;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

@media (min-width: 375px) {
    .home-category-shortcuts .home-category-thumb {
        width: 62px;
        height: 62px;
        max-width: 62px;
    }
}

@media (min-width: 576px) {
    .home-category-grid {
        column-gap: 8px;
        row-gap: 14px;
    }

    .home-category-shortcuts .home-category-thumb {
        width: 70px;
        height: 70px;
        max-width: 70px;
    }

    .home-category-shortcuts .home-category-label {
        font-size: 12px;
    }
}

@media (min-width: 992px) {
    .home-category-grid {
        column-gap: 12px;
        row-gap: 16px;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-category-shortcuts .home-category-thumb {
        width: 76px;
        height: 76px;
        max-width: 76px;
    }

    .home-category-shortcuts .home-category-label {
        font-size: 13px;
    }
}

.home-policy-shortcuts .home-policy-item {
    padding: 10px 4px;
    border-left: 1px solid #f0f0f0;
}

.home-policy-shortcuts .col:first-child .home-policy-item {
    border-left: 0;
}

.home-policy-shortcuts .home-policy-icon {
    font-size: 22px;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}

.home-policy-shortcuts .home-policy-label {
    font-size: 10px;
    line-height: 1.25;
    font-weight: 600;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

@media (min-width: 768px) {
    .home-policy-shortcuts .home-policy-item {
        padding: 16px 8px;
    }

    .home-policy-shortcuts .home-policy-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .home-policy-shortcuts .home-policy-label {
        font-size: 12px;
    }
}

.footer-widget-compact {
    padding: 18px 0 16px;
}

.footer-widget-compact .footer-compact-row {
    align-items: flex-start;
}

.footer-widget-compact .footer-compact-col {
    padding-left: 8px;
    padding-right: 8px;
}

.footer-widget-compact .footer-compact-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
    border: 0;
    padding: 0;
    text-transform: none;
}

.footer-widget-compact .footer-compact-list > li {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
}

.footer-widget-compact .footer-compact-label {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1px;
}

.footer-widget-compact .footer-compact-value,
.footer-widget-compact .footer-compact-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer-widget-compact .footer-compact-link:hover {
    color: #fff;
}

.footer-widget-compact .footer-compact-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
}

@media (min-width: 768px) {
    .footer-widget-compact {
        padding: 28px 0 24px;
    }

    .footer-widget-compact .footer-compact-col {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-widget-compact .footer-compact-title {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .footer-widget-compact .footer-compact-list > li {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .footer-widget-compact .footer-compact-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* Home Top 10 Brands — compact 2-column list */
.home-top-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.home-top-brand-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    text-decoration: none !important;
    box-sizing: border-box;
}

.home-top-brand-item:hover {
    border-color: #d8d8d8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.home-top-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 6px;
}

.home-top-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.home-top-brand-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-top-brand-arrow {
    flex-shrink: 0;
    font-size: 14px;
    color: #e62e04;
    opacity: 0.85;
}

@media (min-width: 768px) {
    .home-top-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 720px;
    }

    .home-top-brand-item {
        padding: 10px 12px;
    }

    .home-top-brand-logo {
        width: 48px;
        height: 48px;
    }

    .home-top-brand-name {
        font-size: 14px;
    }
}

/* Website popup — full circled close (✕) */
.modal.website-popup .modal-content {
    overflow: visible !important;
}

.website-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 2.5px solid #222;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
}

.website-popup-close:hover,
.website-popup-close:focus {
    background: #f5f5f5;
    outline: none;
}

.website-popup-close-glyph {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #222;
    transform: translateY(-0.5px);
}

/* All Sellers — compact multi-column grid (24 / page) */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.seller-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    text-decoration: none !important;
    box-sizing: border-box;
}

.seller-grid-item:hover {
    border-color: #d8d8d8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.seller-grid-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: transparent;
}

.seller-grid-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

/* Trademark / brand logos — transparent presentation */
.brand-logo-transparent,
.all-brands-logo,
.product-brand-logo {
    background: transparent !important;
}

.brand-logo-transparent img,
.all-brands-logo img,
.product-brand-logo img {
    background: transparent;
    object-fit: contain;
}

.ml-logo-handshake,
.ml-logo-wordmark {
    display: inline-block;
    line-height: 0;
    background: transparent;
}

.ml-logo-handshake img,
.ml-logo-wordmark img {
    max-width: 100%;
    height: auto;
    background: transparent;
}

/* Site header — Mercado Libre transparent logo (no solid color plate) */
.site-header-logo-link {
    line-height: 0;
}
.site-header-logo,
.site-header-logo-img {
    display: block;
    background: transparent !important;
}
.site-header-logo-img {
    width: auto;
    height: 30px;
    max-width: min(52vw, 168px);
    object-fit: contain;
}
@media (min-width: 768px) {
    .site-header-logo-img {
        height: 40px;
        max-width: 200px;
    }
}

/* Seller sidebar — site brand logo (not shop logo) */
.seller-sidenav-brand-logo {
    display: block;
    width: auto;
    max-width: min(72vw, 180px);
    height: 36px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
    background: transparent !important;
}

/* Homepage website popup — smaller, clearer antifraud notice */
.modal.website-popup.d-none {
    display: none !important;
}
.website-popup .website-popup-dialog {
    width: min(86vw, 340px) !important;
    max-width: 340px !important;
    margin: 1rem auto;
}

.website-popup .website-popup-content-wrap {
    background: transparent;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    border-radius: 12px !important;
}

.website-popup .website-popup-body,
.website-popup .website-popup-antifraud,
.website-popup .website-popup-antifraud p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.website-popup .website-popup-antifraud-img,
.website-popup .website-popup-body img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 10px;
    image-rendering: -webkit-optimize-contrast;
}

/* Antifraud section — clear of sticky header when using #home-antifraud */
#home-antifraud,
.home-antifraud-section {
    scroll-margin-top: 96px;
}

.home-antifraud-banner {
    background: #fff;
    line-height: 0;
}

.home-antifraud-banner img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Category promo — mobile: full-width ad, swipe → products overlay */
.home-category-panel {
    overflow: visible;
    padding-bottom: 1rem !important;
}

.home-category-head {
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.15rem;
}

.home-category-promo-stack {
    width: 100%;
}

.home-category-promo-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.home-category-promo-col {
    flex: 0 0 34%;
    max-width: 320px;
    min-width: 200px;
}

.home-category-promo-col .category-promo-slide-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center;
}

.home-category-products-col {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.home-category-products-carousel {
    position: relative;
}

.home-category-products-carousel .slick-arrow {
    z-index: 4;
}

.home-category-products-carousel.half-outside-arrow .slick-prev {
    left: 6px;
}

.home-category-products-carousel.half-outside-arrow .slick-next {
    right: 6px;
}

/* Mobile: ad/products use swipe buttons; product row scrolls by touch — no slick arrows */
@media (max-width: 991.98px) {
    .home-category-promo-pane-products .home-category-products-carousel .slick-arrow {
        display: none !important;
    }

    .home-category-promo-pane-products .home-category-products-carousel {
        padding-left: 40px;
        padding-right: 8px;
    }
}

/* Never show arrows from the hidden mobile/desktop duplicate carousel */
@media (min-width: 992px) {
    .home-category-promo-mobile .slick-arrow {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .home-category-promo-row .slick-arrow {
        display: none !important;
    }
}

.home-category-products-carousel .slick-list {
    overflow: visible;
    margin: 0 -5px;
    padding-bottom: 4px;
}

.home-category-products-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.category-promo-slide {
    width: 100%;
}

.category-promo-slide-link {
    border-radius: 8px;
    overflow: hidden;
    display: block;
    background: #f7f7f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 0;
}

.category-promo-slide-img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain !important;
    object-position: center;
    border-radius: 8px;
}

.home-promo-banner-link {
    overflow: visible !important;
    line-height: 0;
    background: transparent;
}

.home-promo-banner-img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: contain !important;
}

body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
    object-fit: contain !important;
}

/* Mobile swipe stack */
.home-category-promo-scroller {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    width: 100%;
    border-radius: 8px;
}

.home-category-promo-scroller::-webkit-scrollbar {
    display: none;
}

.home-category-promo-pane {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    box-sizing: border-box;
}

.home-category-promo-pane-ad {
    background: #f7f7f7;
    overflow: hidden;
}

.home-category-promo-pane-ad .category-promo-slide,
.home-category-promo-pane-ad .category-promo-slide-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.home-category-promo-pane-ad .category-promo-slide-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
}

.home-category-promo-pane-products {
    background: #fff;
    padding: 0 0 0 36px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.home-category-swipe-products {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 8px;
}

.home-category-swipe-products::-webkit-scrollbar {
    display: none;
}

.home-category-swipe-item {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
    min-width: 0;
    height: 100%;
}

.home-category-swipe-item .aiz-card-box {
    height: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-category-swipe-item .img-fit,
.home-category-swipe-item .h-140px {
    height: 58% !important;
    max-height: 120px;
    object-fit: cover;
}

.home-category-swipe-item .p-2 {
    padding: 6px 8px 8px !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    gap: 3px;
}
.home-category-swipe-item .p-2 > .fs-15 {
    display: block !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}
.home-category-swipe-item .p-2 > .fs-15 .fw-700,
.home-category-swipe-item .p-2 > .fs-15 del {
    display: inline;
    vertical-align: baseline;
}
.home-category-swipe-item .h-35px {
    height: auto !important;
    max-height: 32px;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 0 !important;
}
.home-category-swipe-item .rating {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    line-height: 1 !important;
    min-height: 14px;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}
.home-category-swipe-item .rating i {
    font-size: 11px !important;
    letter-spacing: -0.5px;
}

.home-category-swipe-item .fs-12,
.home-category-swipe-item .opacity-70 {
    display: none;
}

.home-category-swipe-hint,
.home-category-swipe-back {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    padding: 0;
}

.home-category-swipe-hint {
    right: 10px;
    animation: homePromoHintPulse 2s ease-in-out infinite;
}

.home-category-swipe-back {
    left: 6px;
    display: none;
}

@keyframes homePromoHintPulse {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
    50% { transform: translateY(-50%) translateX(4px); opacity: 0.85; }
}

@media (max-width: 991.98px) {
    .home-category-promo-mobile {
        width: 100%;
    }

    .home-category-promo-pane-products .home-category-swipe-back {
        display: flex;
    }
}

@media (min-width: 992px) {
    .home-category-promo-col {
        flex-basis: 32%;
        max-width: 360px;
    }

    .home-category-panel {
        padding-bottom: 1.15rem !important;
    }
}

@media (min-width: 1200px) {
    .home-category-promo-col {
        flex-basis: 30%;
        max-width: 400px;
    }
}

.nav-vip-upgrade-link {
    color: #1a3a8a !important;
    background: linear-gradient(135deg, #ffe700 0%, #f5c400 100%);
    border-radius: 999px;
    opacity: 1 !important;
    letter-spacing: 0.2px;
}

.nav-vip-upgrade-link:hover,
.nav-vip-upgrade-link:focus {
    opacity: 0.92 !important;
    color: #1a3a8a !important;
}

/* Antifraud section — clear of sticky header when using #home-antifraud */
#home-antifraud,
.home-antifraud-section {
    scroll-margin-top: 96px;
}

.seller-grid-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.seller-grid-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-vip-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe700 0%, #f5c400 100%);
    color: #1a3a8a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.seller-vip-badge-lg {
    font-size: 11px;
    padding: 2px 8px;
    margin-left: 6px;
}

.seller-grid-rating {
    line-height: 1;
    transform: scale(0.85);
    transform-origin: left center;
}

/* Seller orders — mobile card layout (no horizontal overflow) */
.seller-orders-card {
    overflow: hidden;
}

.seller-orders-toolbar .col-12 + .col-12 {
    margin-top: 8px;
}

@media (max-width: 1199.98px) {
    .seller-orders-card .card-body {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .seller-order-mobile-list {
        width: 100%;
        max-width: 100%;
    }

    .seller-order-card {
        border: 1px solid #ebedf2;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 10px;
        background: #fff;
        width: 100%;
        box-sizing: border-box;
    }

    .seller-order-card-row {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .seller-order-card-row + .seller-order-card-row {
        margin-top: 8px;
    }

    .seller-order-card-top {
        gap: 8px;
    }

    .seller-order-code {
        color: #007bff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
        word-break: break-all;
        flex: 1;
        min-width: 0;
    }

    .seller-order-card-meta {
        flex-wrap: wrap;
        gap: 6px 10px;
        align-items: center;
    }

    .seller-order-amount {
        font-size: 13px;
        font-weight: 700;
        color: #212529;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .seller-order-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
        min-width: 0;
    }

    .seller-order-badges .badge {
        font-size: 11px;
        padding: 3px 8px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
    }

    .seller-order-card-actions {
        gap: 8px;
        align-items: center;
    }

    .seller-order-ship-btn {
        font-size: 12px;
        padding: 4px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .seller-order-ship-placeholder {
        display: none;
    }

    .seller-order-country-flag {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        padding: 0 6px;
    }

    .seller-order-flag-emoji {
        font-size: 28px;
        line-height: 1;
    }

    .seller-order-flag-text {
        font-size: 11px;
        color: #6c757d;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .seller-order-icon-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .seller-orders-card .aiz-pagination {
        overflow-x: auto;
    }
}

/* Mobile bottom tab bar — always pinned on phone/tablet */
@media (max-width: 1199.98px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    #aiz-mobile-bottom-nav,
    .aiz-mobile-bottom-nav {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1040 !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        pointer-events: auto !important;
    }
}

@media (min-width: 1200px) {
    body.has-mobile-bottom-nav {
        padding-bottom: 0;
    }

    #aiz-mobile-bottom-nav,
    .aiz-mobile-bottom-nav {
        display: none !important;
    }
}

@media (min-width: 576px) {
    .sellers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .sellers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .seller-grid-item {
        padding: 10px 12px;
    }

    .seller-grid-logo {
        width: 48px;
        height: 48px;
    }
}

/* Customer service chat (/chat) — responsive Linio-style layout */
.cs-page {
    background: #f4f5f7;
    min-height: calc(100vh - 180px);
    padding: 16px 0 32px;
}
.cs-page-inner { max-width: 1180px; }
.cs-shell {
    display: flex;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    min-height: 62vh;
}
.cs-sidebar {
    width: 320px;
    max-width: 100%;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.cs-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #f0f0f0;
}
.cs-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
}
.cs-sidebar-title i { font-size: 20px; color: #333; }
.cs-btn-new, .cs-btn-start {
    border: 0;
    background: #e91e8c;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.cs-btn-start { padding: 10px 18px; font-size: 15px; }
.cs-guest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.cs-guest-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #ececec; display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 18px;
}
.cs-guest-name { font-weight: 600; font-size: 14px; }
.cs-guest-id { font-size: 12px; color: #999; }
.cs-list { flex: 1; overflow-y: auto; }
.cs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid #f7f7f7;
}
.cs-item.is-active, .cs-item:hover { background: #fff4fa; }
.cs-item-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e91e8c; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.cs-item-body { flex: 1; min-width: 0; }
.cs-item-title { display: block; font-weight: 700; font-size: 14px; }
.cs-item-sub { display: block; font-size: 12px; color: #888; }
.cs-item-status {
    font-size: 11px; color: #22a45a; font-weight: 700; flex-shrink: 0;
}
.cs-empty-list { padding: 24px 16px; color: #999; font-size: 13px; }
.cs-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    position: relative;
}
.cs-welcome {
    margin: auto;
    text-align: center;
    padding: 32px 16px;
    color: #666;
}
.cs-welcome i { font-size: 64px; color: #cfcfcf; display: block; margin-bottom: 8px; }
.cs-welcome h2 { font-size: 20px; font-weight: 700; color: #444; margin: 8px 0; }
.cs-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.cs-chat-title { font-weight: 700; }
.cs-online { font-size: 12px; color: #22a45a; }
.cs-online span {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #22a45a; margin-right: 4px;
}
.cs-close { margin-left: auto; font-size: 26px; color: #999; line-height: 1; }
.cs-back { border: 0; background: none; font-size: 22px; padding: 0 6px 0 0; }
.cs-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 280px;
}
.cs-no-msg { text-align: center; color: #aaa; padding: 40px 0; }
.cs-bubble-row { display: flex; margin-bottom: 10px; }
.cs-bubble-row.is-mine { justify-content: flex-end; }
.cs-bubble {
    max-width: 76%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 8px 12px;
}
.cs-bubble-row.is-mine .cs-bubble { background: #ffe3f2; border-color: #ffd0e8; }
.cs-bubble-text { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cs-bubble-img img { max-width: 220px; border-radius: 8px; display: block; margin-top: 6px; }
.cs-bubble-time { font-size: 11px; color: #aaa; margin-top: 4px; }
.cs-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eee;
}
.cs-attach { font-size: 22px; color: #888; cursor: pointer; padding: 4px; }
.cs-input {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    font-size: 16px; /* iOS: <16px triggers auto-zoom on focus */
    line-height: 1.35;
    -webkit-text-size-adjust: 100%;
}
.cs-send {
    border: 0; background: none; color: #888; font-size: 22px; cursor: pointer;
}
/* Registration email OTP */
.reg-code-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #e5e5e5;
    border-radius: 0.25rem;
    overflow: hidden;
    background: #fff;
}
.reg-code-row .form-control {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}
.reg-code-row.is-invalid,
.reg-code-row:has(.is-invalid) {
    border-color: #e62e04;
}
.reg-send-code-btn {
    flex-shrink: 0;
    border: 0;
    border-left: 1px solid #eee;
    background: #fff;
    color: #e91e8c;
    font-weight: 700;
    font-size: 13px;
    padding: 0 14px;
    white-space: nowrap;
    min-width: 96px;
    cursor: pointer;
}
.reg-send-code-btn:disabled {
    color: #999;
    cursor: not-allowed;
}
.reg-send-code-btn:not(:disabled):hover {
    background: #fff5fa;
}
.cs-preview {
    position: absolute; bottom: 62px; left: 16px;
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    padding: 6px; align-items: flex-start; gap: 6px;
    z-index: 5;
}
.cs-preview-media { position: relative; }
.cs-preview img { height: 64px; border-radius: 4px; display: block; }
.cs-preview button { border: 0; background: #333; color: #fff; border-radius: 50%; width: 20px; height: 20px; }
.cs-upload-progress {
    position: absolute; left: 0; right: 0; bottom: 0; top: 0;
    background: rgba(0,0,0,.45);
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px; padding: 4px;
}
.cs-upload-bar {
    width: 86%; height: 6px; background: rgba(255,255,255,.35);
    border-radius: 999px; overflow: hidden;
}
.cs-upload-bar span {
    display: block; height: 100%; width: 0;
    background: #e91e8c;
    transition: width .12s linear;
}
.cs-upload-pct {
    color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

@media (max-width: 991.98px) {
    .cs-page { padding: 0; min-height: calc(100vh - 120px); }
    .cs-page-inner { padding: 0; max-width: 100%; }
    .cs-shell { border: 0; border-radius: 0; min-height: calc(100vh - 120px); }
    .cs-sidebar { width: 100%; border-right: 0; }
    .cs-main { display: none; }
    .cs-shell.is-chat-open .cs-sidebar { display: none; }
    .cs-shell.is-chat-open .cs-main { display: flex; width: 100%; min-height: calc(100vh - 120px); }
}

/* Mobile /chat: flex column — composer in-flow (not position:fixed) */
@media (max-width: 991.98px) {
    html.cs-chat-html,
    body.cs-chat-page {
        overflow: hidden !important;
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
        padding-bottom: 0 !important;
        touch-action: manipulation;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body.cs-chat-page .aiz-main-wrapper {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    body.cs-chat-page .top-banner,
    body.cs-chat-page .top-navbar,
    body.cs-chat-page header,
    body.cs-chat-page .footer-widget,
    body.cs-chat-page .home-policy-shortcuts,
    body.cs-chat-page .crypto-pay-footer,
    body.cs-chat-page .aiz-cookie-alert,
    body.cs-chat-page .website-popup {
        display: none !important;
    }
    body.cs-chat-page .cs-page {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.cs-chat-page .cs-page-inner {
        max-width: 100% !important;
        padding: 0 !important;
        height: 100%;
    }
    body.cs-chat-page .cs-shell {
        min-height: 100% !important;
        height: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    body.cs-chat-page .cs-sidebar {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        border: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }
    body.cs-chat-page .cs-shell.is-chat-open .cs-sidebar {
        display: none !important;
    }
    body.cs-chat-page .cs-main {
        display: none;
    }
    body.cs-chat-page .cs-shell.is-chat-open .cs-main {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        position: relative;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }
    body.cs-chat-page .cs-chat-head {
        flex-shrink: 0;
    }
    body.cs-chat-page .cs-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px !important;
    }
    body.cs-chat-page #aiz-mobile-bottom-nav,
    body.cs-chat-page .aiz-mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 56px;
        z-index: 1040 !important;
    }
    /* In-flow composer — stays at bottom of chat column, never clipped by fixed+overflow */
    body.cs-chat-page .cs-composer {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        flex-shrink: 0 !important;
        z-index: 2;
        background: #fff !important;
        border-top: 1px solid #eee;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 10px 12px !important;
        transform: none !important;
    }
    body.cs-chat-page .cs-preview {
        position: absolute !important;
        left: 16px !important;
        bottom: calc(62px + 8px) !important;
        z-index: 3 !important;
    }
    body.cs-chat-page .cs-input,
    body.cs-chat-page #cs-input {
        font-size: 16px !important;
    }
    body.cs-chat-page.cs-kb-open #aiz-mobile-bottom-nav,
    body.cs-chat-page.cs-kb-open .aiz-mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    body.cs-chat-page.cs-kb-open .cs-shell.is-chat-open .cs-main,
    body.cs-chat-page.cs-kb-open .cs-sidebar {
        padding-bottom: 0 !important;
    }
    body.cs-chat-page.cs-kb-open .aiz-main-wrapper {
        top: var(--cs-vv-top, 0px) !important;
        height: var(--cs-vvh, 100%) !important;
        max-height: var(--cs-vvh, 100%) !important;
        bottom: auto !important;
    }
}

/* Admin backend customer chat */
.cs-admin-page .cs-shell {
    height: calc(100vh - 220px);
    min-height: 520px;
}
.cs-admin-page .cs-sidebar { width: 340px; }
.cs-item.has-unread .cs-item-title { color: #e91e8c; }
.cs-item.has-unread .cs-item-sub { font-weight: 600; color: #555; }
.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
    vertical-align: middle;
}
.cs-user-meta { font-size: 11px; margin-top: 2px; }
.cs-quick-replies { flex-shrink: 0; }
.cs-quick-btn { font-size: 12px; border-radius: 999px; }
@media (max-width: 991.98px) {
    .cs-admin-page .cs-shell { height: calc(100vh - 160px); min-height: 420px; }
}

/* Admin CS notify settings + toast */
.cs-notify-settings {
    gap: 4px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 12px;
}
.cs-notify-settings-label {
    font-weight: 700;
    font-size: 13px;
    color: #444;
}
.cs-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.cs-switch-label input { margin: 0; }
.cs-sound-select {
    width: auto;
    min-width: 130px;
    display: inline-block;
    height: 30px;
    padding: 2px 8px;
}
.cs-volume-range {
    width: 80px;
    vertical-align: middle;
}
.cs-notify-toast {
    position: fixed;
    top: 72px;
    right: 18px;
    z-index: 1080;
    width: min(360px, calc(100vw - 24px));
}
.cs-notify-card {
    background: #fff;
    border: 1px solid #f0c8de;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 14px 16px 12px;
    position: relative;
    animation: csNotifyIn .25s ease;
}
@keyframes csNotifyIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.cs-notify-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}
.cs-notify-title {
    font-weight: 700;
    color: #e91e8c;
    font-size: 14px;
    margin-bottom: 4px;
}
.cs-notify-name { font-weight: 600; font-size: 13px; color: #333; }
.cs-notify-preview {
    font-size: 12px;
    color: #777;
    margin: 4px 0 10px;
    word-break: break-word;
}
.cs-notify-open {
    display: inline-block;
    background: #e91e8c;
    color: #fff !important;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

/* ========== Premium account side panel (mobile + desktop) ========== */
.mall-account-panel {
    --mall-ink: #1a1a1a;
    --mall-muted: #6b6b6b;
    --mall-line: rgba(26, 26, 26, 0.08);
    --mall-soft: #f7f5f2;
    --mall-accent: #ffe600;
    --mall-accent-deep: #2d3277;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: hidden;
}
.aiz-mobile-side-nav .collapse-sidebar {
    background: #fff !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.14);
}
.aiz-mobile-side-nav .overlay.dark {
    background: rgba(12, 14, 22, 0.45) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.mall-account-panel .aiz-user-sidenav {
    background: transparent;
}

/* Hero */
.mall-account-hero {
    position: relative;
    padding: 28px 20px 24px;
    margin-bottom: 8px;
    overflow: hidden;
    border-bottom: 0 !important;
    background: transparent !important;
    color: #fff !important;
}
.mall-account-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 230, 0, 0.35) 0%, transparent 55%),
        linear-gradient(145deg, #1f2454 0%, #2d3277 48%, #1a1f45 100%);
}
.mall-account-hero-bg::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 230, 0, 0.12);
}
.mall-account-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}
.mall-account-avatar {
    flex-shrink: 0;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ffe600, rgba(255,255,255,0.55));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.mall-account-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #1f2454;
    background: #fff;
}
.mall-account-identity {
    min-width: 0;
    flex: 1;
    text-align: left !important;
}
.mall-account-name {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    margin: 0 0 4px !important;
    line-height: 1.25;
}
.mall-account-sub {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12.5px !important;
    opacity: 1 !important;
}

/* Menu */
.mall-account-menu {
    padding: 4px 10px 18px;
}
.mall-account-panel .aiz-side-nav-list {
    padding: 0 !important;
}
.mall-account-panel .aiz-side-nav-item + .aiz-side-nav-item {
    margin-top: 2px;
}
.mall-account-panel .aiz-side-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    min-height: 48px;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    color: var(--mall-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.mall-account-panel .aiz-side-nav-icon {
    width: 36px !important;
    height: 36px;
    margin-right: 8px !important;
    border-radius: 11px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    color: var(--mall-accent-deep) !important;
    background: var(--mall-soft);
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.mall-account-panel .aiz-side-nav-text {
    flex: 1;
    min-width: 0;
}
.mall-account-panel .aiz-side-nav-link:hover {
    background: rgba(45, 50, 119, 0.06) !important;
    color: var(--mall-accent-deep) !important;
}
.mall-account-panel .aiz-side-nav-link.active,
.mall-account-panel .aiz-side-nav-link.level-2-active {
    background: linear-gradient(90deg, rgba(255, 230, 0, 0.35), rgba(255, 230, 0, 0.08)) !important;
    color: var(--mall-ink) !important;
    box-shadow: inset 3px 0 0 #ffe600;
}
.mall-account-panel .aiz-side-nav-link.active .aiz-side-nav-icon,
.mall-account-panel .aiz-side-nav-link:hover .aiz-side-nav-icon {
    background: #ffe600;
    color: #1a1a1a !important;
}
.mall-account-panel .badge-success {
    background: #ffe600 !important;
    color: #1a1a1a !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
}
.mall-account-panel .level-2 .aiz-side-nav-link {
    min-height: 40px;
    padding-left: 56px !important;
    font-weight: 500 !important;
    color: var(--mall-muted) !important;
}

/* Footer bar (mobile drawer) */
.mall-account-foot {
    height: 64px;
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid var(--mall-line) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}
.mall-account-logout {
    color: var(--mall-ink) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--mall-soft);
    transition: background 0.2s ease;
}
.mall-account-logout:hover {
    background: #eeeae4;
    color: #b42318 !important;
}
.mall-account-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--mall-soft);
    color: var(--mall-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.mall-account-close:hover {
    background: #1f2454;
    color: #fff;
}

@media (min-width: 1200px) {
    .mall-account-panel {
        border-radius: 18px !important;
        border: 1px solid var(--mall-line) !important;
        box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06) !important;
    }
    .mall-account-hero {
        border-radius: 18px 18px 0 0;
    }
    .mall-account-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .mall-account-identity {
        text-align: center !important;
    }
}

/* ========== Premium homepage (Mercado Libre mall tone) ========== */
body.mall-ui {
    --mall-bg: #f3f4f8;
    --mall-ink: #1a1a1a;
    --mall-muted: #6b7280;
    --mall-line: rgba(26, 26, 26, 0.08);
    --mall-yellow: #ffe600;
    --mall-navy: #2d3277;
    --mall-price: #e53935;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(255, 230, 0, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, #f7f8fc 0%, var(--mall-bg) 28%, #eef0f5 100%) !important;
}
body.mall-ui .aiz-main-wrapper {
    background: transparent !important;
}
body.mall-ui .top-navbar,
body.mall-ui header.sticky-top,
body.mall-ui header.z-1020 {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--mall-line) !important;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.04) !important;
}
body.mall-ui .top-navbar {
    border-bottom: 1px solid var(--mall-line);
}
body.mall-ui .hor-header-menu {
    background: transparent !important;
}
body.mall-ui .hor-header-menu .nav-link {
    font-weight: 600 !important;
    color: #333 !important;
    border-radius: 999px;
    padding: 8px 12px !important;
}
body.mall-ui .hor-header-menu .nav-link.active,
body.mall-ui .hor-header-menu .nav-item.active .nav-link {
    color: var(--mall-navy) !important;
    background: rgba(255, 230, 0, 0.35);
}
body.mall-ui .hor-header-menu .nav-link.active::after,
body.mall-ui .hor-header-menu .border-primary {
    border-color: var(--mall-yellow) !important;
}

.mall-home {
    padding-bottom: 8px;
}

/* Desktop: fill the viewport — wide content, less empty side margins */
@media (min-width: 1200px) {
    body.mall-ui .container {
        max-width: 1320px !important;
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (min-width: 1400px) {
    body.mall-ui .container {
        max-width: 1480px !important;
    }
}
@media (min-width: 1600px) {
    body.mall-ui .container {
        max-width: 1640px !important;
    }
}
@media (min-width: 1800px) {
    body.mall-ui .container {
        max-width: 1760px !important;
    }
}

/* Denser homepage first screen */
@media (min-width: 992px) {
    body.mall-ui .mall-home .home-category-shortcuts {
        margin-bottom: 10px !important;
        padding-top: 10px !important;
    }
    body.mall-ui .mall-home .home-category-grid {
        padding: 12px 10px 10px !important;
        display: grid;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 6px 4px;
        justify-items: center;
    }
    body.mall-ui .mall-home .home-category-item {
        width: 100%;
        max-width: 92px;
    }
    body.mall-ui .mall-home-banner {
        margin-bottom: 14px !important;
    }
    body.mall-ui .mall-home-banner .row.gutters-10 {
        margin-left: -8px;
        margin-right: -8px;
    }
    body.mall-ui .mall-home-banner .row.gutters-10 > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    body.mall-ui .mall-home-hero-carousel {
        min-height: 0;
        height: auto;
    }
    body.mall-ui .mall-home-deal,
    body.mall-ui .aiz-category-menu {
        min-height: 420px;
        height: 100%;
    }
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-link,
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
        height: auto;
        min-height: 0;
        object-fit: contain !important;
    }
    body.mall-ui .mall-home-deal-body {
        height: calc(100% - 52px) !important;
        max-height: none !important;
        min-height: 368px;
    }
    body.mall-ui .mall-home-section {
        margin-bottom: 14px !important;
    }
    body.mall-ui .mall-home-block {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Category shortcuts */
body.mall-ui .home-category-shortcuts {
    margin-bottom: 12px !important;
}
body.mall-ui .home-category-grid {
    background: #fff;
    border-radius: 18px;
    padding: 14px 8px 12px;
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.05);
    border: 1px solid var(--mall-line);
}
body.mall-ui .home-category-shortcuts .home-category-thumb {
    width: 64px;
    height: 64px;
    max-width: 64px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(45, 50, 119, 0.1);
    background: transparent;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
body.mall-ui .home-category-shortcuts .home-category-icon {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}
body.mall-ui .home-category-item:hover .home-category-thumb,
body.mall-ui .home-category-item:active .home-category-thumb {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(45, 50, 119, 0.16);
}
body.mall-ui .home-category-shortcuts .home-category-label {
    font-size: 11px;
    font-weight: 600;
    color: #2a2a2a;
    letter-spacing: 0.01em;
}

/* Hero banner */
body.mall-ui .mall-home-banner {
    margin-bottom: 18px !important;
}
body.mall-ui .mall-home-hero-carousel,
body.mall-ui .mall-home-hero-carousel .carousel-box,
body.mall-ui .mall-home-hero-carousel .home-promo-banner-link,
body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
    border-radius: 18px;
    overflow: hidden;
}
body.mall-ui .mall-home-hero-carousel {
    box-shadow: 0 14px 36px rgba(26, 26, 26, 0.1);
}
body.mall-ui .mall-home-hero-carousel .slick-arrow {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: var(--mall-navy) !important;
}
body.mall-ui .mall-home-hero-carousel .slick-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7) !important;
}
body.mall-ui .mall-home-hero-carousel .slick-dots li.slick-active button {
    width: 18px;
    background: var(--mall-yellow) !important;
}

/* Today's deal */
body.mall-ui .mall-home-deal {
    border-radius: 18px !important;
    overflow: hidden;
    border: 1px solid var(--mall-line);
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06) !important;
}
body.mall-ui .mall-home-deal-head {
    background: linear-gradient(90deg, #ffe600, #fff3a0) !important;
    color: #1a1a1a !important;
}
body.mall-ui .mall-home-deal-body {
    background: linear-gradient(180deg, #2d3277, #1f2454) !important;
}
body.mall-ui .mall-home-deal-item {
    border-radius: 12px !important;
    transition: transform 0.2s ease;
}
body.mall-ui .mall-home-deal-item:hover {
    transform: translateY(-2px);
}

/* Section blocks */
body.mall-ui .mall-home-block,
body.mall-ui #section_featured > section > .container > .bg-white,
body.mall-ui #section_featured .px-2.py-4.bg-white,
body.mall-ui #section_home_categories .px-2.py-4.bg-white,
body.mall-ui #auction_products .px-2.py-4.bg-white,
body.mall-ui .home-category-panel {
    border-radius: 20px !important;
    border: 1px solid var(--mall-line) !important;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.05) !important;
    background: #fff !important;
}
body.mall-ui .mall-home-section-head,
body.mall-ui .mall-home-block .border-bottom,
body.mall-ui #section_featured .border-bottom,
body.mall-ui #section_home_categories .border-bottom {
    border-bottom: 0 !important;
    margin-bottom: 14px !important;
    position: relative;
}
body.mall-ui .mall-home-section-head h3 span,
body.mall-ui .mall-home-block h3 span.border-bottom,
body.mall-ui #section_featured h3 span.border-bottom,
body.mall-ui #section_home_categories h3 span.border-bottom,
body.mall-ui .home-category-head h3,
body.mall-ui .home-category-head .h5 {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    color: var(--mall-ink);
    position: relative;
    display: inline-block;
}
body.mall-ui .mall-home-section-head h3 span::after,
body.mall-ui .mall-home-block h3 span.border-bottom::after,
body.mall-ui #section_featured h3 span.border-bottom::after,
body.mall-ui #section_home_categories h3 span.border-bottom::after {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mall-yellow), rgba(255, 230, 0, 0.15));
}
body.mall-ui .mall-home-block .btn-primary,
body.mall-ui #section_featured .btn-primary,
body.mall-ui #section_home_categories .btn-primary {
    background: var(--mall-navy) !important;
    border-color: var(--mall-navy) !important;
    border-radius: 999px !important;
    font-weight: 700;
    box-shadow: none !important;
}
body.mall-ui .half-outside-arrow .slick-arrow {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--mall-line) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    color: var(--mall-navy) !important;
}

/* Product cards */
body.mall-ui .aiz-card-box {
    border: 1px solid var(--mall-line) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(26, 26, 26, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
body.mall-ui .aiz-card-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(26, 26, 26, 0.1);
}
body.mall-ui .aiz-card-box .text-primary,
body.mall-ui .aiz-card-box .fw-700.text-primary {
    color: var(--mall-price) !important;
}
body.mall-ui .aiz-card-box .badge-custom {
    background: var(--mall-yellow) !important;
    color: #1a1a1a !important;
    font-weight: 800;
    border-radius: 0 0 10px 0;
}
body.mall-ui .aiz-p-hov-icon a {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Brands / antifraud / policies */
body.mall-ui .home-top-brands-grid {
    gap: 10px;
}
body.mall-ui .home-top-brand-item {
    border-radius: 14px;
    border: 1px solid var(--mall-line);
    background: #fff;
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.04);
}
body.mall-ui .home-antifraud-banner {
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06);
    overflow: hidden;
}
body.mall-ui .home-policy-shortcuts {
    background: transparent !important;
}
body.mall-ui .home-policy-item {
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--mall-line);
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.04);
}

/* Bottom nav — full-bleed frame, flush to bottom */
.mall-bottom-nav,
#aiz-mobile-bottom-nav.mall-bottom-nav {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    pointer-events: none !important;
}
.mall-bottom-nav__frame {
    pointer-events: auto;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.98);
    border: 0;
    border-top: 1.5px solid rgba(45, 50, 119, 0.12);
    border-radius: 18px 18px 0 0;
    box-shadow:
        0 -8px 24px rgba(26, 26, 26, 0.1),
        0 2px 0 rgba(255, 230, 0, 0.5) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}
.mall-bottom-nav__row {
    margin: 0 !important;
}
.mall-bottom-nav__item {
    padding: 4px 2px !important;
    transition: transform 0.18s ease;
}
.mall-bottom-nav__item:active {
    transform: scale(0.94);
}
.mall-bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    border-radius: 12px;
    margin: 0 auto 2px;
    color: #6b7280;
    position: relative;
}
.mall-bottom-nav__icon i {
    font-size: 1.28rem !important;
    line-height: 1;
    opacity: 1 !important;
}
.mall-bottom-nav__icon--badge {
    position: relative;
}
.mall-bottom-nav__dot {
    position: absolute !important;
    top: 0;
    right: 4px;
}
.mall-bottom-nav__label {
    display: block;
    font-size: 10px !important;
    font-weight: 650 !important;
    color: #6b7280 !important;
    opacity: 1 !important;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.mall-bottom-nav__item.is-active .mall-bottom-nav__icon,
.mall-bottom-nav__item .mall-bottom-nav__icon:has(i.text-primary) {
    background: #ffe600;
    color: #2d3277;
    box-shadow: 0 4px 10px rgba(255, 230, 0, 0.45);
}
.mall-bottom-nav__item.is-active .mall-bottom-nav__label,
.mall-bottom-nav__label.is-active {
    color: #2d3277 !important;
    font-weight: 800 !important;
}
.mall-bottom-nav__avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 3px;
    border: 1.5px solid rgba(45, 50, 119, 0.16);
    background: #f3f4f8;
    box-shadow: 0 2px 6px rgba(26, 26, 26, 0.08);
}
.mall-bottom-nav__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mall-bottom-nav a .text-primary,
.mall-bottom-nav a i.text-primary {
    color: #2d3277 !important;
}
.mall-bottom-nav a:active {
    transform: none;
}

@media (max-width: 991.98px) {
    body.mall-ui.has-mobile-bottom-nav {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 991.98px) {
    body.mall-ui .home-category-shortcuts .container,
    body.mall-ui .mall-home-banner .container,
    body.mall-ui .mall-home-section .container,
    body.mall-ui #section_newest .container,
    body.mall-ui #section_featured .container,
    body.mall-ui #section_home_categories .container,
    body.mall-ui .home-category-section .container,
    body.mall-ui .home-antifraud-section .container {
        padding-left: 6px;
        padding-right: 6px;
    }
    body.mall-ui .mall-home-hero-carousel,
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
        border-radius: 16px;
    }
}

/* Homepage header / menu polish (real selectors) */
body.mall-ui .mobile-hor-swipe {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px 0 2px;
}
body.mall-ui .mobile-hor-swipe .list-inline-item {
    margin: 0 !important;
}
body.mall-ui .mobile-hor-swipe a {
    opacity: 1 !important;
    color: #3a3a3a !important;
    font-weight: 650 !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}
body.mall-ui .mobile-hor-swipe a:hover,
body.mall-ui .mobile-hor-swipe a:focus {
    background: rgba(255, 230, 0, 0.28);
    color: #2d3277 !important;
}
body.mall-ui .mobile-hor-swipe li:first-child a {
    background: rgba(255, 230, 0, 0.45);
    color: #2d3277 !important;
    font-weight: 800 !important;
}
body.mall-ui header.sticky-top .border-top,
body.mall-ui header .border-top.border-gray-200 {
    border-top-color: rgba(26, 26, 26, 0.06) !important;
    background: transparent !important;
}
body.mall-ui .logo-bar-area {
    padding-top: 2px;
    padding-bottom: 2px;
}
body.mall-ui .la-search.la-2x {
    color: #2d3277;
}
body.mall-ui .mall-bottom-nav a .opacity-100,
body.mall-ui .mall-bottom-nav .text-primary {
    color: #2d3277 !important;
}
body.mall-ui .mall-bottom-nav a:first-child .opacity-100,
body.mall-ui .mall-bottom-nav a .opacity-100.text-primary {
    position: relative;
}

/* ========== Homepage UI v3 — full-page premium mall ========== */
body.mall-ui {
    --mall-shadow: 0 10px 32px rgba(26, 26, 26, 0.06);
    --mall-radius: 20px;
}

/* Top bar chips */
body.mall-ui .top-navbar {
    background: linear-gradient(180deg, #fffef5 0%, #ffffff 100%) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(26, 26, 26, 0.05) !important;
}
body.mall-ui .top-navbar .container {
    padding-top: 2px;
    padding-bottom: 2px;
}
body.mall-ui .top-navbar .dropdown-toggle {
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    color: #2d3277 !important;
    padding: 5px 10px !important;
    border-radius: 999px;
    background: rgba(45, 50, 119, 0.05);
    display: inline-flex;
    align-items: center;
}
body.mall-ui .top-navbar .dropdown-toggle .opacity-60 {
    opacity: 1 !important;
}

/* Header logo + search */
body.mall-ui header.sticky-top,
body.mall-ui header.z-1020 {
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.05) !important;
    border-bottom: 0 !important;
}
body.mall-ui .site-header-logo-img {
    filter: drop-shadow(0 2px 6px rgba(45, 50, 119, 0.08));
}
body.mall-ui .logo-bar-area .la-search.la-2x {
    width: 40px;
    height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 230, 0, 0.35);
    color: #2d3277 !important;
    font-size: 1.35rem !important;
}

/* Horizontal menu + VIP */
body.mall-ui .mobile-hor-swipe {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
body.mall-ui .mobile-hor-swipe::-webkit-scrollbar {
    display: none;
}
body.mall-ui .mobile-hor-swipe .nav-vip-upgrade-link {
    background: linear-gradient(135deg, #ffe600, #ffd000) !important;
    color: #1a1a1a !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.35);
}

/* Categories — denser premium grid */
body.mall-ui .home-category-shortcuts {
    margin-top: 4px !important;
}
body.mall-ui .home-category-grid {
    border-radius: var(--mall-radius);
    padding: 16px 10px 14px;
    box-shadow: var(--mall-shadow);
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}
body.mall-ui .home-category-shortcuts .home-category-thumb {
    width: 64px;
    height: 64px;
    max-width: 64px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(45, 50, 119, 0.1);
    overflow: hidden;
}
body.mall-ui .home-category-shortcuts .home-category-icon {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}
body.mall-ui .home-category-shortcuts .home-category-label {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #2a2a2a;
}

@media (min-width: 375px) {
    body.mall-ui .home-category-shortcuts .home-category-thumb {
        width: 68px;
        height: 68px;
        max-width: 68px;
    }
}
@media (min-width: 430px) {
    body.mall-ui .home-category-shortcuts .home-category-thumb {
        width: 72px;
        height: 72px;
        max-width: 72px;
    }
}

/* Hero */
body.mall-ui .mall-home-hero-carousel {
    box-shadow: 0 16px 40px rgba(45, 50, 119, 0.12);
}
body.mall-ui .mall-home-hero-carousel .slick-arrow {
    opacity: 0.95;
    z-index: 2;
}

/* Product section / cards */
body.mall-ui .mall-home-block,
body.mall-ui #section_featured .px-2.py-4.bg-white,
body.mall-ui #section_home_categories .px-2.py-4.bg-white {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    box-shadow: var(--mall-shadow) !important;
}
body.mall-ui .aiz-card-box {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.05);
    background: #fff;
}
body.mall-ui .aiz-card-box .img-fit {
    border-radius: 14px 14px 0 0;
}
body.mall-ui .aiz-card-box .fw-700.text-primary,
body.mall-ui .aiz-card-box .text-primary {
    font-size: 15px !important;
    letter-spacing: -0.01em;
}
body.mall-ui .aiz-card-box h3 {
    color: #333 !important;
    font-weight: 650 !important;
}
body.mall-ui .aiz-card-box .rating {
    filter: saturate(1.05);
    display: block !important;
    clear: both;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
    min-height: 14px;
    position: relative;
    z-index: 1;
}
body.mall-ui .aiz-card-box .p-2 > .fs-15,
body.mall-ui .aiz-card-box .p-md-3 > .fs-15 {
    display: block !important;
    line-height: 1.3 !important;
    margin: 0 0 2px !important;
    position: relative;
    z-index: 1;
}

/* Anti-fraud */
body.mall-ui .home-antifraud-section {
    margin-bottom: 14px !important;
}
body.mall-ui .home-antifraud-banner {
    border-radius: var(--mall-radius) !important;
    box-shadow: var(--mall-shadow);
    border: 1px solid var(--mall-line);
    background: #fff;
}
body.mall-ui .home-antifraud-banner img {
    border-radius: calc(var(--mall-radius) - 1px);
}

/* Policy shortcuts — icon tiles */
body.mall-ui .home-policy-shortcuts {
    margin: 0 12px 16px !important;
    padding: 6px !important;
    border: 1px solid var(--mall-line) !important;
    border-radius: var(--mall-radius) !important;
    background: #fff !important;
    box-shadow: var(--mall-shadow);
    overflow: hidden;
}
body.mall-ui .home-policy-shortcuts.border-top {
    border-top: 1px solid var(--mall-line) !important;
}
body.mall-ui .home-policy-shortcuts .home-policy-item {
    border-left: 0 !important;
    padding: 14px 6px 12px !important;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}
body.mall-ui .home-policy-shortcuts .home-policy-item:active {
    background: rgba(255, 230, 0, 0.18);
    transform: scale(0.98);
}
body.mall-ui .home-policy-shortcuts .home-policy-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 8px !important;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    color: #2d3277 !important;
    background: linear-gradient(160deg, rgba(255, 230, 0, 0.55), rgba(255, 230, 0, 0.2));
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.2);
}
body.mall-ui .home-policy-shortcuts .home-policy-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    color: #2a2a2a;
    letter-spacing: 0.01em;
}

/* Footer — premium navy (same bg as crypto strip) */
body.mall-ui .footer-widget-compact {
    background: #23285f !important;
    border-radius: 24px 24px 0 0;
    margin-top: 4px;
    padding: 26px 0 20px !important;
    box-shadow: 0 -12px 36px rgba(26, 26, 26, 0.08);
}
body.mall-ui .footer-widget-compact .footer-compact-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffe600 !important;
    letter-spacing: 0.02em;
    margin-bottom: 12px !important;
}
body.mall-ui .footer-widget-compact .footer-compact-label {
    color: rgba(255, 255, 255, 0.55) !important;
}
body.mall-ui .footer-widget-compact .footer-compact-value,
body.mall-ui .footer-widget-compact .footer-compact-link,
body.mall-ui .footer-widget-compact .footer-compact-value a {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
}
body.mall-ui .footer-widget-compact .footer-compact-link:hover {
    color: #ffe600 !important;
}
body.mall-ui .footer-widget-compact .footer-compact-btn {
    background: #ffe600 !important;
    border: 0 !important;
    color: #1a1a1a !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    box-shadow: 0 8px 22px rgba(255, 230, 0, 0.28) !important;
}
body.mall-ui .footer-widget-compact .footer-compact-btn:hover {
    filter: brightness(1.03);
    color: #1a1a1a !important;
}

/* Crypto pay strip — match footer navy exactly */
body.mall-ui .crypto-pay-footer {
    background: #23285f !important;
    border-top: 0 !important;
    padding-bottom: calc(1rem + 64px) !important;
}
body.mall-ui .crypto-pay-footer__title {
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
}
body.mall-ui .crypto-pay-footer__icon {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}
body.mall-ui .crypto-pay-footer__item:hover .crypto-pay-footer__icon {
    transform: translateY(-2px);
    background: rgba(255, 230, 0, 0.12) !important;
}
body.mall-ui .crypto-pay-footer__name {
    color: rgba(255, 255, 255, 0.75) !important;
}
body.mall-ui .crypto-pay-footer__note,
body.mall-ui .crypto-pay-footer__copy {
    color: rgba(255, 255, 255, 0.45) !important;
}
body.mall-ui .crypto-pay-footer__legal a {
    color: #ffe600 !important;
}

/* Bottom nav — active yellow pill (legacy hooks kept for safety) */
body.mall-ui .mall-bottom-nav a i.opacity-100,
body.mall-ui .mall-bottom-nav a .text-primary {
    color: #2d3277 !important;
}
body.mall-ui .mall-bottom-nav .cart-count {
    font-weight: 700;
}

@media (max-width: 575.98px) {
    body.mall-ui .home-policy-shortcuts {
        margin-left: 12px !important;
        margin-right: 12px !important;
    }
    body.mall-ui .footer-widget-compact {
        border-radius: 22px 22px 0 0;
    }
}

/* Full-bleed bottom nav — stick to edges */
body.mall-ui #aiz-mobile-bottom-nav.mall-bottom-nav,
body.mall-ui .mall-bottom-nav,
#aiz-mobile-bottom-nav.mall-bottom-nav {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.mall-ui .mall-bottom-nav__frame,
#aiz-mobile-bottom-nav .mall-bottom-nav__frame {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 18px 18px 0 0 !important;
}

/* ========== Premium mall footer layout ========== */
.mall-footer {
    --mf-bg: #23285f;
    --mf-yellow: #ffe600;
    --mf-ink: #ffffff;
    background: var(--mf-bg);
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 -16px 40px rgba(26, 26, 26, 0.1);
}
body.mall-ui .mall-footer .footer-widget-compact,
body.mall-ui .mall-footer .crypto-pay-footer {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}
body.mall-ui .mall-footer-main.footer-widget-compact {
    padding: 22px 0 8px !important;
}
body.mall-ui .mall-footer .crypto-pay-footer {
    padding-top: 0 !important;
    padding-bottom: calc(1.25rem + 64px) !important;
    border-top: 0 !important;
}

/* Merchant CTA band */
.mall-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    background:
        linear-gradient(120deg, rgba(255, 230, 0, 0.18) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 230, 0, 0.28);
}
.mall-footer-cta__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 230, 0, 0.9);
    margin-bottom: 2px;
}
.mall-footer-cta__title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.25;
}
.mall-footer-cta__btn,
body.mall-ui .mall-footer-cta__btn.footer-compact-btn {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    background: var(--mf-yellow) !important;
    border: 0 !important;
    color: #1a1a1a !important;
    box-shadow: 0 8px 20px rgba(255, 230, 0, 0.28) !important;
}

/* Info grid — 2 columns, airy */
.mall-footer-grid {
    margin-left: -6px;
    margin-right: -6px;
}
.mall-footer .footer-compact-col {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
body.mall-ui .mall-footer .footer-compact-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--mf-yellow) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px !important;
    position: relative;
    padding-bottom: 8px;
}
body.mall-ui .mall-footer .footer-compact-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--mf-yellow);
}
body.mall-ui .mall-footer .footer-compact-list > li {
    margin-bottom: 10px !important;
    font-size: 12px !important;
    line-height: 1.4;
}
body.mall-ui .mall-footer .footer-compact-label {
    display: block;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 2px !important;
}
body.mall-ui .mall-footer .footer-compact-value,
body.mall-ui .mall-footer .footer-compact-link,
body.mall-ui .mall-footer .footer-compact-value a {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 12px;
}
body.mall-ui .mall-footer .footer-compact-link {
    display: inline-block;
    padding: 2px 0;
    transition: color 0.15s ease, transform 0.15s ease;
}
body.mall-ui .mall-footer .footer-compact-link:hover {
    color: var(--mf-yellow) !important;
}

/* Divider + payments */
.mall-footer-divider {
    height: 1px;
    margin: 18px 0 18px;
    background: linear-gradient(90deg, transparent, rgba(255, 230, 0, 0.45), rgba(255, 255, 255, 0.12), transparent);
}
.mall-footer-pay-head {
    margin-bottom: 14px;
}
.mall-footer .crypto-pay-footer__title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}
.mall-footer .crypto-pay-footer__sub {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px !important;
    margin-bottom: 0 !important;
    justify-content: center;
}
.mall-footer .crypto-pay-footer__sub svg {
    color: var(--mf-yellow) !important;
    width: 14px;
    height: 14px;
}
.mall-footer .crypto-pay-footer__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    overflow: visible !important;
}
.mall-footer .crypto-pay-footer__item {
    flex: none !important;
    max-width: none !important;
    min-width: 0;
}
.mall-footer .crypto-pay-footer__icon {
    width: 46px !important;
    height: 46px !important;
    margin: 0 auto 6px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.mall-footer .crypto-pay-footer__icon img {
    width: 78% !important;
    height: 78% !important;
    object-fit: contain !important;
}
.mall-footer .crypto-pay-footer__name {
    font-size: 10px !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72) !important;
    white-space: normal !important;
    line-height: 1.2;
}
.mall-footer .crypto-pay-footer__note {
    color: rgba(255, 255, 255, 0.42) !important;
    font-size: 11px !important;
    margin-bottom: 14px !important;
}
.mall-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}
.mall-footer .crypto-pay-footer__copy {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
}
.mall-footer .crypto-pay-footer__legal {
    font-size: 12px !important;
    padding-bottom: 0 !important;
}
.mall-footer .crypto-pay-footer__legal a {
    color: var(--mf-yellow) !important;
    font-weight: 700;
}
.mall-footer .crypto-pay-footer__legal .sep {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 576px) {
    .mall-footer .crypto-pay-footer__icon {
        width: 40px !important;
        height: 40px !important;
    }
    .mall-footer .crypto-pay-footer__grid {
        gap: 12px;
    }
}
@media (min-width: 768px) {
    .mall-footer {
        border-radius: 32px 32px 0 0;
    }
    .mall-footer-cta {
        padding: 18px 22px;
    }
    .mall-footer .crypto-pay-footer__grid {
        gap: 14px;
        max-width: 36rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ========== Payment logos: one compact row (like original desktop) ========== */
.mall-footer .crypto-pay-footer__grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 14px !important;
    padding: 0 2px !important;
    overflow: visible !important;
}
.mall-footer .crypto-pay-footer__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    text-align: center !important;
}
.mall-footer .crypto-pay-footer__icon,
body.mall-ui .mall-footer .crypto-pay-footer__icon,
body.mall-ui .crypto-pay-footer__icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    margin: 0 auto 4px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.mall-footer .crypto-pay-footer__icon img,
body.mall-ui .mall-footer .crypto-pay-footer__icon img,
body.mall-ui .crypto-pay-footer__icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.mall-footer .crypto-pay-footer__name,
body.mall-ui .mall-footer .crypto-pay-footer__name,
body.mall-ui .crypto-pay-footer__name {
    display: block !important;
    width: 36px !important;
    max-width: 36px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.72) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
@media (min-width: 390px) {
    .mall-footer .crypto-pay-footer__grid {
        gap: 8px !important;
    }
    .mall-footer .crypto-pay-footer__icon,
    body.mall-ui .mall-footer .crypto-pay-footer__icon,
    body.mall-ui .crypto-pay-footer__icon {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        border-radius: 9px !important;
    }
    .mall-footer .crypto-pay-footer__name,
    body.mall-ui .mall-footer .crypto-pay-footer__name,
    body.mall-ui .crypto-pay-footer__name {
        width: 40px !important;
        max-width: 40px !important;
        font-size: 9px !important;
    }
}
@media (min-width: 576px) {
    .mall-footer .crypto-pay-footer__grid {
        gap: 12px !important;
    }
    .mall-footer .crypto-pay-footer__icon,
    body.mall-ui .mall-footer .crypto-pay-footer__icon,
    body.mall-ui .crypto-pay-footer__icon {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        border-radius: 10px !important;
    }
    .mall-footer .crypto-pay-footer__name,
    body.mall-ui .mall-footer .crypto-pay-footer__name,
    body.mall-ui .crypto-pay-footer__name {
        width: 44px !important;
        max-width: 44px !important;
        font-size: 10px !important;
    }
}
@media (min-width: 768px) {
    .mall-footer .crypto-pay-footer__grid {
        gap: 14px !important;
        max-width: 36rem !important;
    }
    .mall-footer .crypto-pay-footer__icon,
    body.mall-ui .mall-footer .crypto-pay-footer__icon,
    body.mall-ui .crypto-pay-footer__icon {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        border-radius: 11px !important;
    }
    .mall-footer .crypto-pay-footer__name,
    body.mall-ui .mall-footer .crypto-pay-footer__name,
    body.mall-ui .crypto-pay-footer__name {
        width: 48px !important;
        max-width: 48px !important;
        font-size: 10px !important;
    }
}

/* Soft zoom so logos fill tiles without edge blowout */
.mall-footer .crypto-pay-footer__icon img,
body.mall-ui .mall-footer .crypto-pay-footer__icon img {
    object-fit: cover !important;
    transform: scale(1.06) !important;
    transform-origin: center center !important;
}
/* OKX/MAX: square brand tiles — keep full, avoid over-crop */
.mall-footer .crypto-pay-footer__item[title*="OKX"] img,
.mall-footer .crypto-pay-footer__item[title*="MAX"] img,
body.mall-ui .mall-footer .crypto-pay-footer__item[title*="OKX"] img,
body.mall-ui .mall-footer .crypto-pay-footer__item[title*="MAX"] img {
    object-fit: cover !important;
    transform: scale(1) !important;
}

/* ========== Premium customer dashboard ========== */
body.mall-ui .aiz-user-panel {
    width: 100%;
    min-width: 0;
}
.mall-dashboard {
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 0 12px;
}
.mall-dash-head {
    margin-bottom: 16px;
}
.mall-dash-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.mall-dash-sub {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.mall-dash-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
@media (min-width: 480px) {
    .mall-dash-stats {
        grid-template-columns: 1fr 1fr;
    }
}
.mall-dash-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 18px;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.06);
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mall-dash-stat:active {
    transform: scale(0.98);
}
.mall-dash-stat--cart {
    background: linear-gradient(135deg, #ffe600 0%, #fff3a0 55%, #ffffff 100%);
    color: #1a1a1a;
}
.mall-dash-stat--wish {
    background: linear-gradient(135deg, #2d3277 0%, #3d4494 60%, #4a52a8 100%);
    color: #fff;
}
.mall-dash-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}
.mall-dash-stat--cart .mall-dash-stat__icon {
    background: rgba(45, 50, 119, 0.12);
    color: #2d3277;
}
.mall-dash-stat--wish .mall-dash-stat__icon {
    background: rgba(255, 230, 0, 0.22);
    color: #ffe600;
}
.mall-dash-stat__body {
    flex: 1;
    min-width: 0;
}
.mall-dash-stat__value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.mall-dash-stat__label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 2px;
}
.mall-dash-stat__arrow {
    font-size: 16px;
    opacity: 0.55;
}
.mall-dash-stat--wish .mall-dash-stat__arrow {
    color: rgba(255, 255, 255, 0.75);
}

.mall-dash-card {
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
    margin-bottom: 12px;
    overflow: hidden;
}
.mall-dash-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
}
.mall-dash-card__title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}
.mall-dash-card__action {
    font-size: 12px;
    font-weight: 700;
    color: #2d3277 !important;
    text-decoration: none !important;
}
.mall-dash-card__body {
    padding: 4px 16px 16px;
}
.mall-dash-address > li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(26, 26, 26, 0.05);
    font-size: 13px;
    line-height: 1.4;
}
.mall-dash-address__k {
    flex: 0 0 78px;
    color: #6b7280;
    font-weight: 600;
}
.mall-dash-address__v {
    flex: 1;
    min-width: 0;
    color: #1a1a1a;
    font-weight: 600;
    word-break: break-word;
}
.mall-dash-empty {
    text-align: center;
    padding: 18px 8px 8px;
    color: #9ca3af;
}
.mall-dash-empty i {
    display: block;
    font-size: 28px;
    color: #c5c9d3;
    margin-bottom: 6px;
}
.mall-dash-empty p {
    font-size: 13px;
    font-weight: 600;
}

.mall-dash-card--link .mall-dash-card__body {
    padding: 0;
}
.mall-dash-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 16px;
    text-decoration: none !important;
}
.mall-dash-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 230, 0, 0.55), rgba(255, 230, 0, 0.2));
    color: #2d3277;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.mall-dash-link__text {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}
.mall-dash-link__arrow {
    color: #9ca3af;
    font-size: 16px;
}
.mall-dash-btn {
    background: #2d3277 !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    box-shadow: none !important;
}
.mall-dash-pkg-logo {
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    body.mall-ui section.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
    }
    body.mall-ui .aiz-user-panel {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ========== Premium refund request page ========== */
.mall-refund {
    max-width: 860px;
    margin: 0 auto;
}
.mall-refund-card {
    margin-bottom: 8px;
}
.mall-refund-body {
    padding: 0 8px 12px;
}
@media (min-width: 768px) {
    .mall-refund-body {
        padding: 0 16px 16px;
    }
}
.mall-refund-table {
    background: transparent !important;
}
.mall-refund-table thead th {
    border-top: 0 !important;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280 !important;
    background: transparent !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.mall-refund-table tbody td {
    border-top: 1px solid rgba(26, 26, 26, 0.05) !important;
    vertical-align: middle !important;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
.mall-refund-code {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(45, 50, 119, 0.08);
    color: #2d3277;
    font-weight: 700;
    font-size: 12px;
}
.mall-refund-amount {
    color: #e53935;
    font-weight: 800;
}
.mall-refund-badge {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border: 0 !important;
}
.mall-refund-badge--ok {
    background: rgba(34, 164, 90, 0.12) !important;
    color: #1b8a4a !important;
}
.mall-refund-badge--no {
    background: rgba(229, 57, 53, 0.12) !important;
    color: #c62828 !important;
}
.mall-refund-badge--pending {
    background: rgba(255, 230, 0, 0.35) !important;
    color: #2d3277 !important;
}
.mall-refund-eye {
    background: rgba(45, 50, 119, 0.08) !important;
    color: #2d3277 !important;
    margin-left: 4px;
}
.mall-refund-pager {
    padding: 8px 8px 4px;
}
.mall-refund-pager .pagination {
    justify-content: center;
    margin-bottom: 0;
}
.mall-refund .aiz-table .nothing-found,
.mall-refund-table .nothing-found,
.mall-refund .text-center {
    color: #9ca3af !important;
}
/* aiz empty emoji / text polish */
.mall-refund .card-body,
.mall-refund-body {
    min-height: 160px;
}
.mall-refund-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 26, 26, 0.18);
}
.mall-refund-modal .modal-header {
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    background: linear-gradient(180deg, #fffef5, #fff);
}
.mall-refund-modal .modal-title {
    font-weight: 800;
    color: #1a1a1a;
}
.mall-refund-modal .modal-footer .btn-light {
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(26, 26, 26, 0.08);
}

/* ========== Premium wishlist page ========== */
.mall-wishlist {
    max-width: 960px;
    margin: 0 auto;
}
.mall-wishlist-grid {
    margin-left: -6px;
    margin-right: -6px;
}
.mall-wish-card {
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
    margin-bottom: 12px;
    height: calc(100% - 12px);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mall-wish-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26, 26, 26, 0.09);
}
.mall-wish-card__media {
    position: relative;
    background: #f7f8fb;
}
.mall-wish-card__media img {
    width: 100%;
    object-fit: cover;
}
.mall-wish-card__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #c62828 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.12);
    text-decoration: none !important;
    font-size: 18px;
    z-index: 2;
}
.mall-wish-card__body {
    padding: 12px 14px 8px;
    flex: 1;
}
.mall-wish-card__title a {
    color: #1a1a1a !important;
    font-weight: 700;
}
.mall-wish-card__price .text-primary {
    color: #e53935 !important;
    font-weight: 800 !important;
}
.mall-wish-card__foot {
    padding: 0 14px 14px;
}
.mall-wish-card__cart {
    border: 0 !important;
    border-radius: 999px !important;
    background: #2d3277 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
}
.mall-wish-card__cart:hover,
.mall-wish-card__cart:focus {
    background: #23285f !important;
    color: #fff !important;
}
.mall-wish-empty {
    text-align: center;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
    padding: 28px 18px 24px;
}
.mall-wish-empty h5 {
    color: #6b7280;
    font-weight: 700;
}
.mall-wishlist-pager {
    margin-top: 8px;
}
.mall-wishlist-pager .pagination {
    justify-content: center;
}

/* ========== Premium wallet page ========== */
.mall-wallet {
    max-width: 860px;
    margin: 0 auto;
}
.mall-wallet-balance {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffe600 0%, #fff3a0 48%, #ffffff 100%);
    border: 1px solid rgba(26, 26, 26, 0.06);
    box-shadow: 0 12px 30px rgba(26, 26, 26, 0.06);
}
.mall-wallet-balance__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(45, 50, 119, 0.12);
    color: #2d3277;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.mall-wallet-balance__value {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.mall-wallet-balance__label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-top: 2px;
}
.mall-wallet-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
@media (min-width: 480px) {
    .mall-wallet-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.mall-wallet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 118px;
    padding: 16px 12px;
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(26, 26, 26, 0.07);
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}
.mall-wallet-action:active {
    transform: scale(0.98);
}
.mall-wallet-action__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.mall-wallet-action__text {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}
.mall-wallet-action--recharge {
    background: #fff;
}
.mall-wallet-action--recharge .mall-wallet-action__icon {
    background: linear-gradient(160deg, rgba(255, 230, 0, 0.7), rgba(255, 230, 0, 0.25));
    color: #2d3277;
}
.mall-wallet-action--recharge .mall-wallet-action__text {
    color: #2d3277;
}
.mall-wallet-action--offline {
    background: #fff;
}
.mall-wallet-action--offline .mall-wallet-action__icon {
    background: rgba(45, 50, 119, 0.1);
    color: #2d3277;
}
.mall-wallet-action--offline .mall-wallet-action__text {
    color: #2d3277;
}
.mall-wallet-action--withdraw {
    background: linear-gradient(135deg, #2d3277 0%, #3d4494 100%);
    border-color: transparent;
}
.mall-wallet-action--withdraw .mall-wallet-action__icon {
    background: rgba(255, 230, 0, 0.22);
    color: #ffe600;
}
.mall-wallet-action--withdraw .mall-wallet-action__text {
    color: #fff;
}
.mall-wallet-card {
    margin-bottom: 12px;
}
.mall-wallet-table-wrap {
    padding: 0 8px 12px;
}
@media (min-width: 768px) {
    .mall-wallet-table-wrap {
        padding: 0 16px 16px;
    }
}
.mall-wallet-table thead th {
    border-top: 0 !important;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280 !important;
    background: transparent !important;
}
.mall-wallet-table tbody td {
    border-top: 1px solid rgba(26, 26, 26, 0.05) !important;
    vertical-align: middle !important;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}
.mall-wallet-amount {
    color: #e53935;
    font-weight: 800;
}
.mall-wallet-pager {
    padding-top: 8px;
}
.mall-wallet-pager .pagination {
    justify-content: center;
    margin-bottom: 0;
}
#wallet_modal .modal-content,
#offline_wallet_recharge_modal .modal-content,
body.mall-ui #wallet_modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 26, 26, 0.18);
}
#wallet_modal .modal-header {
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    background: linear-gradient(180deg, #fffef5, #fff);
}
#wallet_modal .modal-title {
    font-weight: 800;
}

/* ========== Premium profile page ========== */
.mall-profile {
    max-width: 860px;
    margin: 0 auto;
}
.mall-profile-card {
    margin-bottom: 14px;
}
.mall-profile-body {
    padding: 4px 8px 16px;
}
@media (min-width: 768px) {
    .mall-profile-body {
        padding: 4px 16px 18px;
    }
}
.mall-profile-field {
    margin-bottom: 4px;
}
.mall-profile-field > .col-form-label,
.mall-profile-field label.col-form-label,
.mall-profile-field > label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.02em;
}
.mall-profile .form-control {
    border: 1px solid rgba(26, 26, 26, 0.1) !important;
    border-radius: 14px !important;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fafbfc;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.mall-profile .form-control:focus {
    border-color: rgba(45, 50, 119, 0.35) !important;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.35) !important;
}
.mall-profile-uploader {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.1);
    background: #fafbfc;
}
.mall-profile-uploader .input-group-text {
    border: 0 !important;
    background: linear-gradient(135deg, #ffe600 0%, #fff3a0 100%) !important;
    color: #1a1a1a !important;
    font-weight: 800 !important;
    font-size: 12px;
    padding: 0 16px;
}
.mall-profile-uploader .form-control.file-amount {
    border: 0 !important;
    background: transparent !important;
    min-height: 46px;
    display: flex;
    align-items: center;
}
.mall-profile-actions {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 18px;
}
.mall-profile-actions--inline {
    margin: 0;
}
.mall-profile-address {
    border: 1px solid rgba(26, 26, 26, 0.08) !important;
    border-radius: 16px !important;
    background: #fafbfc;
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.04);
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.65;
}
.mall-profile-address .fw-600 {
    color: #6b7280;
    font-weight: 700 !important;
    font-size: 12px;
}
.mall-profile-badge {
    background: #2d3277 !important;
    border-radius: 999px !important;
    font-weight: 700;
    padding: 4px 10px;
}
.mall-profile-menu {
    background: #fff !important;
    border: 1px solid rgba(26, 26, 26, 0.08) !important;
    border-radius: 10px !important;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.06);
}
.mall-profile-address-add {
    border: 1.5px dashed rgba(45, 50, 119, 0.28) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fffef5 0%, #ffffff 100%) !important;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mall-profile-address-add:active {
    transform: scale(0.98);
}
.mall-profile-address-add__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe600 0%, #fff3a0 100%);
    color: #2d3277;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(255, 230, 0, 0.35);
}
.mall-profile-address-add__text {
    font-size: 13px;
    font-weight: 800;
    color: #2d3277;
}
.mall-profile-email-group {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.1);
    background: #fafbfc;
}
.mall-profile-email-group .form-control {
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}
.mall-profile-email-group .form-control:focus {
    box-shadow: none !important;
}
.mall-profile-verify {
    border: 0 !important;
    border-left: 1px solid rgba(26, 26, 26, 0.08) !important;
    background: #fff !important;
    color: #2d3277 !important;
    font-weight: 800 !important;
    font-size: 13px;
    min-height: 46px;
    padding: 0 16px !important;
}
.mall-profile-verify:hover,
.mall-profile-verify:focus {
    background: #ffe600 !important;
    color: #1a1a1a !important;
}
body.mall-ui #new-address-modal .modal-content,
body.mall-ui #edit-address-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 26, 26, 0.18);
}

/* ========== Premium login / auth ========== */
body.mall-ui .mall-auth-section {
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(255, 230, 0, 0.28) 0%, transparent 55%),
        linear-gradient(180deg, #f7f8fc 0%, #eef0f6 100%) !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}
.mall-auth-card {
    border: 0 !important;
    border-radius: 22px !important;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08) !important;
    background: #fff !important;
}
.mall-auth-head {
    padding: 28px 24px 8px;
    background: linear-gradient(180deg, #fffef5 0%, #ffffff 100%);
}
.mall-auth-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe600 0%, #fff3a0 55%, #ffffff 100%);
    color: #2d3277;
    font-size: 26px;
    box-shadow: 0 10px 24px rgba(255, 230, 0, 0.35);
}
.mall-auth-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.mall-auth-body {
    padding-top: 8px !important;
}
.mall-auth-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.mall-auth-form .form-control {
    border: 1px solid rgba(26, 26, 26, 0.1) !important;
    border-radius: 14px !important;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fafbfc !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.mall-auth-form .form-control:focus {
    border-color: rgba(45, 50, 119, 0.35) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.35) !important;
}
.mall-auth-form .form-group {
    margin-bottom: 16px;
}
.mall-auth-meta {
    align-items: center;
}
.mall-auth-meta .aiz-checkbox {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.mall-auth-link {
    color: #2d3277 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}
.mall-auth-link:hover {
    color: #1a1a1a !important;
    text-decoration: underline !important;
}
.mall-auth-submit {
    background: #2d3277 !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 50px;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 28px rgba(45, 50, 119, 0.28) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mall-auth-submit:hover,
.mall-auth-submit:focus {
    background: #23285f !important;
    box-shadow: 0 14px 32px rgba(45, 50, 119, 0.34) !important;
}
.mall-auth-submit:active {
    transform: scale(0.98);
}
.mall-auth-sep {
    position: relative;
}
.mall-auth-sep span {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
}
.mall-auth-foot {
    padding-top: 4px;
    border-top: 1px solid rgba(26, 26, 26, 0.06);
    margin-top: 4px;
    padding-top: 18px;
}
.mall-auth-foot .text-muted {
    font-size: 13px;
    font-weight: 600;
}
.mall-auth-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe600 0%, #fff3a0 100%);
    color: #1a1a1a !important;
    font-weight: 800 !important;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(255, 230, 0, 0.35);
}
.mall-auth-register:hover {
    color: #2d3277 !important;
}
.mall-auth-demo {
    border-radius: 14px;
    overflow: hidden;
    font-size: 13px;
}
@media (max-width: 575.98px) {
    .mall-auth-head {
        padding: 22px 18px 4px;
    }
    .mall-auth-title {
        font-size: 20px;
    }
}

/* Registration refinements on mall-auth */
.mall-auth-switch {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.mall-auth-terms .aiz-checkbox {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.45;
}
.mall-auth-form .mall-reg-code-row,
.mall-auth-form .reg-code-row {
    border: 1px solid rgba(26, 26, 26, 0.1) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: #fafbfc !important;
    min-height: 48px;
}
.mall-auth-form .mall-reg-code-row .form-control,
.mall-auth-form .reg-code-row .form-control {
    background: transparent !important;
    min-height: 48px;
}
.mall-auth-form .mall-reg-code-row:focus-within,
.mall-auth-form .reg-code-row:focus-within {
    border-color: rgba(45, 50, 119, 0.35) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.35);
}
.mall-auth-form .mall-reg-send-btn,
.mall-auth-form .reg-send-code-btn {
    border-left: 1px solid rgba(26, 26, 26, 0.08) !important;
    background: #fff !important;
    color: #2d3277 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    padding: 0 12px !important;
    min-width: 102px;
}
.mall-auth-form .mall-reg-send-btn:not(:disabled):hover,
.mall-auth-form .reg-send-code-btn:not(:disabled):hover {
    background: #ffe600 !important;
    color: #1a1a1a !important;
}
.mall-auth-form .mall-reg-send-btn:disabled,
.mall-auth-form .reg-send-code-btn:disabled {
    color: #9ca3af !important;
    background: #f3f4f6 !important;
}
.mall-auth-form .mall-reg-hint {
    font-weight: 600;
    color: #6b7280;
}
.mall-auth-form .bootstrap-select > .dropdown-toggle,
.mall-auth-form .bootstrap-select .dropdown-toggle {
    border: 1px solid rgba(26, 26, 26, 0.1) !important;
    border-radius: 14px !important;
    min-height: 48px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #fafbfc !important;
    box-shadow: none !important;
}
.mall-auth-form .bootstrap-select > .dropdown-toggle:focus,
.mall-auth-form .bootstrap-select .dropdown-toggle:focus {
    border-color: rgba(45, 50, 119, 0.35) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 230, 0, 0.35) !important;
}

/* ========== Home images: fuller / edge-to-edge ========== */
/* Category shortcut icons — keep original colors (no zoom crop washout) */
body.mall-ui .home-category-shortcuts .home-category-thumb {
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 6px 14px rgba(45, 50, 119, 0.1) !important;
}
body.mall-ui .home-category-shortcuts .home-category-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform-origin: center center !important;
}

/* Hero banners — full width, no letterbox (mobile keeps natural height) */
@media (max-width: 991.98px) {
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-img,
    body.mall-ui .home-promo-banner-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
        vertical-align: top;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Hero carousel: prevent pre-Slick stack flash (all slides shown → huge yellow block) */
body.mall-ui .mall-home-banner {
    margin-bottom: 12px !important;
}
body.mall-ui .mall-home-hero-carousel {
    line-height: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: transparent !important;
}
/* Before slick initializes: only show first slide */
body.mall-ui .mall-home-hero-carousel:not(.slick-initialized) > .carousel-box {
    display: none !important;
}
body.mall-ui .mall-home-hero-carousel:not(.slick-initialized) > .carousel-box:first-child {
    display: block !important;
}
body.mall-ui .mall-home-hero-carousel .slick-list,
body.mall-ui .mall-home-hero-carousel .slick-track {
    line-height: 0 !important;
    background: transparent !important;
}
body.mall-ui .mall-home-hero-carousel .carousel-box {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
    background: transparent !important;
}
body.mall-ui .mall-home-hero-carousel .home-promo-banner-link {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: transparent !important;
}
body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
    border-radius: 18px !important;
    transform: none !important;
}
body.mall-ui .mall-home-hero-carousel .slick-dots {
    bottom: 12px !important;
    z-index: 3;
}
/* Stable aspect while lazyload swaps placeholder → real image (mobile only) */
@media (max-width: 991.98px) {
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-link {
        aspect-ratio: 830 / 348;
        background: #f3f4f8 !important;
    }
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
@media (min-width: 992px) {
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-link {
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
        display: block;
        background: transparent !important;
        line-height: 0;
    }
    body.mall-ui .mall-home-hero-carousel .home-promo-banner-img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

/* Product cards — crop empty padding in thumbnails */
body.mall-ui .aiz-card-box .img-fit,
body.mall-ui .aiz-card-box .img-fit img,
body.mall-ui .mall-home-deal-item .img-fit,
body.mall-ui .home-category-swipe-item .img-fit {
    object-fit: cover !important;
    object-position: center center !important;
}
body.mall-ui .aiz-card-box .img,
body.mall-ui .aiz-card-box .aiz-ovx-hidden {
    overflow: hidden;
}
body.mall-ui .aiz-card-box .img-fit {
    transform: scale(1.08);
    transform-origin: center center;
}

/* Category / antifraud / homepage images — rounded + full */
body.mall-ui .home-category-promo-pane-ad .category-promo-slide-img,
body.mall-ui .category-promo-slide-img,
body.mall-ui .home-category-promo-col .category-promo-slide-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 16px !important;
    display: block !important;
}
/* Scroller must stay overflow-x:auto — do NOT put overflow:hidden on it */
body.mall-ui .home-category-promo-scroller {
    border-radius: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    width: 100% !important;
    background: transparent !important;
}
body.mall-ui .home-category-promo-pane-ad,
body.mall-ui .home-category-promo-pane-ad .category-promo-slide,
body.mall-ui .home-category-promo-pane-ad .category-promo-slide-link,
body.mall-ui .category-promo-slide-link {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: transparent !important;
    width: 100% !important;
    line-height: 0 !important;
}
body.mall-ui .home-antifraud-banner,
body.mall-ui .home-antifraud-banner.rounded {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 0 !important;
    box-shadow: 0 8px 22px rgba(26, 26, 26, 0.07) !important;
}
body.mall-ui .home-antifraud-banner img {
    border-radius: 20px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
    vertical-align: top;
}

/* Category section promo banners on mobile — padded rounded full images */
@media (max-width: 991.98px) {
    body.mall-ui .home-category-panel,
    body.mall-ui #section_home_categories .home-category-panel,
    body.mall-ui .mall-home-block {
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow: visible;
        border-radius: 18px !important;
    }
    body.mall-ui .home-category-head,
    body.mall-ui .mall-home-section-head,
    body.mall-ui .mall-home-block > .d-flex.border-bottom,
    body.mall-ui .home-category-panel > .home-category-head {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0;
        margin-right: 0;
    }
    body.mall-ui .home-category-promo-scroller {
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(26, 26, 26, 0.06) !important;
        background: transparent !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
        margin: 0 !important;
    }
    body.mall-ui .home-category-promo-pane-ad,
    body.mall-ui .home-category-promo-pane-ad .category-promo-slide,
    body.mall-ui .home-category-promo-pane-ad .category-promo-slide-link,
    body.mall-ui .category-promo-slide-link {
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(26, 26, 26, 0.06) !important;
        background: #f3f4f8 !important;
        width: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
    }
    body.mall-ui .home-category-promo-pane-ad .category-promo-slide-img,
    body.mall-ui .category-promo-slide-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 140px;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 16px !important;
        display: block !important;
        margin: 0 !important;
        transform: scale(1.02);
        transform-origin: center center;
    }
    body.mall-ui .home-category-promo-pane-products {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    body.mall-ui .mall-home-block .aiz-carousel,
    body.mall-ui .mall-home-block .aiz-carousel.gutters-10 {
        padding-left: 2px;
        padding-right: 2px;
    }
    body.mall-ui .home-category-grid {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    body.mall-ui .home-antifraud-section .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    body.mall-ui .home-antifraud-banner,
    body.mall-ui .home-antifraud-banner.rounded,
    body.mall-ui .home-antifraud-banner img {
        border-radius: 18px !important;
        overflow: hidden !important;
    }
    /* Homepage product thumbs — fuller crop, soft corners */
    body.mall-ui .aiz-card-box .img,
    body.mall-ui .aiz-card-box .aiz-ovx-hidden {
        border-radius: 14px 14px 0 0 !important;
        overflow: hidden !important;
    }
    body.mall-ui .aiz-card-box .img-fit {
        border-radius: 14px 14px 0 0 !important;
        transform: scale(1.1) !important;
    }
}

/* Desktop category promo */
@media (min-width: 992px) {
    body.mall-ui .home-category-promo-col .category-promo-slide-img,
    body.mall-ui .category-promo-slide-img {
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 16px !important;
    }
    body.mall-ui .category-promo-slide-link {
        border-radius: 16px !important;
        overflow: hidden !important;
    }
}

/* ========== PC homepage — fill layout, center nav, align hero row ========== */
@media (min-width: 992px) {
    body.mall-home-page .mall-header-nav-menu {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center !important;
        align-items: center;
        gap: 2px 4px;
        width: 100%;
    }

    body.mall-home-page .home-category-grid {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.mall-home-page .mall-home-banner {
        margin-bottom: 10px !important;
        padding-top: 0 !important;
    }

    body.mall-home-page .mall-home-banner > .container {
        padding-top: 0;
    }

    body.mall-home-page .mall-home-banner .home-category-shortcuts {
        margin-bottom: 8px !important;
        padding-top: 0 !important;
    }

    body.mall-home-page .mall-home-hero-row {
        align-items: flex-start !important;
    }

    body.mall-home-page .mall-home-hero-row > [class*="col-"] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    body.mall-home-page .mall-home-hero-col {
        align-self: flex-start;
    }

    body.mall-home-page .mall-home-category-col .aiz-category-menu,
    body.mall-home-page .mall-home-deal-col .mall-home-deal {
        flex: 1 1 auto;
        width: 100%;
        min-height: 400px;
        height: 100%;
    }

    body.mall-home-page .mall-home-hero-col .mall-home-hero-carousel {
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        height: auto;
    }

    body.mall-home-page .mall-home-category-col .aiz-category-menu {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    body.mall-home-page .mall-home-category-col .aiz-category-menu .categories {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    body.mall-home-page .mall-home-deal-col .mall-home-deal {
        display: flex;
        flex-direction: column;
        min-height: 400px;
        height: 100%;
    }

    body.mall-home-page .mall-home-deal-col .mall-home-deal-body {
        flex: 1 1 auto;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.mall-home-page .mall-home-hero-carousel .home-promo-banner-link {
        min-height: 0;
        height: auto;
        background: transparent !important;
        display: block !important;
        overflow: hidden !important;
    }

    body.mall-home-page .mall-home-hero-carousel .slick-list,
    body.mall-home-page .mall-home-hero-carousel .slick-track,
    body.mall-home-page .mall-home-hero-carousel .slick-slide,
    body.mall-home-page .mall-home-hero-carousel .slick-slide > div,
    body.mall-home-page .mall-home-hero-carousel .carousel-box {
        height: auto !important;
        min-height: 0 !important;
    }

    body.mall-home-page .mall-home-hero-carousel .home-promo-banner-img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (min-width: 1200px) {
    body.mall-home-page .container {
        max-width: 96vw !important;
    }
}

@media (min-width: 1400px) {
    body.mall-home-page .container {
        max-width: 1680px !important;
    }
}

@media (min-width: 1800px) {
    body.mall-home-page .container {
        max-width: 1840px !important;
    }
}

/* PC: VIP upgrade + anti-fraud notice images — readable size, mobile unchanged */
@media (min-width: 992px) {
    body.mall-ui .home-antifraud-section .home-antifraud-banner {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    body.mall-ui .home-antifraud-banner img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.mall-ui .vip-public-banner {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    body.mall-ui .vip-public-banner img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}
