/* ==========================================================================
   EC_RESPONSIVE.CSS - HỆ THỐNG GIAO DIỆN CO GIÃN ĐA THIẾT BỊ (RESPONSIVE)
   GACE STORE E-COMMERCE CYBERPUNK TECH
   Áp dụng từ màn hình lớn (4K/Desktop) đến màn hình nhỏ (Tablet/Mobile)
   ========================================================================== */

/* ==========================================================================
   1. CẤU HÌNH CỐT LÕI & CHỐNG TRÀN TOÀN TRANG (GLOBAL RESET)
   ========================================================================== */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. DESKTOP TIÊU CHUẨN ĐẾN MÀN HÌNH LỚN (>= 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .cyber-container {
        max-width: 1240px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .cyber-megamenu {
        width: 820px;
    }
}

/* ==========================================================================
   3. LAPTOP & MÀN HÌNH VỪA (992px - 1199px)
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cyber-container {
        max-width: 960px;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Header & Search */
    .cyber-search-pill {
        max-width: 440px;
    }

    /* Mega Menu */
    .cyber-megamenu {
        width: 720px;
        left: -40px;
    }

    /* Shop Grid */
    .cyber-product-title a {
        font-size: 13px;
    }

    .cyber-product-price {
        font-size: 15px;
    }
}

