/* ==========================================================================
   HOME SECTIONS — MOBILE & TABLET (< 992px)
   Voucher strip, Brands strip, Exclusive deals, Best sellers.

   Loaded right after the inline <style> of client/layouts/app.blade.php, so
   these rules win over the desktop base rules there (which use !important
   without a media query and otherwise override aladdin-home-desktop.css).
   ========================================================================== */

/* Short "view all" label is mobile-only */
.home-all-short {
    display: none;
}

@media (max-width: 991.98px) {

    /* ---------------------------------------------------------------
     * Mobile Wireframe Tab states (Hide desktop home sections on category & events tabs)
     * ------------------------------------------------------------- */
    html.is-mobile-tab-category .desktop-home-reference,
    body.is-mobile-tab-category .desktop-home-reference,
    html.is-mobile-tab-events .desktop-home-reference,
    body.is-mobile-tab-events .desktop-home-reference,
    .desktop-home-reference.is-hidden-mobile-tab {
        display: none !important;
    }

    /* ---------------------------------------------------------------
     * Mobile Body & View Background: Nền trắng sạch sẽ #FFFFFF cho toàn bộ trang
     * (Chỉ duy nhất khối khung tiện ích & banner ở đỉnh mới có dải màu)
     * ------------------------------------------------------------- */
    html,
    body,
    body.blue-skin,
    #index,
    main,
    .main-wrapper,
    .content-main-index,
    .cc-mobile-wireframe-view,
    #cc-m-tab-home,
    #cc-m-tab-category,
    #cc-m-tab-events,
    .desktop-home-reference,
    .desktop-home-reference__layout,
    .desktop-home-reference__main,
    .desktop-home-catalog-wrap,
    .desktop-home-brand-showcase-wrap,
    .desktop-home-news-wrap {
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
    }

    .cc-mobile-wireframe-view {
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #cc-m-tab-category {
        background-color: #FFFFFF !important;
        padding-top: 4px;
        padding-bottom: 8px;
    }

    #cc-m-tab-events {
        background-color: #FFFFFF !important;
        padding-top: 4px;
        padding-bottom: 8px;
    }

    .cc-m-section-label::before {
        background: var(--brand-primary, #EE4D2D) !important;
    }

    /* 6 Action Cards - Shopee Orange + White Text */
    .cc-m-action-card,
    .cc-m-action-card.cc-m-ac-pink,
    .cc-m-action-card.cc-m-ac-orange {
        background: linear-gradient(135deg, var(--brand-primary-leaf, #FF5722) 0%, var(--brand-primary, #EE4D2D) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 10px !important;
        box-shadow: 0 3px 10px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.28) !important;
        color: #FFFFFF !important;
    }
    .cc-m-action-card:active {
        transform: scale(0.96) !important;
        filter: brightness(0.95) !important;
    }
    .cc-m-ac-title {
        color: #FFFFFF !important;
        font-weight: 700 !important;
    }
    .cc-m-ac-sub,
    .cc-m-action-card .text-success,
    .cc-m-action-card .text-warning {
        color: rgba(255, 255, 255, 0.92) !important;
    }
    .cc-m-ac-tag {
        background: #FFCE3D !important;
        color: #B45309 !important;
        font-weight: 800 !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
    }

    /* ---------------------------------------------------------------
     * Shared: section shell
     * ------------------------------------------------------------- */
    .desktop-voucher-strip,
    .desktop-brands-strip,
    .desktop-home-reference .desktop-exclusive-deals,
    .desktop-home-reference .desktop-best-sellers {
        margin-top: 0 !important;
        padding: 14px 12px 14px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(var(--brand-primary-rgb, 238, 77, 45), 0.16) !important;
        box-shadow: 0 2px 12px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
    }

    /* ---------------------------------------------------------------
     * Shared: compact header
     *   [icon] Title ........................ [Xem tất cả >]
     *   [icon] Subtitle (spans to the right edge)
     * ------------------------------------------------------------- */
    .desktop-voucher-strip__header,
    .desktop-brands-strip__header,
    .desktop-home-reference .desktop-exclusive-deals__header,
    .desktop-home-reference .desktop-best-sellers__header {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "icon title link"
            "icon sub   sub" !important;
        column-gap: 10px !important;
        row-gap: 3px !important;
        align-items: center !important;
        margin: 0 0 12px !important;
        padding: 0 0 10px !important;
        border-bottom: 1px solid #f3ece9 !important;
    }

    .desktop-voucher-strip__title-wrap,
    .desktop-voucher-strip__title-wrap > div,
    .desktop-brands-strip__title-wrap,
    .desktop-brands-strip__title-wrap > div,
    .desktop-home-reference .desktop-exclusive-deals__title-wrap,
    .desktop-home-reference .desktop-exclusive-deals__title-wrap > div,
    .desktop-home-reference .desktop-best-sellers__title-wrap,
    .desktop-home-reference .desktop-best-sellers__title-wrap > div {
        display: contents !important;
    }

    .desktop-voucher-strip__icon,
    .desktop-brands-strip__icon,
    .desktop-home-reference .desktop-exclusive-deals__icon,
    .desktop-home-reference .desktop-best-sellers__icon {
        grid-area: icon !important;
        align-self: center !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .desktop-voucher-strip__ticket-img,
    .desktop-brands-strip__crown-img,
    .desktop-home-reference .desktop-exclusive-deals__gift-img,
    .desktop-home-reference .desktop-exclusive-deals__flame-img,
    .desktop-home-reference .desktop-best-sellers__flame-img {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35)) !important;
    }

    .desktop-voucher-strip__title-wrap > div > h2,
    .desktop-brands-strip__title-wrap > div > h2,
    .desktop-home-reference .desktop-exclusive-deals__heading-row,
    .desktop-home-reference .desktop-best-sellers__heading-row {
        grid-area: title !important;
        min-width: 0 !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__heading-row,
    .desktop-home-reference .desktop-best-sellers__heading-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 6px !important;
    }

    .desktop-voucher-strip h2,
    .desktop-brands-strip h2,
    .desktop-home-reference .desktop-exclusive-deals h2,
    .desktop-home-reference .desktop-best-sellers h2 {
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.01em !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__badge-tag,
    .desktop-home-reference .desktop-best-sellers__badge-tag {
        font-size: 8.5px !important;
        padding: 2px 6px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .desktop-voucher-strip__subtitle,
    .desktop-brands-strip__subtitle,
    .desktop-home-reference .desktop-exclusive-deals__subtitle,
    .desktop-home-reference .desktop-best-sellers__subtitle {
        grid-area: sub !important;
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .desktop-voucher-strip__all,
    .desktop-brands-strip__all,
    .desktop-home-reference .desktop-exclusive-deals__all,
    .desktop-home-reference .desktop-best-sellers__all {
        grid-area: link !important;
        justify-self: end !important;
        align-self: center !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        margin: 0 !important;
        padding: 5px 9px 5px 11px !important;
        border-radius: 999px !important;
        background: #FFF1EC !important;
        border: 1px solid var(--brand-border, #FCD8D0) !important;
        box-shadow: none !important;
        color: var(--brand-primary, #EE4D2D) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transform: none !important;
    }

    .desktop-voucher-strip__all svg,
    .desktop-brands-strip__all svg,
    .desktop-home-reference .desktop-exclusive-deals__all svg,
    .desktop-home-reference .desktop-best-sellers__all svg {
        width: 12px !important;
        height: 12px !important;
    }

    .home-all-long {
        display: none !important;
    }

    .home-all-short {
        display: inline !important;
    }

    /* Desktop arrows overlap content on small screens — swipe instead */
    .desktop-voucher-strip__nav-btn,
    .desktop-brands-strip__nav-btn,
    .desktop-home-reference .desktop-exclusive-deals__arrow,
    .desktop-home-reference .desktop-best-sellers__arrow {
        display: none !important;
    }

    /* ---------------------------------------------------------------
     * Mobile Search Bar: Bo vuông (border-radius: 6px / 4px chuẩn Shopee)
     * ------------------------------------------------------------- */
    .cc-m-search-form {
        border-radius: 6px !important;
    }
    .cc-m-search-btn {
        border-radius: 4px !important;
        background: linear-gradient(135deg, var(--brand-primary-leaf, #FF6636) 0%, var(--brand-primary, #EE4D2D) 100%) !important;
    }

    /* ---------------------------------------------------------------
     * Mobile Home Hero Wash (chỉ áp dụng từ header đến hết banner):
     * Toàn bộ trang web là nền trắng #FFFFFF.
     * Khung chứa tiện ích & banner (.cc-m-orange-frame) có dải màu cam Shopee var(--brand-primary, #EE4D2D)
     * sáng trong, ấm áp, chuyển êm ái xuống trắng #FFFFFF ngay khi kết thúc banner.
     * ------------------------------------------------------------- */
    #cc-m-tab-home {
        background: #FFFFFF !important;
        background-color: #FFFFFF !important;
        position: relative !important;
        min-height: 100vh;
    }

    .cc-m-orange-frame {
        background: linear-gradient(180deg,
            var(--brand-primary, #EE4D2D) 0px,
            #F55531 28px,
            #FB6E48 62px,
            #FF8B66 100px,
            #FFA888 140px,
            #FFC8B0 185px,
            #FFE4D4 235px,
            #FFF4ED 280px,
            #FFFFFF 100%
        ) !important;
        border: none !important;
        border-radius: 0 0 16px 16px !important;
        padding: 8px 10px 10px 10px !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
        width: 100% !important;
        box-shadow: none !important;
        position: relative !important;
    }

    .cc-m-orange-frame .cc-m-action-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 8px !important;
        margin-top: 2px !important;
        margin-bottom: 10px !important;
    }

    .cc-m-orange-frame .cc-m-action-card,
    .cc-m-orange-frame .cc-m-action-card.cc-m-ac-pink,
    .cc-m-orange-frame .cc-m-action-card.cc-m-ac-orange {
        background: #FFFFFF !important;
        border: 1px solid rgba(255, 255, 255, 0.95) !important;
        border-radius: 12px !important;
        padding: 8px 10px !important;
        min-height: 52px !important;
        gap: 9px !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.06) !important;
        position: relative !important;
        overflow: hidden !important;
        text-decoration: none !important;
    }

    .cc-m-orange-frame .cc-m-action-card:active {
        transform: scale(0.98) !important;
        filter: brightness(0.96) !important;
    }

    .cc-m-orange-frame .cc-m-ac-icon {
        line-height: 1 !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .cc-m-orange-frame .cc-m-ac-icon img,
    .cc-m-orange-frame .cc-m-ac-icon-img,
    .cc-m-ac-icon img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        object-fit: contain !important;
        display: block !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
    }

    .cc-m-orange-frame .cc-m-ac-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
        padding-right: 0 !important;
    }

    .cc-m-orange-frame .cc-m-ac-title {
        color: #111827 !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.3px !important;
        text-transform: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .cc-m-orange-frame .cc-m-ac-title.cc-m-ac-title-compact,
    .cc-m-orange-frame .cc-m-ac-deal .cc-m-ac-title {
        font-size: 12px !important;
        letter-spacing: -0.4px !important;
    }

    .cc-m-orange-frame .cc-m-action-card.cc-m-ac-deal {
        padding: 7px 8px !important;
        gap: 6px !important;
    }

    .cc-m-orange-frame .cc-m-action-card.cc-m-ac-deal .cc-m-ac-icon {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
    }

    .cc-m-orange-frame .cc-m-action-card.cc-m-ac-deal .cc-m-ac-icon img {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    .cc-m-orange-frame .cc-m-ac-sub,
    .cc-m-orange-frame .cc-m-action-card .text-success,
    .cc-m-orange-frame .cc-m-action-card .text-warning {
        color: #4B5563 !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.2px !important;
        text-transform: none !important;
        margin-top: 1.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .cc-m-orange-frame .cc-m-ac-tag,
    .cc-m-ac-tag {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    @media (min-width: 390px) {
        .cc-m-orange-frame .cc-m-action-card {
            padding: 9px 12px !important;
            min-height: 54px !important;
            gap: 10px !important;
        }
        .cc-m-orange-frame .cc-m-ac-icon {
            width: 36px !important;
            min-width: 36px !important;
            height: 36px !important;
        }
        .cc-m-orange-frame .cc-m-ac-icon img,
        .cc-m-orange-frame .cc-m-ac-icon-img,
        .cc-m-ac-icon img {
            width: 36px !important;
            height: 36px !important;
            max-width: 36px !important;
            max-height: 36px !important;
        }
        .cc-m-orange-frame .cc-m-ac-title {
            font-size: 15px !important;
        }
        .cc-m-orange-frame .cc-m-ac-title.cc-m-ac-title-compact,
        .cc-m-orange-frame .cc-m-ac-deal .cc-m-ac-title {
            font-size: 12.5px !important;
            letter-spacing: -0.35px !important;
        }
        .cc-m-orange-frame .cc-m-ac-sub {
            font-size: 12px !important;
        }
    }

    @media (min-width: 420px) {
        .cc-m-orange-frame .cc-m-action-card {
            padding: 9px 13px !important;
            min-height: 56px !important;
        }
        .cc-m-orange-frame .cc-m-ac-icon {
            width: 38px !important;
            min-width: 38px !important;
            height: 38px !important;
        }
        .cc-m-orange-frame .cc-m-ac-icon img,
        .cc-m-orange-frame .cc-m-ac-icon-img,
        .cc-m-ac-icon img {
            width: 38px !important;
            height: 38px !important;
            max-width: 38px !important;
            max-height: 38px !important;
        }
        .cc-m-orange-frame .cc-m-ac-title {
            font-size: 15.5px !important;
        }
        .cc-m-orange-frame .cc-m-ac-title.cc-m-ac-title-compact,
        .cc-m-orange-frame .cc-m-ac-deal .cc-m-ac-title {
            font-size: 13px !important;
            letter-spacing: -0.3px !important;
        }
        .cc-m-orange-frame .cc-m-ac-sub {
            font-size: 12.5px !important;
        }
    }

    @media (min-width: 640px) {
        .cc-m-orange-frame .cc-m-action-grid {
            grid-template-columns: repeat(3, 1fr) !important;
        }
    }

    .cc-m-orange-frame .cc-m-banner-slider {
        margin-bottom: 0 !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
        overflow: hidden !important;
    }

    .cc-m-orange-frame .cc-m-banner-track,
    .cc-m-orange-frame .cc-m-banner-slide,
    .cc-m-orange-frame .cc-m-banner-img {
        border-radius: 14px !important;
    }

    /* ---------------------------------------------------------------
     * Mobile Hero Banner Touch Slider
     * ------------------------------------------------------------- */
    .cc-m-banner-slider {
        position: relative !important;
        width: 100% !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09) !important;
        margin-bottom: 22px !important;
    }

    .cc-m-banner-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        touch-action: pan-x pan-y !important;
        border-radius: 16px !important;
        scroll-behavior: smooth !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .cc-m-banner-track::-webkit-scrollbar {
        display: none !important;
    }

    .cc-m-banner-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        display: block !important;
        text-decoration: none !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .cc-m-banner-img {
        width: 100% !important;
        height: clamp(230px, 58vw, 300px) !important;
        min-height: 220px !important;
        max-height: 320px !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 16px !important;
        display: block !important;
    }

    .cc-m-banner-dots {
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        z-index: 10 !important;
        padding: 3px 8px !important;
        background: rgba(0, 0, 0, 0.32) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        border-radius: 999px !important;
    }

    .cc-m-banner-dot {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.6) !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .cc-m-banner-dot.active {
        width: 18px !important;
        border-radius: 999px !important;
        background: var(--brand-primary, #EE4D2D) !important;
        box-shadow: 0 1px 4px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.5) !important;
    }

    /* ---------------------------------------------------------------
     * Remove Official Categories strip (Image 2) on mobile as requested
     * ------------------------------------------------------------- */
    .cc-mobile-cat-strip {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ---------------------------------------------------------------
     * 1. Voucher strip — compact responsive ticket card on mobile
     * ------------------------------------------------------------- */
    .desktop-voucher-strip__viewport {
        margin: 0 -12px !important;
        padding: 6px 12px 8px !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding: 0 12px !important;
        cursor: auto !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
    }

    .desktop-voucher-strip__track,
    .desktop-voucher-strip__list {
        gap: 10px !important;
        width: max-content !important;
        touch-action: pan-x pan-y !important;
    }

    .desktop-voucher,
    .vcard {
        flex: 0 0 min(285px, calc(100vw - 72px)) !important;
        width: min(285px, calc(100vw - 72px)) !important;
        min-height: 114px !important;
        border-radius: 12px !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: normal !important;
        touch-action: pan-x pan-y !important;
    }

    .desktop-voucher__stub,
    .vcard__stub {
        width: 76px !important;
        padding: 10px 4px !important;
        gap: 4px !important;
        border-radius: 11px 0 0 11px !important;
    }

    .desktop-voucher__stub-icon svg,
    .vcard__icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .desktop-voucher__stub-label,
    .vcard__stub-label {
        font-size: 9.5px !important;
        letter-spacing: 0.02em !important;
        line-height: 1.15 !important;
    }

    .vcard__stub-value {
        font-size: 18px !important;
    }

    .desktop-voucher__notch,
    .vcard__cut i {
        width: 12px !important;
        height: 12px !important;
        left: -6px !important;
    }

    .desktop-voucher__notch--top,
    .vcard__cut i:first-child {
        top: -7px !important;
    }

    .desktop-voucher__notch--bottom,
    .vcard__cut i:last-child {
        bottom: -7px !important;
    }

    .desktop-voucher__body,
    .desktop-voucher__content,
    .vcard__body {
        padding: 9px 12px !important;
        gap: 3px !important;
        border-radius: 0 11px 11px 0 !important;
    }

    .desktop-voucher__top-row,
    .vcard__top {
        gap: 6px !important;
        min-width: 0 !important;
    }

    .desktop-voucher__badge,
    .vcard__badge {
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 1.5px 6px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        border-radius: 3px !important;
    }

    .desktop-voucher__code-chip,
    .vcard__code {
        flex-shrink: 0 !important;
        max-width: 60% !important;
        padding: 2px 6px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        gap: 3px !important;
        border-radius: 4px !important;
    }

    .desktop-voucher__code-chip svg,
    .vcard__code svg {
        width: 11px !important;
        height: 11px !important;
    }

    .desktop-voucher__code-chip span,
    .vcard__code span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .desktop-voucher__main-val strong,
    .vcard__value {
        font-size: 14px !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .desktop-voucher__condition-text,
    .vcard__cond {
        font-size: 10px !important;
        line-height: 1.25 !important;
        gap: 2px !important;
    }

    .desktop-voucher__bottom-row,
    .vcard__bottom {
        gap: 6px !important;
        margin-top: auto !important;
        padding-top: 5px !important;
    }

    .desktop-voucher__expiry,
    .vcard__expiry {
        font-size: 9.5px !important;
        white-space: nowrap !important;
        min-width: 0 !important;
        gap: 2px !important;
    }

    .desktop-voucher__expiry svg,
    .vcard__expiry svg {
        width: 11px !important;
        height: 11px !important;
    }

    .desktop-voucher__save-btn,
    .vcard__save {
        min-width: 70px !important;
        height: 26px !important;
        padding: 0 10px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
    }

    @media (max-width: 380px) {
        .desktop-voucher,
        .vcard {
            flex: 0 0 min(262px, calc(100vw - 60px)) !important;
            width: min(262px, calc(100vw - 60px)) !important;
            min-height: 108px !important;
        }
        .desktop-voucher__stub,
        .vcard__stub {
            width: 70px !important;
            padding: 8px 3px !important;
        }
        .desktop-voucher__stub-icon svg,
        .vcard__icon svg {
            width: 19px !important;
            height: 19px !important;
        }
        .desktop-voucher__stub-label,
        .vcard__stub-label {
            font-size: 8.5px !important;
        }
        .desktop-voucher__main-val strong,
        .vcard__value {
            font-size: 13px !important;
        }
    }

    /* ---------------------------------------------------------------
     * 2. Brands strip — ~3.3 logos per screen, auto-scrolling
     * ------------------------------------------------------------- */
    .desktop-brands-strip__viewport {
        margin: 0 -12px !important;
        padding: 4px 12px 6px !important;
        cursor: auto !important;
    }

    .desktop-brands-strip__track {
        gap: 8px !important;
    }

    .desktop-brand-card {
        flex: 0 0 calc((100vw - 64px) / 3.3) !important;
        width: calc((100vw - 64px) / 3.3) !important;
        max-width: 140px !important;
        height: 80px !important;
        padding: 8px 6px 6px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .desktop-brand-card__logo-wrap {
        height: 36px !important;
    }

    .desktop-brand-card__img {
        max-height: 32px !important;
        max-width: 100% !important;
    }

    .desktop-brand-card__text-fallback {
        font-size: 11px !important;
    }

    .desktop-brand-card__name {
        margin-top: 5px !important;
        font-size: 9.5px !important;
        max-width: 100% !important;
    }

    /* ---------------------------------------------------------------
     * 3 + 4 + 5 + 6. Product cards (exclusive deals, best sellers, catalog & brand showcase)
     * ------------------------------------------------------------- */
    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card,
    .product-detail-page .desktop-deal-card {
        padding: 8px 8px 10px !important;
        border-radius: 14px !important;
        border: 1px solid #f1e6e2 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__thumb,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__thumb,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__thumb,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__thumb,
    .product-detail-page .desktop-deal-card__thumb {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 0 8px !important;
        border-radius: 10px !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__img,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__img,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__img,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__img,
    .product-detail-page .desktop-deal-card__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__discount-tag,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__discount-tag,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__discount-tag,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__discount-tag,
    .product-detail-page .desktop-deal-card__discount-tag,
    .desktop-deal-card__discount-tag {
        position: absolute !important;
        top: 4px !important;
        left: 4px !important;
        right: auto !important;
        width: 42px !important;
        height: 27px !important;
        background: url('/client-assets/concung/images/icons/badge-discount-blank.webp') no-repeat center center / contain !important;
        background-image: url('/client-assets/concung/images/icons/badge-discount-blank.png') !important;
        background-image: url('/client-assets/concung/images/icons/badge-discount-blank.webp') !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        color: #ffffff !important;
        font-size: 12.5px !important;
        font-weight: 900 !important;
        font-family: 'Arial Rounded MT Bold', 'Nunito', 'Comfortaa', system-ui, -apple-system, sans-serif !important;
        letter-spacing: -0.03em !important;
        padding: 0 0 1px 1px !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 3 !important;
        line-height: 1 !important;
        box-shadow: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        text-shadow: 0 1.5px 2px rgba(185, 28, 28, 0.85), 0 0 1px rgba(0, 0, 0, 0.4) !important;
        filter: drop-shadow(0 2px 4px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.35)) !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__body,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__body,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__body,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__body,
    .product-detail-page .desktop-deal-card__body {
        padding: 0 2px !important;
        flex: 1 1 auto !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__brand,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__brand,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__brand,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__brand,
    .product-detail-page .desktop-deal-card__brand {
        font-size: 9.5px !important;
        margin: 0 0 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__title,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__title,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__title,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__title,
    .product-detail-page .desktop-deal-card__title,
    .desktop-deal-card__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        height: 31px !important;
        min-height: 31px !important;
        max-height: 31px !important;
        margin: 0 0 5px !important;
        color: #0f172a !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__rating-row,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__rating-row,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__rating-row,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__rating-row,
    .product-detail-page .desktop-deal-card__rating-row {
        gap: 4px !important;
        margin: 0 0 4px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__stars,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__stars,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__stars,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__stars,
    .product-detail-page .desktop-deal-card__stars {
        font-size: 10px !important;
        letter-spacing: 0 !important;
        flex-shrink: 0 !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__sold,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__sold,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__sold,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__sold,
    .product-detail-page .desktop-deal-card__sold {
        font-size: 9.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__price-row,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__price-row,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__price-row,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__price-row,
    .product-detail-page .desktop-deal-card__price-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 0 5px !important;
        margin-top: auto !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__current-price,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__current-price,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__current-price,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__current-price,
    .product-detail-page .desktop-deal-card__current-price {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .desktop-home-reference .desktop-exclusive-deals .desktop-deal-card__old-price,
    .desktop-home-reference .desktop-best-sellers .desktop-deal-card__old-price,
    .desktop-home-reference .desktop-catalog-section .desktop-deal-card__old-price,
    .desktop-home-reference .desktop-brand-showcase .desktop-deal-card__old-price,
    .product-detail-page .desktop-deal-card__old-price {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__dots,
    .desktop-home-reference .desktop-best-sellers__dots {
        margin-top: 12px !important;
        gap: 5px !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__dots button,
    .desktop-home-reference .desktop-best-sellers__dots button {
        width: 6px !important;
        height: 6px !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__dots button.active,
    .desktop-home-reference .desktop-best-sellers__dots button.active {
        width: 18px !important;
    }

    /* ---------------------------------------------------------------
     * 3. Exclusive deals — JS transform carousel (widths set by JS)
     * ------------------------------------------------------------- */
    .desktop-home-reference .desktop-exclusive-deals__carousel {
        position: relative !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__viewport {
        margin: 0 !important;
        padding: 2px 0 4px !important;
        overflow: hidden !important;
        touch-action: pan-y !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__track {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: max-content !important;
    }

    /* ---------------------------------------------------------------
     * 4. Best sellers — category tabs + native swipe with snap
     * ------------------------------------------------------------- */
    .desktop-home-reference .desktop-best-sellers__tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        margin: 0 -12px 10px !important;
        padding: 0 12px 2px !important;
        width: auto !important;
        scroll-padding: 0 12px !important;
    }

    .desktop-home-reference .desktop-best-sellers__tabs::-webkit-scrollbar {
        display: none !important;
    }

    .desktop-home-reference .desktop-best-sellers__tab {
        flex: 0 0 auto !important;
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }

    .desktop-home-reference .desktop-best-sellers__viewport {
        margin: 0 !important;
        padding: 2px 0 4px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .desktop-home-reference .desktop-best-sellers__viewport::-webkit-scrollbar {
        display: none !important;
    }

    .desktop-home-reference .desktop-best-sellers__track {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: auto !important;
        transform: none !important;
    }

    .desktop-home-reference .desktop-best-sellers__track > .desktop-best-sellers__card,
    .product-detail-page #cc-similar-prod-track > .desktop-deal-card {
        flex: 0 0 calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start !important;
    }

    .product-detail-page #cc-similar-prod-track {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 2px 14px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .product-detail-page #cc-similar-prod-track::-webkit-scrollbar {
        display: none !important;
    }

    .product-detail-page .cc-mn-nav-btn {
        display: none !important;
    }

    /* Hover effects stick after a tap on touch screens */
    .desktop-voucher:hover,
    .desktop-brand-card:hover,
    .desktop-home-reference .desktop-deal-card:hover,
    .product-detail-page .desktop-deal-card:hover,
    .desktop-deal-card:hover {
        transform: none !important;
    }

    .desktop-brand-card:hover .desktop-brand-card__img,
    .desktop-home-reference .desktop-deal-card:hover .desktop-deal-card__discount-tag,
    .product-detail-page .desktop-deal-card:hover .desktop-deal-card__discount-tag,
    .desktop-deal-card:hover .desktop-deal-card__discount-tag {
        transform: none !important;
    }

    /* Prevent sticky red/orange hover/focus/active state on mobile cards & carousels */
    .desktop-deal-card:hover .desktop-deal-card__title,
    .desktop-deal-card:focus .desktop-deal-card__title,
    .desktop-deal-card:active .desktop-deal-card__title,
    .desktop-deal-card:focus-visible .desktop-deal-card__title,
    .desktop-deal-card__title,
    .desktop-home-reference .desktop-deal-card:hover .desktop-deal-card__title,
    .desktop-home-reference .desktop-deal-card:focus .desktop-deal-card__title,
    .desktop-home-reference .desktop-deal-card:active .desktop-deal-card__title,
    .product-detail-page .desktop-deal-card:hover .desktop-deal-card__title,
    .product-detail-page .desktop-deal-card:focus .desktop-deal-card__title,
    .product-detail-page .desktop-deal-card:active .desktop-deal-card__title,
    .cc-similar-card:hover .desktop-deal-card__title,
    .cc-similar-card:focus .desktop-deal-card__title,
    .cc-similar-card:active .desktop-deal-card__title {
        color: #0f172a !important;
    }

    /* ---------------------------------------------------------------
     * Section 5: Catalog Section ("SẢN PHẨM MỚI CẬP NHẬT")
     * ------------------------------------------------------------- */
    .desktop-catalog-section {
        margin-top: 0 !important;
        padding: 14px 10px 16px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(var(--brand-primary-rgb, 238, 77, 45), 0.16) !important;
        box-shadow: 0 2px 12px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.05) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
    }

    .desktop-catalog-section > header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #f3ece9 !important;
    }

    .desktop-catalog-section h2 {
        font-size: 14.5px !important;
        font-weight: 800 !important;
        color: #1e293b !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
    }

    .desktop-catalog-section header a {
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: var(--brand-primary, #EE4D2D) !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        padding: 4px 10px !important;
        border-radius: 999px !important;
        background: var(--brand-primary-light, #FEF6F5) !important;
        border: 1px solid var(--brand-border, #FCD8D0) !important;
    }

    .desktop-catalog-section__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .desktop-catalog-product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .desktop-featured-product > a:first-child > b {
        position: absolute !important;
        top: 6px !important;
        left: 6px !important;
        right: auto !important;
        bottom: auto !important;
        background: var(--brand-primary, #EE4D2D) !important;
        color: #FFFFFF !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        line-height: 1.2 !important;
        z-index: 5 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
        letter-spacing: 0 !important;
        display: inline-block !important;
    }

    /* ---------------------------------------------------------------
     * Section 6: Brand Showcase
     * ------------------------------------------------------------- */
    .desktop-brand-showcase {
        margin-top: 0 !important;
        padding: 14px 10px 16px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(var(--brand-primary-rgb, 238, 77, 45), 0.16) !important;
        box-shadow: 0 2px 12px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.05) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
    }

    .desktop-brand-showcase__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .desktop-brand-showcase__card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* ---------------------------------------------------------------
     * Section 7: News Section ("Tin tức & kinh nghiệm mẹ bé")
     * ------------------------------------------------------------- */
    .desktop-news-section {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding: 14px 12px 18px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(var(--brand-primary-rgb, 238, 77, 45), 0.16) !important;
        box-shadow: 0 2px 12px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.05) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
    }

    .desktop-news-section__header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin: 0 0 12px !important;
        padding: 0 0 10px !important;
        border-bottom: 1px solid #f3ece9 !important;
    }

    .desktop-news-section__heading {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .desktop-news-section__title {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #1e293b !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.01em !important;
    }

    .desktop-news-section__title-accent {
        color: var(--brand-primary, #EE4D2D) !important;
    }

    .desktop-news-section__subtitle {
        font-size: 11px !important;
        color: #64748b !important;
        margin: 0 !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .desktop-news-section__more {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: var(--brand-primary, #EE4D2D) !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        padding: 4px 10px !important;
        border-radius: 999px !important;
        background: var(--brand-primary-light, #FEF6F5) !important;
        border: 1px solid var(--brand-border, #FCD8D0) !important;
    }

    .desktop-news-section__more-label-desktop {
        display: none !important;
    }

    .desktop-news-section__more-label-mobile {
        display: inline !important;
    }

    .desktop-news-section .news-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .desktop-news-section .news-card {
        background: #ffffff !important;
        border-radius: 14px !important;
        border: 1px solid #edf0e9 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        animation: none !important;
    }

    .desktop-news-section .news-card__media {
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        background: #f8fafc !important;
    }

    .desktop-news-section .news-card__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .desktop-news-section .news-card__badge {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        padding: 3px 10px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(4px) !important;
        color: var(--brand-primary, #EE4D2D) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
        z-index: 2 !important;
    }

    .desktop-news-section .news-card__body {
        padding: 12px 14px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        box-sizing: border-box !important;
    }

    .desktop-news-section .news-card__title {
        font-size: 14.5px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin: 0 0 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .desktop-news-section .news-card__title a {
        color: #0f172a !important;
        text-decoration: none !important;
    }

    .desktop-news-section .news-card__excerpt {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin: 0 0 10px !important;
        color: #64748b !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .desktop-news-section .news-card__meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 10px !important;
        margin-top: auto !important;
        border-top: 1px solid #f1f5f9 !important;
        font-size: 11px !important;
        color: #94a3b8 !important;
        gap: 8px !important;
        line-height: 1 !important;
    }

    .desktop-news-section .news-card__meta-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #94a3b8 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .desktop-news-section .news-card__more {
        color: var(--brand-primary, #EE4D2D) !important;
        font-weight: 700 !important;
        font-size: 11.5px !important;
        margin-left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }
}

/* Tablet: 3 product cards per view (gap must match the JS: 12px) */
@media (min-width: 640px) and (max-width: 991.98px) {
    .desktop-home-reference .desktop-exclusive-deals__track,
    .desktop-home-reference .desktop-best-sellers__track {
        gap: 12px !important;
    }

    .desktop-home-reference .desktop-best-sellers__track > .desktop-best-sellers__card {
        flex: 0 0 calc((100% - 24px) / 3) !important;
        width: calc((100% - 24px) / 3) !important;
    }

    .desktop-voucher {
        flex: 0 0 320px !important;
        width: 320px !important;
    }

    .desktop-brand-card {
        flex: 0 0 120px !important;
        width: 120px !important;
    }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
    .desktop-voucher-strip h2,
    .desktop-brands-strip h2,
    .desktop-home-reference .desktop-exclusive-deals h2,
    .desktop-home-reference .desktop-best-sellers h2 {
        font-size: 14px !important;
    }

    .desktop-home-reference .desktop-exclusive-deals__badge-tag,
    .desktop-home-reference .desktop-best-sellers__badge-tag {
        display: none !important;
    }

    .desktop-voucher__stub {
        width: 60px !important;
    }
}

/* ==========================================================================
 * Mobile Wireframe Category & Filter Styling (< 992px)
 * ========================================================================== */
.cc-m-subcat-scroll-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 8px 8px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cc-m-subcat-scroll-chips::-webkit-scrollbar {
    display: none;
}

.cc-m-chip {
    border-radius: 8px !important;
}

.cc-m-subchip {
    flex-shrink: 0;
    padding: 5px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cc-m-subchip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.cc-m-subchip.active {
    background: #ffede8 !important;
    border-color: var(--brand-primary, #EE4D2D) !important;
    color: var(--brand-primary, #EE4D2D) !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.18) !important;
}

.cc-m-filter-bar-header {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
}

#cc-m-filtered-prods {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 24px;
}

#cc-m-filtered-prods .desktop-deal-card {
    padding: 8px 8px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #f1e6e2 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    min-width: 0 !important;
}

#cc-m-filtered-prods .desktop-deal-card__thumb {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 0 8px !important;
    border-radius: 10px !important;
}

#cc-m-filtered-prods .desktop-deal-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

#cc-m-filtered-prods .desktop-deal-card__discount-tag {
    top: 4px !important;
    left: 4px !important;
    width: 38px !important;
    height: 24px !important;
    font-size: 11px !important;
    line-height: 24px !important;
}

#cc-m-filtered-prods .desktop-deal-card__title {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    margin: 0 0 4px !important;
}

#cc-m-filtered-prods .desktop-deal-card__current-price {
    font-size: 13px !important;
    font-weight: 800 !important;
}

/* ==========================================================================
 * Mobile Events/News Cards & Pagination Styling (< 992px)
 * ========================================================================== */
.cc-m-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-m-event-item {
    transition: opacity 0.25s ease;
}

/* Hide ugly truncated floating badge on compact card thumbnail */
.news-card--compact .news-card__badge {
    display: none !important;
}

/* Category row & pill inside compact card body */
.news-card__cat-row {
    margin-bottom: 5px;
    line-height: 1;
}

.news-card__cat-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary, #EE4D2D);
    background: #FFF0ED;
    border: 1px solid rgba(var(--brand-primary-rgb, 238, 77, 45), 0.18);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* Compact news card styling */
.news-card--compact {
    display: flex !important;
    flex-direction: row !important;
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    gap: 12px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    text-decoration: none !important;
}

.news-card--compact:hover,
.news-card--compact:active {
    border-color: rgba(var(--brand-primary-rgb, 238, 77, 45), 0.3) !important;
    box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.12) !important;
    transform: translateY(-2px) !important;
}

.news-card--compact .news-card__media {
    flex: 0 0 108px !important;
    width: 108px !important;
    height: 108px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    margin: 0 !important;
}

.news-card--compact .news-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease !important;
}

.news-card--compact:hover .news-card__img {
    transform: scale(1.04) !important;
}

.news-card--compact .news-card__body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.news-card--compact .news-card__title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #1e293b !important;
    margin: 0 0 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.news-card--compact .news-card__title a {
    color: #1e293b !important;
    text-decoration: none !important;
}

.news-card--compact .news-card__title a:hover {
    color: var(--brand-primary, #EE4D2D) !important;
}

.news-card--compact .news-card__excerpt {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    margin: 0 0 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.news-card--compact .news-card__meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 6px !important;
    margin-top: auto !important;
    border-top: 1px dashed #f1f5f9 !important;
}

.news-card--compact .news-card__meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.news-card--compact .news-card__more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--brand-primary, #EE4D2D) !important;
    text-decoration: none !important;
}

.news-card--compact .news-card__more svg {
    transition: transform 0.2s ease !important;
}

.news-card--compact:hover .news-card__more svg {
    transform: translateX(3px) !important;
}

/* News Pagination Bar (< 992px) */
.cc-m-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 10px;
}

.cc-m-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-m-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cc-m-page-btn:hover:not(.active) {
    background: #f8fafc;
    border-color: #94a3b8;
}

.cc-m-page-btn.active {
    background: var(--brand-primary, #EE4D2D) !important;
    border-color: var(--brand-primary, #EE4D2D) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.3) !important;
}

.cc-m-page-nav-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cc-m-page-nav-btn:hover:not(:disabled) {
    border-color: var(--brand-primary, #EE4D2D);
    color: var(--brand-primary, #EE4D2D);
    background: #fff5f2;
}

.cc-m-page-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* ==========================================================================
 * 6-Item Mobile Bottom App Navigation Bar (Home, Category, News, Policy, Contact, Cart)
 * Responsive, pixel-perfect, clean typography (Be Vietnam Pro), robust safe-area support
 * ========================================================================== */
@media (min-width: 992px) {
    .cc-mobile-bottom-bar,
    #mobileBottomBar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 991.98px) {
    .cc-mobile-bottom-bar {
        display: grid !important;
        grid-template-columns: repeat(8, 1fr) !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 58px !important;
        padding: 3px 2px calc(3px + env(safe-area-inset-bottom, 0px)) !important;
        background: #ffffff !important;
        border-top: 1px solid #eef2f6 !important;
        box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.07) !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .cc-bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 2px 1px !important;
        gap: 2px !important;
        color: #64748b !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        box-sizing: border-box !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: color 0.15s ease !important;
    }

    .cc-bottom-nav-item svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        flex-shrink: 0 !important;
        stroke: #64748b !important;
        stroke-width: 2 !important;
        display: block !important;
        margin: 0 auto !important;
        transition: stroke 0.15s ease, transform 0.15s ease !important;
    }

    .cc-bottom-nav-item:active svg {
        transform: scale(0.92) !important;
    }

    .cc-bottom-nav-item > span:not(.cc-bottom-cart-badge):not(.cc-cart-count) {
        display: block !important;
        font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 9.5px !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        letter-spacing: -0.25px !important;
        text-align: center !important;
        color: #64748b !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cc-bottom-nav-item.active {
        color: var(--brand-primary, #EE4D2D) !important;
    }

    .cc-bottom-nav-item.active svg {
        stroke: var(--brand-primary, #EE4D2D) !important;
    }

    .cc-bottom-nav-item.active > span:not(.cc-bottom-cart-badge):not(.cc-cart-count) {
        color: var(--brand-primary, #EE4D2D) !important;
        font-weight: 700 !important;
    }

    .cc-bottom-nav-item .cc-bottom-cart-badge,
    .cc-bottom-nav-item span.cc-bottom-cart-badge,
    .cc-bottom-cart-badge {
        position: absolute !important;
        top: -5px !important;
        right: -9px !important;
        background: var(--brand-primary, #EE4D2D) !important;
        color: #ffffff !important;
        font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        min-width: 15px !important;
        height: 15px !important;
        line-height: 15px !important;
        border-radius: 999px !important;
        border: 1.5px solid #ffffff !important;
        text-align: center !important;
        padding: 0 3px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 1px 4px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.4) !important;
        z-index: 2 !important;
    }

    /* Clear bottom padding so fixed bottom bar never obstructs content.
     * Only body reserves the space — adding it to main/page wrappers doubles the gap. */
    body,
    body.blue-skin {
        padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #main-content.av-luxe-home,
    main#main-content,
    .main-wrapper {
        padding-bottom: 0 !important;
    }

    .desktop-home-news-wrap {
        margin-bottom: 0 !important;
    }

    .desktop-news-section {
        margin-bottom: 8px !important;
    }
}

/* ---------------------------------------------------------------
 * Lưới "Thương hiệu" mobile: chỉ hiện logo, logo to gần kín ô (yêu cầu khách 2026-10).
 * Tên thương hiệu ẩn khỏi mắt nhưng vẫn cho trình đọc màn hình; ảnh lỗi → tên hiện lại.
 * ------------------------------------------------------------- */
.cc-m-brand-grid .cc-m-brand-card {
    height: 64px !important;
    padding: 6px 8px !important;
}
.cc-m-brand-grid .cc-m-brand-card--logo .cc-m-brand-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 52px !important;
    object-fit: contain !important;
}
.cc-m-brand-grid .cc-m-brand-card--logo .cc-m-brand-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}
/* Ô logo đang chọn: nền trắng + viền cam đậm (nền cam đặc làm logo khó nhìn) */
.cc-m-brand-grid .cc-m-brand-card--logo.active {
    background: #fff6f3 !important;
    border: 2px solid var(--brand-primary, #EE4D2D) !important;
    box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.25) !important;
}


/* Nút độ tuổi (tối đa 4: Tất cả · Sơ sinh · Từ 6 tháng · Từ 12 tháng) — luôn một dòng */
.cc-m-age-pills {
    gap: 6px !important;
}
.cc-m-age-pills .cc-m-age-pill {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}
@media (max-width: 360px) {
    .cc-m-age-pills .cc-m-age-pill {
        padding: 9px 2px !important;
        font-size: 12px !important;
    }
}