/* Định hình Desktop Header: Logo bên trái, Search ở giữa, Actions bên phải */
@media (min-width: 992px) {
    .cyber-header-mobile-menu {
        display: none !important;
    }

    .cyber-logo-area {
        order: 1 !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .cyber-search-box-wrap {
        order: 2 !important;
        flex: 1 1 auto !important;
        max-width: 580px !important;
        margin: 0 2rem !important;
    }

    .cyber-header-actions {
        order: 3 !important;
        flex: 0 0 auto !important;
    }

    .cyber-nav-bar {
        display: block !important;
    }
}

/* ==========================================================================
   4. MÁY TÍNH BẢNG & DI ĐỘNG (TABLET / MOBILE: < 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .cyber-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* --- TOPBAR MARQUEE (CHỮ CHẠY TRÊN MOBILE & TABLET) --- */
    .cyber-topbar {
        font-size: 11.5px;
        padding-top: 6px;
        padding-bottom: 6px;
        overflow: hidden;
    }

    .cyber-topbar-badge {
        flex-shrink: 0;
        z-index: 2;
        position: relative;
    }

    .cyber-topbar-marquee-wrap {
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
        display: flex;
        align-items: center;
        mask-image: linear-gradient(to right, transparent, black 12px, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black 95%, transparent);
    }

    .cyber-topbar-text {
        display: inline-block;
        white-space: nowrap;
        padding-left: 100%;
        animation: cyberTopbarMarquee 16s linear infinite;
        will-change: transform;
        color: #0f172a;
        font-size: 0.83rem;
    }

    .cyber-topbar:hover .cyber-topbar-text,
    .cyber-topbar:active .cyber-topbar-text {
        animation-play-state: paused;
    }

    @keyframes cyberTopbarMarquee {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }

    .cyber-topbar-commits {
        display: none !important; /* Ẩn bớt cam kết phụ trên tablet */
    }

    /* --- HEADER CHÍNH CYBERPUNK TRÊN MOBILE & TABLET (< 992px) --- */
    .cyber-header {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .cyber-header-main-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        row-gap: 8px !important;
    }

    /* HÀNG 1 - GÓC TRÁI: Nút mở Menu Slide Drawer */
    .cyber-header-mobile-menu {
        order: 1 !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .cyber-mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        font-size: 17px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    }

    .cyber-mobile-menu-btn:active,
    .cyber-mobile-menu-btn:hover {
        background: #fff7ed !important;
        color: #ea580c !important;
        border-color: #fdba74 !important;
        transform: scale(0.96);
    }

    /* HÀNG 1 - Ở GIỮA: Logo Website căn giữa tuyệt đối */
    .cyber-logo-area {
        order: 2 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .cyber-logo-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        text-decoration: none !important;
    }

    .cyber-logo-link img {
        max-height: 38px !important;
        height: 34px !important;
    }

    .cyber-brand-title {
        font-size: 17px !important;
    }

    /* HÀNG 1 - GÓC PHẢI: Giỏ hàng (Hồ sơ đã đưa vào Slide Drawer nên ẩn ở đây) */
    .cyber-header-actions {
        order: 3 !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .cyber-user-desktop-wrap,
    .cyber-action-divider {
        display: none !important;
    }

    .cyber-cart-wrapper {
        width: 38px !important;
        height: 38px !important;
    }

    /* HÀNG 2: Thanh tìm kiếm (Full width 100%, độc lập một hàng) */
    .cyber-search-box-wrap {
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 2px 0 !important;
    }

    .cyber-search-pill {
        height: 40px !important;
        width: 100% !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 20px !important;
    }

    /* --- THANH ĐIỀU HƯỚNG NAVBAR CŨ: ẨN HOÀN TOÀN TRÊN MOBILE (< 992px) --- */
    .cyber-nav-bar {
        display: none !important;
    }

    /* --- MEGA MENU TRÊN TABLET --- */
    .cyber-megamenu-parent.is-open .cyber-megamenu {
        display: block !important;
    }

    .cyber-megamenu {
        position: fixed !important;
        top: auto !important;
        left: 14px !important;
        right: 14px !important;
        width: calc(100vw - 28px) !important;
        max-width: 720px !important;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 12px;
    }

    /* --- TRANG SHOP TRÊN TABLET --- */
    .cyber-shop-sidebar {
        margin-bottom: 24px;
    }

    /* --- TRANG CHI TIẾT SẢN PHẨM --- */
    .cyber-detail-gallery-wrap {
        margin-bottom: 24px;
    }

    /* --- FOOTER TRÊN TABLET --- */
    .cyber-footer .col-lg-4,
    .cyber-footer .col-lg-2,
    .cyber-footer .col-lg-3 {
        width: 50% !important;
        margin-bottom: 24px;
    }
}

/* ==========================================================================
   5. ĐIỆN THOẠI DI ĐỘNG (MOBILE: < 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    /* --- BREADCRUMB --- */
    .breadcrumb {
        font-size: 12px !important;
        padding: 8px 12px !important;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap !important;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    /* --- HEADER CHÍNH --- */
    .cyber-brand-title {
        font-size: 16px !important;
    }

    .cyber-logo-icon svg {
        width: 30px !important;
        height: 30px !important;
    }

    /* Thanh tìm kiếm */
    .cyber-search-pill {
        height: 40px !important;
        border-radius: 20px !important;
    }

    .btn-cat-select {
        font-size: 11.5px !important;
        padding-left: 8px !important;
        padding-right: 6px !important;
        max-width: 105px !important;
    }

    .cyber-search-input {
        font-size: 12.5px !important;
        padding-left: 8px !important;
    }

    .cyber-search-submit {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        margin-right: 4px !important;
    }

    /* Live Search Results Dropdown: Nằm ngay dưới thanh tìm kiếm ở hàng 2, full width */
    .cyber-search-dropdown {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 72vh !important;
        border-radius: 14px !important;
        box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28) !important;
        z-index: 1065 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .cyber-search-item {
        padding: 9px 12px !important;
        gap: 10px !important;
    }

    .cyber-search-item-thumb {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    .cyber-search-item-title {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .cyber-search-item-meta {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-top: 3px !important;
    }

    .cyber-search-item-price {
        font-size: 13.5px !important;
        font-weight: 700 !important;
    }

    .cyber-search-item-oldprice {
        font-size: 11px !important;
    }

    /* --- MENU VÀ MEGAMENU TRÊN MÀN HÌNH NHỎ (ẨN MEGAMENU HOVER ĐÈ, THAY BẰNG SLIDE DRAWER) --- */
    .cyber-megamenu-parent .cyber-megamenu,
    .cyber-megamenu-parent.is-open .cyber-megamenu {
        display: none !important; /* Tuyệt đối không xổ megamenu đè lên màn hình điện thoại */
    }

    /* Thanh điều hướng hàng dưới trên mobile: Giãn cách thoáng mắt */
    .cyber-nav-list {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 4px 0 !important;
    }

    .cyber-nav-link {
        font-size: 13px !important;
        padding: 6px 10px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }

    .cyber-nav-link i {
        margin-right: 6px !important;
    }

    /* Nút mở Menu Slide Drawer ở hàng điều hướng dưới: Dạng Pill Badge Cyberpunk */
    .cyber-mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 33px;
        padding: 4px 12px !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
        border: 1px solid rgba(255, 122, 26, 0.35) !important;
        color: #ea580c !important;
        font-weight: 700 !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 6px rgba(234, 88, 12, 0.12) !important;
    }

    .cyber-mobile-nav-toggle i {
        font-size: 13px !important;
        margin-right: 6px !important;
    }

    .cyber-mobile-nav-toggle:hover,
    .cyber-mobile-nav-toggle:active {
        background: #fed7aa !important;
        color: #c2410c !important;
        transform: translateY(-1px);
    }

    /* --- SLIDE OFFCANVAS DRAWER CHO MENU & DANH MỤC TRÊN MOBILE --- */
    .cyber-mobile-nav-drawer {
        width: 320px !important;
        max-width: 86vw !important;
        background-color: #ffffff !important;
        border-right: 1px solid #f1f5f9 !important;
        box-shadow: 12px 0 35px rgba(15, 23, 42, 0.12) !important;
    }

    .cyber-mobile-nav-drawer .offcanvas-header {
        background: #ffffff !important;
        padding: 14px 18px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .cyber-mobile-nav-drawer .offcanvas-body {
        background-color: #ffffff !important;
    }

    /* --- KHỐI HỒ SƠ / TÀI KHOẢN NGƯỜI DÙNG TRONG SLIDE DRAWER --- */
    .cyber-mobile-user-section {
        background: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .cyber-mobile-avatar {
        box-shadow: 0 3px 10px rgba(234, 88, 12, 0.28) !important;
    }

    .cyber-mobile-user-section .btn-light {
        background-color: #f8fafc !important;
        border-color: #edf2f7 !important;
        color: #1e293b !important;
        transition: all 0.2s ease !important;
    }

    .cyber-mobile-user-section .btn-light:hover,
    .cyber-mobile-user-section .btn-light:active {
        background-color: #fff7ed !important;
        border-color: #fdba74 !important;
        color: #ea580c !important;
    }

    .cyber-mobile-user-section .btn-warning {
        margin-top: 14px !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-radius: 10px !important;
    }

    .cyber-mobile-user-section .btn-warning i {
        margin-right: 8px !important;
        font-size: 15px !important;
    }

    /* --- KHỐI LINK ĐIỀU HƯỚNG CHÍNH (ĐỒNG BỘ NỀN TRẮNG SẠCH SẼ, HIỆN ĐẠI) --- */
    .cyber-mobile-primary-links {
        background: #ffffff !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .cyber-mobile-main-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
        background: #f8fafc !important;
        border: 1px solid #edf2f7 !important;
        border-radius: 12px !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .cyber-mobile-main-link:hover,
    .cyber-mobile-main-link:active {
        background: #fff7ed !important;
        border-color: #fdba74 !important;
        transform: translateX(2px) !important;
    }

    .cyber-icon-badge {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 9px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13.5px !important;
    }

    .cyber-badge-home {
        background: #fef3c7 !important;
        color: #d97706 !important;
    }

    .cyber-badge-shop {
        background: #e0f2fe !important;
        color: #0284c7 !important;
    }

    .cyber-link-text {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        transition: color 0.15s ease !important;
    }

    .cyber-mobile-main-link:hover .cyber-link-text,
    .cyber-mobile-main-link:active .cyber-link-text {
        color: #ea580c !important;
    }

    .cyber-link-arrow {
        font-size: 11px !important;
        color: #94a3b8 !important;
        transition: all 0.15s ease !important;
    }

    .cyber-mobile-main-link:hover .cyber-link-arrow,
    .cyber-mobile-main-link:active .cyber-link-arrow {
        color: #ea580c !important;
        transform: translateX(2px) !important;
    }

    /* Tag Khuyến mãi HOT & Hàng mới về: Màu pastel cao cấp đồng bộ, icon cách chữ rõ ràng */
    .cyber-mobile-tag-hot {
        height: 40px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        background: #fff1f2 !important;
        border: 1px solid #fecdd3 !important;
        color: #e11d48 !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        transition: all 0.2s ease !important;
    }

    .cyber-mobile-tag-hot i {
        margin-right: 8px !important;
        font-size: 13.5px !important;
    }

    .cyber-mobile-tag-hot:hover,
    .cyber-mobile-tag-hot:active {
        background: #ffe4e6 !important;
        border-color: #fda4af !important;
        color: #be123c !important;
    }

    .cyber-mobile-tag-new {
        height: 40px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        background: #fffbeb !important;
        border: 1px solid #fde68a !important;
        color: #b45309 !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        transition: all 0.2s ease !important;
    }

    .cyber-mobile-tag-new i {
        margin-right: 8px !important;
        font-size: 13.5px !important;
    }

    .cyber-mobile-tag-new:hover,
    .cyber-mobile-tag-new:active {
        background: #fef3c7 !important;
        border-color: #fcd34d !important;
        color: #92400e !important;
    }

    /* Chân Drawer & Nút Hotline đồng bộ */
    .cyber-mobile-drawer-footer {
        background: #ffffff !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .cyber-mobile-hotline-btn {
        background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
        border: 1px solid #fdba74 !important;
        color: #c2410c !important;
        box-shadow: 0 2px 6px rgba(234, 88, 12, 0.12) !important;
        transition: all 0.2s ease !important;
    }

    .cyber-mobile-hotline-btn:hover,
    .cyber-mobile-hotline-btn:active {
        background: #fed7aa !important;
        border-color: #ea580c !important;
        color: #9a3412 !important;
        transform: translateY(-1px) !important;
    }

    /* Accordion Header: Chỉnh màu Cyberpunk, icon cách xa chữ rõ ràng, nền trắng đồng bộ */
    .cyber-mobile-nav-drawer .accordion-button {
        padding: 14px 18px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
        transition: all 0.2s ease !important;
    }

    .cyber-mobile-nav-drawer .accordion-button i {
        font-size: 16px !important;
        width: 22px !important;
        text-align: center !important;
        margin-right: 14px !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }

    .cyber-mobile-nav-drawer .accordion-button:not(.collapsed) {
        background-color: #ffffff !important;
        color: #ea580c !important;
        box-shadow: none !important;
        border-bottom: 1px solid #f8fafc !important;
    }

    /* Lưới các hãng sản xuất: Bo tròn đẹp, không bị ép dính */
    .cyber-mobile-nav-drawer .accordion-body .col-6 a {
        padding: 10px 12px !important;
        border-radius: 10px !important;
        border: 1px solid #edf2f7 !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: 44px !important;
        text-decoration: none !important;
        color: #334155 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        transition: all 0.18s ease !important;
    }

    .cyber-mobile-nav-drawer .accordion-body .col-6 a span {
        font-weight: 600 !important;
        font-size: 12px !important;
    }

    .cyber-mobile-nav-drawer .accordion-body .col-6 a:hover,
    .cyber-mobile-nav-drawer .accordion-body .col-6 a:active {
        border-color: #fdba74 !important;
        background: #fff7ed !important;
        color: #ea580c !important;
    }

    /* Hình thức mua sắm: Thiết kế có Box Icon riêng biệt, không dính sát chữ */
    .cyber-shopping-type-item {
        display: flex !important;
        align-items: center !important;
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid #edf2f7 !important;
        text-decoration: none !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .cyber-shopping-type-item:hover,
    .cyber-shopping-type-item:active {
        background: #fff7ed !important;
        border-color: #fdba74 !important;
        transform: translateX(2px) !important;
    }

    .cyber-type-icon-box {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 14px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .cyber-box-truck {
        background: #e0f2fe !important;
        color: #0284c7 !important;
    }

    .cyber-box-key {
        background: #fef3c7 !important;
        color: #d97706 !important;
    }

    .cyber-box-fire {
        background: #fee2e2 !important;
        color: #dc2626 !important;
    }

    .cyber-type-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 2px !important;
        line-height: 1.25 !important;
        transition: color 0.15s ease !important;
    }

    .cyber-shopping-type-item:hover .cyber-type-title,
    .cyber-shopping-type-item:active .cyber-type-title {
        color: #ea580c !important;
    }

    .cyber-type-desc {
        font-size: 11.5px !important;
        color: #64748b !important;
        line-height: 1.3 !important;
    }

    /* Danh mục sản phẩm trong Drawer */
    .cyber-mobile-nav-drawer .list-group-item {
        padding: 10px 14px !important;
        margin-bottom: 4px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        color: #334155 !important;
        transition: all 0.15s ease !important;
    }

    .cyber-mobile-nav-drawer .list-group-item:hover,
    .cyber-mobile-nav-drawer .list-group-item:active {
        background: #fff7ed !important;
        color: #ea580c !important;
    }

    /* --- CART SLIDE (CART DRAWER TRƯỢT PHẢI) TRÊN MOBILE --- */
    .ec-cart-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .ec-cart-drawer .offcanvas-header {
        padding: 12px 14px !important;
    }

    .ec-cart-drawer .offcanvas-body {
        padding: 0 !important;
    }

    .ec-cart-drawer-header-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .ec-drawer-freeship-card {
        padding: 10px 14px !important;
    }

    #ecDrawerItemsWrapper {
        padding: 12px 14px !important;
    }

    .ec-drawer-item {
        padding: 10px !important;
        gap: 10px !important;
    }

    .ec-drawer-item-thumb {
        width: 60px !important;
        height: 60px !important;
    }

    .ec-drawer-item-title {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }

    .ec-drawer-item-price {
        font-size: 13.5px !important;
    }

    .ec-drawer-footer {
        padding: 14px !important;
    }

    .ec-drawer-checkout-btn {
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* MỤC 5: ecDrawerTrustBox NẾU MÀN HÌNH NHỎ MOBILE THÌ ẨN ĐI Ở CART SLIDE */
    #ecDrawerTrustBox {
        display: none !important;
    }

    /* --- TRANG CỬA HÀNG (SHOP: /EC/SHOP) TRÊN MOBILE --- */
    .cyber-shop-toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .cyber-shop-toolbar-sort {
        width: 100% !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cyber-shop-toolbar-sort select {
        flex-grow: 1;
        max-width: 200px;
    }

    /* Grid 2 cột sản phẩm đều tăm tắp */
    .cyber-product-card {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .cyber-product-img-wrap {
        aspect-ratio: 1/1 !important;
        margin-bottom: 8px !important;
    }

    .cyber-product-cat {
        font-size: 10px !important;
    }

    .cyber-view-badge {
        font-size: 9.5px !important;
    }

    .cyber-product-title a {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        height: 34px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .cyber-product-price-row {
        gap: 4px !important;
        margin-bottom: 6px !important;
    }

    .cyber-product-price {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
    }

    .cyber-product-old-price {
        font-size: 11px !important;
        line-height: 1.25 !important;
        color: #94a3b8 !important;
    }

    /* Nút xem chi tiết và thêm nhanh vào giỏ */
    .cyber-product-body .d-flex.gap-1\.5 {
        gap: 4px !important;
    }

    .cyber-product-body .btn-outline-secondary {
        font-size: 11px !important;
        padding: 5px 4px !important;
    }

    .cyber-product-body .add-to-cart-btn {
        padding: 5px 6px !important;
        font-size: 11px !important;
    }

    /* --- TRANG GIỎ HÀNG (CART: /EC/CART) TRÊN MOBILE: CARD-VIEW KHÔNG CẦN KÉO NGANG --- */
    .table-responsive {
        overflow-x: visible !important;
    }

    .table-responsive .table {
        margin-bottom: 0 !important;
    }

    .table-responsive .table thead {
        display: none !important;
    }

    .table-responsive .table,
    .table-responsive .table tbody {
        display: block !important;
        width: 100% !important;
    }

    .ec-cart-table-row {
        display: block !important;
        position: relative !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    }

    .ec-cart-col-product {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        padding-right: 32px !important;
        margin-bottom: 10px !important;
    }

    .ec-cart-col-product img {
        width: 58px !important;
        height: 58px !important;
    }

    .ec-cart-col-product a.fw-bold {
        font-size: 13px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
    }

    .ec-cart-col-action {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: block !important;
        padding: 0 !important;
        border: none !important;
        width: auto !important;
    }

    .ec-cart-col-action button {
        font-size: 16px !important;
        padding: 4px !important;
    }

    .ec-cart-col-price {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        vertical-align: middle !important;
    }

    .ec-cart-col-price .fw-bold {
        font-size: 13.5px !important;
        color: #0f172a !important;
    }

    .ec-cart-col-qty {
        display: block !important;
        float: right !important;
        padding: 0 !important;
        border: none !important;
        width: auto !important;
        vertical-align: middle !important;
    }

    .ec-cart-col-qty .input-group {
        width: 95px !important;
        margin: 0 !important;
    }

    .ec-cart-col-qty .form-control {
        font-size: 12px !important;
        height: 28px !important;
        padding: 0 !important;
    }

    .ec-cart-col-qty .btn {
        padding: 0 7px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .ec-cart-col-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        clear: both !important;
        padding: 8px 0 0 0 !important;
        margin-top: 10px !important;
        border-top: 1px dashed #e2e8f0 !important;
        border-bottom: none !important;
        text-align: right !important;
    }

    .ec-cart-col-subtotal::before {
        content: "Thành tiền:";
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
    }

    .ec-cart-col-subtotal .fw-extrabold {
        font-size: 14.5px !important;
    }

    /* Phân trang trên mobile */
    .pagination {
        gap: 3px !important;
    }

    .page-link {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
    }

    /* --- TRANG CHI TIẾT SẢN PHẨM TRÊN MOBILE --- */
    .cyber-detail-title {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }

    .cyber-detail-price-box {
        padding: 12px !important;
    }

    .cyber-detail-current-price {
        font-size: 20px !important;
    }

    .cyber-detail-old-price {
        font-size: 13px !important;
    }

    /* Nhóm nút mua hàng trên mobile */
    .cyber-detail-action-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .cyber-detail-action-buttons .btn {
        width: 100% !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        font-size: 14px !important;
    }

    /* Bảng thông số kỹ thuật */
    .cyber-detail-specs-table th,
    .cyber-detail-specs-table td {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    /* --- FOOTER TRÊN MOBILE --- */
    .cyber-footer {
        padding-top: 36px !important;
        padding-bottom: 24px !important;
    }

    .cyber-footer .col-lg-4,
    .cyber-footer .col-lg-2,
    .cyber-footer .col-lg-3 {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .cyber-footer-title {
        font-size: 13.5px !important;
        margin-bottom: 12px !important;
    }
}

/* ==========================================================================
   6. ĐIỆN THOẠI MÀN HÌNH NHỎ (EXTRA SMALL MOBILE: < 420px)
   ========================================================================== */
@media (max-width: 419.98px) {
    .cyber-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Thu nhỏ nút chọn danh mục để ô tìm kiếm có đất hiển thị */
    .btn-cat-select {
        max-width: 75px !important;
        font-size: 10.5px !important;
    }

    .btn-cat-select span {
        max-width: 48px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cyber-search-divider {
        margin: 0 4px !important;
    }

    /* Sản phẩm trên màn hình siêu hẹp (như iPhone SE 375px) */
    .cyber-product-card {
        padding: 8px !important;
    }

    .cyber-product-price {
        font-size: 13px !important;
    }

    .cyber-badge-discount {
        font-size: 9.5px !important;
        padding: 2px 5px !important;
    }
}

/* ==========================================================================
   7. UTILITY CLASSES HỖ TRỢ PADDING & GAP CO GIÃN ĐA THIẾT BỊ
   Đảm bảo không bao giờ bị mất padding dẫn đến dính sát mép border
   ========================================================================== */
.p-3\.5 { padding: 16px !important; }
.p-2\.5 { padding: 12px !important; }
.px-3\.5 { padding-left: 16px !important; padding-right: 16px !important; }
.py-3\.5 { padding-top: 16px !important; padding-bottom: 16px !important; }
.gap-2\.5 { gap: 10px !important; }
.gap-3\.5 { gap: 14px !important; }
.pb-2\.5 { padding-bottom: 10px !important; }
.mb-2\.5 { margin-bottom: 10px !important; }

@media (min-width: 768px) {
    .p-3\.5 { padding: 20px !important; }
}
