﻿/* ==========================================================================
   Responsive Styles
   Nguyên tắc: Các breakpoint được tách biệt hoàn toàn (không trùng lặp).
   Màn hình PC (trên 1024px) sẽ không bị ảnh hưởng và giữ nguyên thiết kế gốc.
   ========================================================================== */

/* General Mobile Btn Default Hidden (for PC) */
.header-mobile-btn {
    display: none;
}

/* Tablet ngang & Laptop nhỏ (821px - 1024px) */
@media screen and (min-width: 821px) and (max-width: 1024px) {
    .trang-chu-featured .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .nav-links {
        gap: 40px;
    }

    .nav-links li a {
        font-size: 18px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 10px;
    }

    .features-badge-section .feature-icon {
        width: 58px;
        height: 58px;
        font-size: 1.8rem;
    }

    .features-badge-wrapper {
        gap: 15px;
    }

    .header-mobile-btn {
        display: none;
    }

    .cart-btn-primary {
        padding: 8px 20px;
    }

    /* Thu nhỏ hero-images ở 1024px */
    .about-page-wrapper .about-hero {
        padding: 120px 0 180px !important;
        /* Giảm height của hero */
    }

    .about-page-wrapper .hero-images {
        margin-top: -250px !important;
        /* Đẩy xe cao lên xíu */
        margin-left: -260px !important;
        /* Đẩy xe qua trái */
        justify-content: flex-start !important;
    }

    .about-page-wrapper .hero-images img {
        width: 65% !important;
        /* Làm ảnh nhỏ lại */
        margin: 0 auto;
    }

    /* Ngăn overflow-x do ảnh mission lố ra ngoài */
    .about-page-wrapper .img-sub-mission {
        right: 0 !important;
    }

    .about-page-wrapper .grid-overlay {
        left: 0 !important;
    }

    /* Thu hẹp about-menu hơn nữa */
    .about-page-wrapper .about-menu {
        padding: 15px 0 !important;
    }

    .about-page-wrapper .menu-grid {
        gap: 10px !important;
    }

    .about-page-wrapper .menu-categories-col {
        display: grid !important;
        grid-template-columns: repeat(2, max-content) !important;
        justify-content: flex-end !important;
        gap: 20px !important;
        /* Tăng khoảng cách cho bớt chật */
    }

    .about-page-wrapper .category-square {
        width: 180px !important;
        /* Rộng ra xíu nữa */
        padding: 10px !important;
        /* Giảm padding trên dưới để hẹp chiều cao */
        gap: 5px !important;
        /* Giảm khoảng cách giữa icon và chữ để lùn lại */
    }

    /* Đảm bảo cột ảnh bên phải cao bằng cột nội dung bên trái */
    .about-page-wrapper .image-grid-creative {
        height: 100% !important;
    }

    .about-page-wrapper .values-grid {
        gap: 15px;
    }

    .product-area {
        gap: 10px;
    }

    .new-blog-container {
        padding-bottom: 0px;
    }

    .page-content {
        margin-bottom: 30px;
    }

    .contact-features {
        padding: 30px 0;
    }

    .contact-features .f-text h3,
    .features-section .feature-text h4 {
        font-size: 16px !important;
        margin-bottom: 5px;
    }

    .contact-features .feature-item,
    .features-section .feature-item {
        gap: 10px;
        padding: 15px;
        /* Cho features-section */
    }

    .contact-features .f-icon,
    .features-section .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Đảm bảo tên sản phẩm không bị to ở 1024px */
    .cart-product-info h4 {
        font-size: 18px !important;
    }

    .contact-info-area {
        padding: 30px 20px;
    }

    .nb-archive-grid {
        gap: 10px;
    }

    .nb-archive-container {
        margin-bottom: 30px;
    }

    .nb-archive-card-body {
        padding: 15px;
    }

    .nb-hero {
        margin-top: 80px;
    }
}

/* Các thay đổi chung cho Mobile (<= 1024px) */
@media screen and (max-width: 1024px) {

    /* Ẩn các nút slider trên mobile vì đã có vuốt ngang tự nhiên */
    .slider-btn {
        display: none !important;
    }

    /* Products-flex hiệu ứng lướt ngang */
    .products-flex,
    .featured-slider-container .products-flex {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px !important;
        padding-bottom: 15px;
        /* khoảng trống cho thanh scroll */
    }

    .products-flex::-webkit-scrollbar {
        height: 6px;
    }

    .products-flex::-webkit-scrollbar-thumb {
        background-color: var(--color-gray-300);
        border-radius: 4px;
    }

    .products-flex .product-card,
    .featured-slider-container .products-flex .product-card {
        flex: 0 0 250px !important;
        width: 250px !important;
        max-width: 85vw !important;
        scroll-snap-align: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /* Ẩn title tất cả sản phẩm */
    .section-header-full h2 {
        display: none !important;
    }

    /* Chỉnh sửa lại layout của section-header-full khi ẩn title */
    .section-header-full {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 0 15px 15px !important;
    }

    /* Đưa sort-by về trong luồng để không bị đè lên ô search */
    .section-header-full .sort-by {
        position: relative !important;
        transform: none !important;
        margin: 0 !important;
    }

    /* section-search chia sẻ không gian với sort-by */
    .section-search,
    .search-flex {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 !important;
        margin: 0 15px 0 0 !important;
        /* 15px khoảng cách với dropdown */
        padding: 5px 5px 5px 15px !important;
    }

    /* Ngăn ô input đẩy nút tìm kiếm ra ngoài khi màn hình quá nhỏ */
    .section-search input {
        min-width: 0 !important;
    }

    .section-search .btn-search {
        padding: 8px 15px !important;
        flex-shrink: 0 !important;
    }

    /* dropdown-selected ngắn lại xíu */
    .custom-dropdown,
    .custom-dropdown.sort-by {
        width: auto !important;
        min-width: 150px !important;
        position: relative !important;
        margin-right: -20px !important;
        /* Nhích sang phải 1 tí */
        margin-left: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .dropdown-selected {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    .dropdown-selected span {
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .container,
    .pd-container {
        padding: 0 8px !important;
    }

    .custom-dropdown .dropdown-options {
        width: 180px !important;
        min-width: 0 !important;
        left: auto !important;
        right: 0 !important;
    }

    .custom-dropdown .dropdown-options li {
        padding: 8px 16px !important;
    }

    .nb-detail-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 60px !important;
    }

    /* Kéo ảnh tràn lề màn hình */
    .nb-detail-featured-img img,
    .nb-content-inner img {
        margin-left: -8px !important;
        margin-right: -8px !important;
        width: calc(100% + 16px) !important;
        max-width: none !important;
        border-radius: 0 !important;
    }

    /* Giảm khoảng cách margin trên dưới của nội dung bài viết trên mobile */
    .nb-content-inner p {
        margin-bottom: 10px !important;
    }
    .nb-content-inner h2 {
        margin: 10px 0 10px !important;
    }
    .nb-content-inner h3,
    .nb-content-inner h4,
    .nb-content-inner h5 {
        margin: 10px 0 10px !important;
    }
    .nb-content-inner ul,
    .nb-content-inner ol {
        margin-bottom: 12px !important;
    }

    /* Thu nhỏ padding của contact-info-area và dàn hàng ngang */
    .contact-info-area {
        padding: 30px 20px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 15px !important;
    }

    /* Thu hẹp khoảng cách các thành phần trong card tin tức (gần xíu nữa) */
    .nb-archive-card-body h3 {
        margin: 2px 0 !important;
    }

    .nb-archive-card-body p {
        margin-bottom: 4px !important;
    }

    .nb-archive-card-body .nb-cat {
        margin-bottom: 6px !important;
        display: inline-block !important;
    }

    .info-blocks-col {
        display: block !important;
        flex: 1;
    }

    .qr-col {
        width: auto !important;
        margin-top: 0 !important;
    }

    /* Đổi chữ "Gửi thông tin" thành "Gửi" cho nút consult-submit-btn */
    .consult-submit-btn {
        font-size: 0 !important;
    }

    .consult-submit-btn::after {
        content: "Gửi";
        font-size: 0.95rem;
        /* Giữ nguyên kích thước chữ gốc */
    }

    /* CART TABLE MOBILE FIX */
    .cart-table th:first-child,
    .cart-table td:first-child {
        width: 70% !important;
        min-width: 320px !important;
    }

    .cart-product-info {
        text-align: left !important;
        flex: 1;
        min-width: 0;
    }

    .cart-product-info h4 {
        text-align: left !important;
        line-height: 1.3 !important;
    }

    .cart-table {
        min-width: 550px !important;
    }

    .nb-archive-card-body p {
        line-height: 1.4;
        margin-top: 2px;
    }

    .nb-archive-container {
        gap: 20px;
    }

    .content-grid {
        gap: 20px;
    }

    .pagination {
        margin-top: 0px;
    }

    .pd-trust-badges {
        gap: 10px !important;
        padding: 10px !important;
    }

    .trust-item span {
        white-space: normal !important;
        font-size: 13px !important;
    }

    .pd-main {
        gap: 15px;
        padding: 20px;
    }

    .pd-tab-content-scrollable,
    .pd-tabs-container,
    .pd-process-section,
    .pd-reviews-section {
        padding: 20px !important;
    }

    .related-products-section .container {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* Bật lướt ngang cho Flash Deal Slider ở Tablet (<=1024px) */
    .flash-deal-slider-wrapper {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .flash-deal-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 15px;
    }

    .flash-deal-slider-container::-webkit-scrollbar {
        display: none;
    }

    .flash-deal-slider-container .deal-horizontal-slider {
        width: max-content !important;
    }

    .flash-deal-slider-container .deal-horizontal-card {
        flex: 0 0 380px !important;
        width: 380px !important;
        max-width: 85vw !important;
        scroll-snap-align: start;
    }
}

/* Tablet dọc (769px - 820px) */
@media screen and (max-width: 820px) {
    .btn-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--color-primary-dark);
        color: white;
        border: none;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* Menu Grid 2 hàng và Center */
    .about-page-wrapper .menu-grid {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center;
    }

    .about-page-wrapper .menu-title-col {
        min-width: 0 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-page-wrapper .menu-badge {
        justify-content: center;
    }

    .about-page-wrapper .menu-categories-col {
        justify-content: center !important;
        width: 100%;
    }

    .about-page-wrapper .social-follow {
        display: none !important;
    }

    .about-page-wrapper .promise-grid {
        max-height: none;
    }

    .about-page-wrapper .promise-col-left {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-page-wrapper .promise-col-left>div {
        flex: 1;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Values Grid lướt ngang */
    .about-page-wrapper .values-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding: 15px;
        background-color: #f8f9fb;
    }

    .about-page-wrapper .values-grid::-webkit-scrollbar {
        height: 6px;
    }

    .about-page-wrapper .values-grid::-webkit-scrollbar-thumb {
        background-color: var(--color-gray-300);
        border-radius: 4px;
    }

    .about-page-wrapper .value-card {
        flex: 0 0 340px !important;
        width: 340px !important;
        max-width: 90vw !important;
        scroll-snap-align: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-page-wrapper .image-grid-creative {
        height: 100% !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 820px) {
    .top-bar {
        display: none !important;
    }

    /* Header Hàng Ngang: Hamburger - Logo - Giỏ Hàng */
    .header {
        padding: 10px 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        position: relative;
        justify-content: space-between;
    }

    .header-mobile-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--color-primary-dark);
        cursor: pointer;
        order: 1;
        /* Ôm trái */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        /* Giữa */
    }

    .header-actions {
        order: 3;
        /* Ôm phải */
    }

    /* Đổi Giỏ hàng thành Icon tròn & Ngay Giữa */
    .cart-btn-primary {
        font-size: 0 !important;
        /* Ẩn chữ */
        padding: 0 !important;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        position: relative;
    }

    .cart-btn-primary i {
        font-size: 20px;
        /* Hiện lại Icon */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cart-badge {
        top: -2px;
        right: -2px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .main-nav.mobile-active {
        display: block;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .features-badge-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .featured-slider-container .products-flex .product-card {
        flex: 0 0 calc(33.333% - 14px);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    .qr-scan-box {
        width: 250px !important;
        height: 250px !important;
    }

    .about-page-wrapper .about-hero {
        padding: 160px 0 150px;
    }

    .about-page-wrapper .hero-images img {
        width: 80%;
        max-width: 1100px;
    }

    .about-page-wrapper .hero-images {
        margin-top: -250px !important;
        margin-left: -110px !important;
        justify-content: flex-start !important;
    }

    .about-page-wrapper .mission-grid {
        gap: 10px;
    }

    .about-page-wrapper .flash-deal-content {
        margin-bottom: 0;
    }

    .about-page-wrapper .promise-grid {
        gap: 20px;
    }

    .nb-detail-header {
        margin-top: 40px;
    }

    .nb-archive-grid {
        gap: 10px;
    }

    .nb-archive-container {
        gap: 15px;
        display: grid;
        grid-template-columns: 0.5fr 4fr;

    }

    .nb-archive-card-body {
        padding: 10px;
    }

    .contact-main {
        padding-bottom: 60px;
    }

    .contact-features {
        padding-bottom: 40px;
    }

    .nb-tags a {
        font-size: 18px;
    }

    .trang-chu-featured .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Tablet nhỏ & Mobile ngang (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .top-bar {
        display: none !important;
    }

    /* Header Hàng Ngang: Hamburger - Logo - Giỏ Hàng */
    .header {
        padding: 10px 0 !important;
        /* Làm header to ra xíu */
    }

    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        position: relative;
        justify-content: space-between;
    }

    .header-mobile-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--color-primary-dark);
        cursor: pointer;
        order: 1;
        /* Ôm trái */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        /* Giữa */
    }

    .header-actions {
        order: 3;
        /* Ôm phải */
    }

    /* Đổi Giỏ hàng thành Icon tròn & Ngay Giữa */
    .cart-btn-primary {
        font-size: 0 !important;
        /* Ẩn chữ */
        padding: 0 !important;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        position: relative;
    }

    .cart-btn-primary i {
        font-size: 20px;
        /* Hiện lại Icon */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cart-badge {
        top: -2px;
        right: -2px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 1000;
    }

    .main-nav.mobile-active {
        display: block;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .features-badge-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .featured-slider-container .products-flex .product-card {
        flex: 0 0 calc(50% - 10px);
    }

    .features-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        padding-bottom: 15px;
    }

    .features-grid::-webkit-scrollbar {
        height: 6px;
    }

    .features-grid::-webkit-scrollbar-thumb {
        background-color: var(--color-gray-300);
        border-radius: 4px;
    }

    .features-grid .feature-item {
        flex: 0 0 280px !important;
        width: 280px !important;
        max-width: 85vw !important;
        scroll-snap-align: start;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .contact-main {
        padding-bottom: 60px;
    }

    /* Đưa Flash Deal Sidebar & Slider lên cùng 1 hàng ở Tablet */
    .flash-deal-container {
        flex-direction: row !important;
        align-items: stretch !important;
        /* hoặc flex-start tuỳ gốc */
    }

    .flash-deal-sidebar {
        width: 250px !important;
        padding: 20px 15px !important;
        /* Gọn lại cho vừa */
        flex-shrink: 0 !important;
    }

    .flash-deal-slider-wrapper {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        /* Quan trọng để slider không làm vỡ layout flex */
        overflow: hidden !important;
    }

    .nb-tags a {
        font-size: 18px;
    }

    .pd-combo-section {
        padding: 20px;
    }

    .features-section {
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .trang-chu-featured .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .hotline-section-wrapper .hotline-title {
        font-size: 1rem !important;
    }
}

/* Mobile lớn (361px - 480px) */
@media screen and (min-width: 361px) and (max-width: 480px) {
    .top-bar {
        display: none !important;
    }

    /* Header Hàng Ngang: Hamburger - Logo - Giỏ Hàng */
    .header {
        padding: 10px 0 !important;
        /* Làm header to ra xíu */
    }

    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        position: relative;
        justify-content: space-between;
    }

    .header-mobile-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--color-primary-dark);
        cursor: pointer;
        order: 1;
        /* Ôm trái */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        /* Giữa */
    }

    .logo-img {
        max-height: 50px;
    }

    .header-actions {
        order: 3;
        /* Ôm phải */
    }

    /* Đổi Giỏ hàng thành Icon tròn & Ngay Giữa */
    .cart-btn-primary {
        font-size: 0 !important;
        /* Ẩn chữ */
        padding: 0 !important;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        position: relative;
    }

    .cart-btn-primary i {
        font-size: 18px;
        /* Hiện lại Icon */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cart-badge {
        top: -2px;
        right: -2px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 1000;
    }

    .main-nav.mobile-active {
        display: block;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }



    .flash-deal-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
    }

    .flash-deal-slider-container::-webkit-scrollbar {
        display: none;
    }

    .flash-deal-slider-container .deal-horizontal-slider {
        width: max-content;
    }

    .deal-horizontal-card {
        flex: 0 0 85vw !important;
        max-width: 85vw !important;
        width: 85vw !important;
    }

    .news-card {
        flex: 0 0 calc(100% + 30px) !important;
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .products-flex .product-info,
    .news-card-body {
        padding: 10px 8px !important;
    }

    .pd-main-image {
        margin-left: -15px !important;
        margin-right: -15px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    .featured-products-section .featured-header-new {
        margin-bottom: 10px;
    }

    .about-page-wrapper .about-promise,
    .about-values,
    .about-stats,
    .about-process {
        padding: 50px 0 !important;
    }
}

/* Mobile nhỏ (tối đa 360px) */
@media screen and (max-width: 360px) {
    .top-bar {
        display: none !important;
    }

    /* Header Hàng Ngang: Hamburger - Logo - Giỏ Hàng */
    .header {
        padding: 10px 0 !important;
        /* Làm header to ra xíu */
    }

    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        position: relative;
        justify-content: space-between;
    }

    .header-mobile-btn {
        display: block;
        background: none;
        border: none;
        font-size: 20px;
        color: var(--color-primary-dark);
        cursor: pointer;
        order: 1;
        /* Ôm trái */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
        /* Giữa */
    }

    .logo-img {
        max-height: 40px;
    }

    .header-actions {
        order: 3;
        /* Ôm phải */
    }

    /* Đổi Giỏ hàng thành Icon tròn & Ngay Giữa */
    .cart-btn-primary {
        font-size: 0 !important;
        /* Ẩn chữ */
        padding: 0 !important;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        position: relative;
    }

    .cart-btn-primary i {
        font-size: 16px;
        /* Hiện lại Icon */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cart-badge {
        top: -2px;
        right: -2px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 1000;
    }

    .main-nav.mobile-active {
        display: block;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }



    .flash-deal-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
    }

    .flash-deal-slider-container::-webkit-scrollbar {
        display: none;
    }

    .flash-deal-slider-container .deal-horizontal-slider {
        width: max-content;
    }

    .deal-horizontal-card {
        flex: 0 0 85vw !important;
        max-width: 85vw !important;
        width: 85vw !important;
    }

    .news-card {
        flex: 0 0 calc(100% + 30px) !important;
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .products-flex .product-info,
    .news-card-body {
        padding: 10px 8px !important;
    }

    .pd-main-image {
        margin-left: -15px !important;
        margin-right: -15px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .search-input {
        min-width: 0 !important;
        width: 100% !important;
    }

    .products-grid {
        gap: 5px !important;
    }

    .product-card .product-info {
        padding: 8px 5px !important;
    }

    .product-actions {
        gap: 5px !important;
    }

    .buy-now-btn {
        font-size: 16px !important;
        padding: 6px 2px !important;
    }

    .product-actions .add-to-cart-btn {
        flex: 0 0 32px !important;
        height: 32px !important;
    }
}

/* Fix bài viết liên quan ở 820px không cách lề trái phải 8px */
@media screen and (max-width: 820px) and (min-width: 820px) {
    .nb-related .nb-archive-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Tùy chỉnh Footer cho màn hình <= 820px */
@media screen and (max-width: 820px) {
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1.8fr 1fr 1fr !important;
        gap: 0px 15px !important;
        margin-bottom: 15px !important;
        /* override 40px in main.css */
    }

    /* Đưa 3 cột About, Dịch Vụ, Liên Hệ lên cùng 1 hàng */
    .footer-grid>.footer-col:nth-child(1) {
        order: 1 !important;
    }

    /* About */
    .footer-grid>.footer-col:nth-child(2) {
        order: 2 !important;
    }

    /* Dịch vụ */
    .footer-grid>.footer-col:nth-child(3) {
        order: 3 !important;
    }

    /* Liên hệ */

    /* Cột 4 (Bo Cong Thuong) nằm dưới cùng, chiếm trọn chiều ngang để đẩy sang phải dễ dàng */
    .footer-grid>.footer-col:nth-child(4) {
        order: 4 !important;
        grid-column: 1 / -1 !important;
    }

    /* Ẩn Map */
    .footer-map {
        display: none !important;
    }

    /* Ẩn các nút gọi điện và Zalo trong footer */
    .footer-contact-actions {
        display: none !important;
    }

    /* Logo Bộ Công Thương ôm lề phải dưới */
    .footer-grid>.footer-col:nth-child(4) {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .footer-grid>.footer-col:nth-child(4) img {
        margin-bottom: 0 !important;
        margin-left: auto !important;
        max-width: 130px !important;
        /* Nhỏ hơn nữa */
    }

    /* Tối ưu tối đa chiều cao: giảm margin, padding, chữ */
    .footer-logo img {
        max-width: 240px !important;
        margin-bottom: 10px !important;
    }

    .footer-col .footer-col-title {
        margin-bottom: 10px !important;
        font-size: 18px !important;
        padding-bottom: 5px !important;
    }

    .footer-col ul li {
        margin-bottom: 5px !important;
        font-size: 16px !important;
    }

    .footer-desc {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
}

@media screen and (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 15px !important;
    }

    /* About (cột 1) chiếm 2 cột */
    .footer-grid>.footer-col:nth-child(1) {
        grid-column: 1 / -1 !important;
    }

    /* Bộ Công Thương (cột 4) chiếm 2 cột */
    .footer-grid>.footer-col:nth-child(4) {
        grid-column: 1 / -1 !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
    }

    .footer-grid>.footer-col:nth-child(4) img {
        margin-left: 0 !important;
    }

    /* Đưa form tư vấn về 1 hàng ngang */
    .consultation-form {
        flex-direction: row !important;
        border-radius: 50px !important;
        padding: 4px !important;
    }

    .consultation-form input {
        border-radius: 50px !important;
        margin-bottom: 0 !important;
    }

    .consult-submit-btn {
        border-radius: 50px !important;
        white-space: nowrap;
    }

    .section-header-full {
        padding-right: 75px !important;
        position: relative !important;
    }

    .section-header-full .sort-by {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-left: 0 !important;
    }

    .main-content-section .section-header-full {
        padding: 15px !important;
        background-color: var(--color-white) !important;
        box-shadow: var(--shadow-sm) !important;
        border-radius: var(--border-radius-lg) !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: center;
    }

    .main-content-section .section-header-full .section-search {
        justify-self: stretch !important;
        width: 100% !important;
    }

    .main-content-section .section-header-full .sort-by {
        position: static !important;
        transform: none !important;
        margin-left: 0 !important;
    }

    .section-search .btn-search {
        width: 36px !important;
        height: 36px !important;
        margin-right: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 8px !important;
    }

    .sort-by .dropdown-selected {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 8px !important;
    }

    .sort-by .dropdown-selected span {
        display: none !important;
    }

    .sort-by .dropdown-selected i::before {
        content: "\f0b0" !important;
        /* fa-filter */
    }

    .custom-dropdown,
    .custom-dropdown.sort-by {
        width: 44px !important;
        min-width: 0 !important;
        position: relative !important;
        margin-right: 0px !important;
    }

    .section-search,
    .search-flex {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 !important;
        margin: 0 !important;
        padding: 5px 5px 5px 15px !important;
    }

    .page-content {
        margin-bottom: 10px;
    }

    .pd-main,
    .pd-tabs-container,
    .pd-reviews-section {
        padding: 8px !important;
    }

    .nb-hero-text h2 {
        margin-top: 30px;
    }

    .nb-hero {
        margin-bottom: 40px;
        margin-top: 10px;

    }

    .flash-deal-slider-wrapper {
        padding: 15px 15px 0px;
    }

    .promo-combo-section {
        padding-top: 30px;
    }

    .cart-container {
        margin-bottom: 0px;
    }

    .cart-banner-content p {
        font-size: 18px;
    }

    .pd-load-more-reviews {
        margin-top: 0px !important;
        margin-bottom: 30px;
    }

    .pd-review-breakdown {
        padding-left: 20px !important;
    }


    .pd-reviews-section {
        margin-bottom: 40px !important;
        padding-top: 40px !important;
    }

    .pd-lightbox-counter {
        right: 6px;
    }

    .about-page-wrapper .about-hero {
        padding: 60px 0 60px !important;
    }

    .about-page-wrapper .menu-grid {
        gap: 20px !important;
    }

    .about-page-wrapper .menu-categories-col {
        gap: 0px !important;
    }

    .about-page-wrapper .category-square {
        width: calc(50% - 5px) !important;
        padding: 15px 5px !important;
        gap: 10px !important;
    }

    .about-page-wrapper .square-icon-wrap {
        width: 120px !important;
        height: 120px !important;
    }

    .about-page-wrapper .square-icon-wrap i {
        font-size: 45px !important;
    }

    .about-page-wrapper .category-square h3 {
        font-size: 18px !important;
    }

    .about-page-wrapper .hero-tl-circle {
        top: -60px;
        left: -60px;
        width: 200px;
        height: 200px;
        z-index: 5;
    }

    .about-page-wrapper .hero-images {
        margin: -100px auto 0;
        margin-left: -65px !important;
    }

    .about-page-wrapper .about-hero p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .about-page-wrapper .hero-badge {
        font-size: 14px;
    }

    .about-clients {
        padding-top: 40px !important;
    }

    .about-page-wrapper .clients-title {
        margin-bottom: 30px;
    }

    .about-page-wrapper .about-mission {
        padding-top: 50px;
    }

    .about-page-wrapper .mission-grid {
        gap: 0px;
    }

    .about-page-wrapper .img-sub-mission {
        width: 50%;
        margin-bottom: 20px;
    }

    .flash-deal-content {
        margin-bottom: 0 !important;
    }

    .about-page-wrapper .about-features-badge,
    .about-flash-deal {
        padding: 15px !important;
    }

    .pd-tabs-container {
        border-radius: 0;
    }

    .pd-tabs {
        border-bottom: none;
        margin-bottom: 0;
    }

    .pd-tabs-container {
        padding-bottom: 0 !important;
        padding-top: 0px !important;
    }

    .pd-tab-content-scrollable {
        padding: 15px !important;

    }

    .pd-faq-section {
        padding-top: 20px !important;
    }

    .faq-question {
        font-size: 18px;

    }

    .combo-box {
        gap: 30px;
    }

    .pd-main {
        gap: 10px;
        padding-top: 0px !important;
    }
}

/* ==========================================================================
   FEATURES BADGE MARQUEE FOR MOBILE (<= 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .features-badge-marquee {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .features-badge-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        padding-bottom: 0 !important;
        padding-right: 15px !important;
        /* Perfect seamless loop balance */
        overflow: visible !important;
        gap: 15px !important;
        animation: marqueeMobile 8s linear infinite;
        /* Faster speed */
    }

    .features-badge-wrapper:hover {
        animation-play-state: paused;
    }

    .features-badge-wrapper .feature-item {
        display: flex !important;
        flex: 0 0 auto !important;
        width: max-content !important;
        /* Natural width */
        min-width: 0 !important;
        /* Override 200px from main.css */
        max-width: none !important;
        opacity: 1 !important;
        /* Disable scroll-hidden effect */
        transform: none !important;
        transition: none !important;
    }

    .featured-products-section {
        padding: 0px 8px 0px 8px !important;
    }

    .trang-chu-featured {
        width: calc(100% - 0px) !important;
        user-select: none;
        -webkit-user-select: none;
        touch-action: pan-y;
    }

    .product-info h3,
    .products-flex .product-info h3 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    .product-price {
        margin-bottom: 5px !important;
    }

    .btn-view-all-featured {
        font-size: 0 !important;
    }

    .btn-view-all-featured::before {
        content: "Xem tất cả";
        font-size: 14px;
    }

    .btn-view-all-featured i {
        font-size: 14px;
    }

    /* Tối ưu lại bottom banner (cụm icon và nút khuyến mãi) trên mobile */
    .featured-bottom-banner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        padding-bottom: 15px;
        margin-bottom: 10px !important;

    }

    .trang-chu-featured .featured-slider-wrapper {
        padding: 0;
        touch-action: pan-y;
    }

    /* Keep mission actions buttons on same row, adjust size to prevent text wrap */
    .about-page-wrapper .mission-actions {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 10px !important;
        width: 100%;
        justify-content: center;
    }

    .about-page-wrapper .mission-actions a {
        width: auto;
        flex: 1;
        padding: 10px 5px !important;
        font-size: 16px !important;
        text-align: center;
        white-space: nowrap;
    }

    .trust-icons-left {
        gap: 12px 15px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-top: 10px;
    }

    .trust-item {
        font-size: 14px !important;
        gap: 8px !important;
    }

    .trust-item span {
        font-size: 14px !important;
    }

    .trust-item i {
        font-size: 28px !important;
        width: 24px !important;
        /* Đảm bảo icon thẳng hàng */
        text-align: center;
    }

    .sale-link-right {
        width: 100% !important;
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }

    .sale-link-right a {
        font-size: 14px !important;
        justify-content: center !important;
        padding: 0 20px !important;
        width: auto !important;
        height: 42px !important;
    }

    /* Cart Features Marquee */
    .features-section-marquee {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .features-section {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        padding: 0 !important;
        margin: 40px 0 !important;
        padding-right: 25px !important;
        /* matches gap for seamless loop */
        overflow: visible !important;
        gap: 25px !important;
        animation: marqueeMobile 8s linear infinite;
    }

    .features-section:hover {
        animation-play-state: paused;
    }

    .features-section .feature-item {
        display: flex !important;
        flex: 0 0 auto !important;
        width: max-content !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Adjust promise-grid for mobile */
    .about-page-wrapper .promise-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Promise col left hugs left/right margins */
    .about-page-wrapper .promise-col-left {
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    .about-page-wrapper .about-features-badge,
    .about-page-wrapper .about-flash-deal {
        border-radius: 0 !important;
    }

    /* Promise col right for the image slider */
    .about-page-wrapper .promise-col-right {
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    /* Image grid creative becomes a horizontal slider */
    .about-page-wrapper .image-grid-creative {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 0 15px 15px 15px !important;
        height: auto !important;
        scrollbar-width: none !important;
        /* Firefox */
        overflow-y: hidden !important;
    }

    .about-page-wrapper .image-grid-creative::-webkit-scrollbar {
        display: none !important;
        /* Chrome/Safari */
    }

    .about-page-wrapper .image-grid-creative img {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
        height: 250px !important;
        width: auto !important;
        /* Let width follow flex-basis */
        border-radius: 15px !important;
        object-fit: cover !important;
        position: static !important;
    }

    .about-page-wrapper .hero-images img {
        width: 80%;
    }

    /* Giảm size card ở mobile (480px) để tránh scroll dọc */
    .products-flex .product-card,
    .featured-slider-container .products-flex .product-card,
    .about-page-featured .products-flex .product-card {
        flex: 0 0 220px !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    .about-page-wrapper .value-card {
        flex: 0 0 280px !important;
        width: 280px !important;
    }

    /* Ẩn thanh cuộn ngang (scroll X) và khóa cuộn dọc cho các slider ở mobile */
    .products-flex,
    .about-page-wrapper .values-grid,
    .features-grid {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        overflow-y: hidden !important;
        background-color: transparent !important;
    }

    .products-flex::-webkit-scrollbar,
    .about-page-wrapper .values-grid::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar {
        display: none !important;
    }

    .dropdown-options li {
        font-size: 16px;
    }

    .nb-hero {
        gap: 30px;
    }

    .pd-process-section {
        padding: 30px 0 !important;
    }
}

@keyframes marqueeMobile {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive cho news-blog category widget <= 480px */
@media screen and (max-width: 480px) {
    .nb-archive-sidebar {
        position: sticky;
        top: 60px;
        /* Adjusted to fit the header height without gap */
        z-index: 99;
        background-color: #f0f4f3;
        padding-top: 10px;
        margin-top: -10px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .is-header-hidden .nb-archive-sidebar {
        top: 0;
    }

    .nb-widget-search {
        margin-bottom: 20px;
    }

    .nb-category-hamburger {
        display: block !important;
    }

    .nb-widget-category {
        display: none;
        margin-top: 15px;
    }

    .nb-widget-category.active {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }

    .featured-slider-container {
        padding-top: 0px;
        padding-bottom: 10px;
    }

    .nb-archive-container {
        gap: 0;
        margin-bottom: 30px;
    }

    .nb-page-header {
        margin-bottom: 20px;
    }
}

/* Bento Box Responsive */
@media (max-width: 991px) {
    .bento-showcase-container {
        grid-template-columns: 1fr !important;
    }

    .spotlight-img-wrap {
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .bento-grid-right {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .bento-showcase-container {
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        margin-bottom: 20px;
    }

    .bento-grid-right .bento-item-title {
        font-size: 18px !important;
        margin-top: 10px;
    }

    .bento-nav-btn {
        display: flex !important;
        width: 32px;
        height: 32px;
    }

    .bento-nav-left {
        left: 5px !important;
    }

    .bento-nav-right {
        right: 5px !important;
    }

    .bento-spotlight {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .spotlight-title {
        font-size: 1.4rem;
    }

    .spotlight-price {
        font-size: 1.5rem;
    }

    .btn-spotlight-buy {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .spotlight-img-wrap img {
        max-height: 200px;
    }

    .bento-grid-right {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden !important;
        gap: 15px;
        padding-bottom: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .bento-grid-right::-webkit-scrollbar {
        display: none;
    }

    .bento-grid-right .bento-item {
        flex: 0 0 65vw;
        width: 65vw;
        min-width: 0;
        padding: 12px;
    }

    .bento-grid-right .bento-item-img {
        height: 110px;
        margin-bottom: 8px;
    }

    .bento-grid-right .bento-item-title {
        font-size: 1rem;
    }
}


/* Fixed Products Grid Responsiveness */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .product-card .product-info {
        padding: 10px 8px !important;
    }

    .product-price {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .price-old {
        margin-left: 0 !important;
        font-size: 0.75rem !important;
    }

    .buy-now-btn {
        font-size: 16px !important;
        padding: 8px 4px !important;
    }

    .product-actions .add-to-cart-btn {
        flex: 0 0 36px !important;
        height: 36px !important;
    }

    .pagination {
        flex-wrap: wrap;
        /* margin-top: 40px; */
    }
}

/* Responsive for Process Steps */
@media (max-width: 820px) {
    .process-step {
        padding: 15px 10px !important;
    }

    .process-step .step-icon,
    .process-step .process-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 10px !important;
    }

    .process-step .step-icon i,
    .process-step .process-icon i {
        font-size: 24px !important;
    }

    .process-step h4 {
        margin-bottom: 5px !important;
        font-size: 1rem !important;
    }

    .process-step p {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
}

/* Responsive for Contact Page */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .custom-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-title h1 {
        font-size: 42px !important;
    }

    .contact-title p {
        font-size: 18px !important;
    }

    .contact-title .highlight {
        font-size: 26px !important;
    }

    .contact-title .badge-top {
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
    }

    .contact-info-area {
        padding: 30px 8px !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .contact-info-area .info-blocks-col {
        width: 100%;
        text-align: center;
    }

    .contact-info-area .info-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info-area .info-block h3 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .social-block .social-icons {
        justify-content: center;
    }

    .qr-col {
        width: 100% !important;
        margin-top: 20px !important;
    }
}

/* Section Titles Responsive */
@media (max-width: 480px) {

    h2,
    .featured-title-wrap h2,
    .mission-content h2,
    .menu-title-col h2,
    .promise-header h2,
    .feedback-title,
    .contact-title h2,
    .section-title h2,
    .nb-dest-header h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    /* Fix horizontal overflow */
    .featured-products-section,
    .about-page-featured {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Process Timeline Slider Effect */
    .process-timeline {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 0px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        justify-content: flex-start !important;
    }

    .process-timeline::-webkit-scrollbar {
        display: none !important;
    }

    .process-timeline .process-step {
        flex: 0 0 75% !important;
        max-width: 75% !important;
        scroll-snap-align: center;
    }

    .process-timeline::before {
        display: none !important;
    }
}

/* Fixed Products Grid Responsiveness for 1024px and 820px */
@media (max-width: 1024px) {
    .products-grid {
        gap: 10px !important;
    }

    .promo-combo-section .container {
        padding: 20px !important;
    }

    .combo-action {
        margin: 0 auto;
    }
}

/* Stat Items Glass Cards on Mobile */
@media (max-width: 480px) {
    .stat-item.glass-card {
        padding: 25px 15px !important;
    }

    .stat-item.glass-card .stat-icon {
        font-size: 52px !important;
        margin-bottom: 10px !important;
    }
}

/* Category Title & Count Responsive */
@media (max-width: 768px) {
    .category-section-title {
        font-size: 24px !important;
    }

    .category-count {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .featured-products-section .container {
        padding-top: 30px !important;
    }
}

@media (max-width: 480px) {

    .promo-combo-section .container,
    .related-products-section .container {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        border-radius: 0 !important;
    }

    .about-page-wrapper .mission-list {
        gap: 10px;
        margin-bottom: 25px;
    }

    .values-grid {
        margin-top: 0px !important;
    }

}

/* Responsive for Hotline Section Wrapper */
@media (max-width: 991px) {
    .hotline-section-wrapper .featured-hotline-banner {
        flex-direction: column !important;
        padding: 30px 0px !important;
        gap: 30px !important;
    }

    .hotline-section-wrapper .hotline-banner-features {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
        width: 100%;
        align-items: center !important;
    }

    .hotline-section-wrapper .trust-item-circle {
        flex-direction: column !important;
        text-align: center;
        font-size: 14px;
        align-items: center;
    }

    .hotline-section-wrapper .hotline-banner-right {
        width: 100%;
    }

    .hotline-section-wrapper .hotline-banner-btns {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        width: 60%;
        gap: 15px;
    }

    .hotline-section-wrapper .hotline-banner-btns a {
        width: auto !important;
        padding: 0 20px !important;
        text-align: center;
        justify-content: center;
    }

    .hotline-section-wrapper .hotline-why-title {
        font-size: 24px !important;
    }

    .hotline-section-wrapper .hotline-number {
        font-size: 40px !important;
    }
}

@media (max-width: 480px) {
    .hotline-section-wrapper .hotline-why-title {
        font-size: 26px !important;
    }

    .hotline-section-wrapper .hotline-number {
        font-size: 40px !important;
    }

    .hotline-section-wrapper .hotline-banner-features {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 20px !important;
        align-items: center !important;
    }

    .hotline-section-wrapper .trust-item-circle {
        flex-direction: column !important;
        text-align: center;
        font-size: 12px;
        align-items: center;
    }

    .hotline-section-wrapper .hotline-banner-btns {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .hotline-section-wrapper .hotline-banner-btns a {
        flex: 1;
        padding: 10px 5px !important;
        font-size: 16px !important;
        white-space: nowrap;
    }

    .hotline-banner-right {
        gap: 20px;
    }

    .hotline-number {
        margin-top: 15px;
    }

    .trust-item-circle span {
        font-size: 18px !important;
    }
}

.hotline-section-wrapper .hotline-banner-btns a {
    flex: 1;
    padding: 10px 5px !important;
    font-size: 16px !important;
    white-space: nowrap;
}

.hotline-banner-right {
    gap: 20px;
}

.hotline-number {
    margin-top: 15px;
}

.trust-item-circle span {
    font-size: 18px !important;
}

.page-content {
    margin-top: 10px !important;
}

@media (max-width: 480px) {
    .featured-products-section {
        overflow-x: hidden;
    }

    .hotline-banner-btns a {
        height: 46px !important;
        font-size: 18px !important;
    }

    .deal-horizontal-slider {
        align-items: stretch !important;
        gap: 10px;
    }

    .deal-horizontal-card {
        height: 180px !important;
        min-height: 180px !important;
        /* Override 240px from main.css */
        display: flex;
        flex-direction: row;
        /* 2 cột */
        align-items: center;
        gap: 10px;
        padding: 10px !important;
    }

    .deal-horizontal-img {
        width: 150px !important;
        height: 150px !important;
        flex-shrink: 0;
    }

    .deal-horizontal-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        align-items: flex-start;
        /* Ép nội dung ôm trái */
    }

    .deal-horizontal-info h3 {
        line-height: 1.3;
        height: auto;
        max-height: 2.6em;
        font-size: 18px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 5px;
    }

    .deal-desc {
        font-size: 14px !important;
        margin-bottom: 8px;
    }

    .deal-horizontal-info .buy-now-btn {
        padding: 9px 16px !important;
        font-size: 14px !important;
        font-weight: 600;
        border-radius: 8px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-start !important;
        /* Ôm trái */
        margin-top: 0;
    }

    .product-actions {
        margin-top: 0px !important;
    }

    .pd-trust-badges {
        margin-bottom: 10px !important;
    }

    .pd-page-wrapper {
        padding-top: 15px;
    }

    .pd-breadcrumbs {
        margin-bottom: 15px !important;
    }

    .pd-main {
        margin-bottom: 30px !important;
    }

    .pd-tabs-wrapper {
        margin-bottom: 30px !important;
    }

    .pd-process-section,
    .pd-reviews-section {
        margin: 30px auto !important;
    }

    .pd-faq-section,
    .related-products-section {
        padding-bottom: 40px !important;
    }

    .cart-banner-content h2 {
        font-size: 24px !important;
    }

    .cart-banner-content h2 strong {
        font-size: 30px !important;
    }

    .cart-banner {
        gap: 0px !important;
        margin-bottom: 30px !important;
    }

    .feature-text h4 {
        margin-bottom: 0px !important;
    }

    html,
    body {
        overflow-x: clip;
        max-width: 100vw;
    }

    .featured-products-section,
    .trang-chu-featured {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }

    .featured-products-section .container {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }

    .features-badge-wrapper .feature-item {
        margin-bottom: 0 !important;
    }

    .footer-grid .footer-col:last-child {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-grid .footer-col:last-child .footer-map {
        display: block !important;
        width: 120px;
        /* Chiều rộng cố định */
        height: 120px !important;
        /* Chiều cao cố định bằng chiều rộng để thành hình vuông */
        flex: none;
        /* Bỏ flex: 1 để không bị kéo giãn */
        order: -1;
    }

    .footer-grid .footer-col:last-child img {
        max-width: 100px !important;
        max-height: 100px !important;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }

    .hotline-section-wrapper {
        padding: 0;
    }

    .hotline-section-wrapper .icon-circle {
        width: 60px !important;
        height: 60px !important;
        font-size: 30px !important;
    }

    .main-content-section {
        padding: 30px 0px !important;
    }

    .contact-info-area .info-block {
        margin-bottom: 15px !important;
    }

    .contact-info-area {
        gap: 0px !important;
    }

    .qr-col {
        margin-top: 0px !important;
    }

    .form-row {
        gap: 0px !important;
        margin-bottom: 0px !important;
    }

    /* Fix contact hero banner image mask on mobile */
    .contact-hero-banner>div:last-child {
        width: 100% !important;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 100%) !important;
        mask-image: linear-gradient(90deg, transparent 0%, black 100%) !important;
        opacity: 0.4 !important;
    }

    /* Fix about hero banner (.hero-bg-right) image mask on mobile to remove the line */
    .about-page-wrapper .hero-bg-right,
    .hero-bg-right {
        width: 100% !important;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 100%) !important;
        mask-image: linear-gradient(90deg, transparent 0%, black 100%) !important;
        opacity: 0.3 !important;
        background-size: cover !important;
    }

    /* Make contact hero buttons equal width on mobile */
    .contact-hero-banner .pd-btn {
        width: 70% !important;
        justify-content: center !important;
    }

    .contact-features {
        padding-bottom: 0;
    }

    .contact-main {
        padding-bottom: 30px;
    }

    .features-grid {
        gap: 5px;
    }

    .hotline-section-wrapper .hotline-banner-btns {
        width: 95% !important;
    }

    .pd-desc-short,
    .pd-tab-pane {
        font-size: 16px !important;
    }

    .process-step h3 {
        font-size: 18px !important;
    }

    .process-step p {
        font-size: 16px !important;
    }

    /* Flash Deal Sidebar Mobile Adjustments */
    .flash-deal-sidebar {
        display: grid !important;
        grid-template-columns: auto auto;
        justify-content: center;
        /* Bring items closer to center */
        align-items: center;
        row-gap: 12px;
        column-gap: 20px;
        /* Moderate spacing */
        width: 100% !important;
        padding: 15px !important;
    }

    .deal-badge-title,
    .deal-divider {
        grid-column: 1 / -1;
    }

    .deal-sale-text {
        grid-column: 1 / -1;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center;
        gap: 10px;
        white-space: nowrap;
    }

    .deal-sale-text .sale-up-to {
        font-size: 1.2rem;
        /* make it a bit larger to match row layout */
    }

    .deal-sale-text .sale-percent {
        font-size: 1.8rem;
        /* scale down slightly if needed to fit */
    }

    .deal-shop-btn {
        margin-bottom: 0 !important;
        grid-column: 1;
        padding: 8px 15px;
        font-size: 13px;
    }

    .deal-timer {
        grid-column: 2;
    }

    .deal-timer .timer-box {
        padding: 5px;
        min-width: 35px;
    }

    .deal-timer .timer-num {
        font-size: 14px;
    }

    .deal-badge-title {
        margin-bottom: 0px;
    }

    .flash-deal-sidebar {
        row-gap: 0px;
    }

    .deal-sale-text {
        margin-bottom: 8px;
    }

    .deal-shop-btn {
        padding: 8px 12px;
        font-size: 18px;
        border-radius: 12px;
        background-color: var(--color-accent);
        color: var(--color-primary);
    }

    .flash-deal-slider-container .deal-horizontal-card {
        padding: 10px !important;
    }

    .about-page-wrapper .about-hero h1 {
        margin-bottom: 15px;
    }

    .about-page-wrapper .about-feedback {
        padding: 50px 0 30px !important;
    }

    .about-page-wrapper .feedback-slider {
        gap: 15px !important;
    }

    .nb-detail-container {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .nb-detail-header h1 {
        margin: 5px;
    }

    .nb-detail-meta {
        margin-top: 15px;
    }

    .nb-author img {
        width: 40px !important;
        height: 40px !important;
    }

    .nb-author strong {
        font-size: 18px !important;
    }

    .nb-date {
        font-size: 14px !important;
    }

    .nb-author {
        gap: 10px !important;
    }

    .nb-detail-featured-img img {
        margin-bottom: 5px !important;
    }

    .nb-content-inner h2 {
        font-size: 24px !important;
    }

        .nb-content-inner h3 {
        font-size: 22px !important;
    }

        .nb-content-inner h4 {
        font-size: 20px !important;
    }

    .nb-tags a {
        font-size: 14px !important;
        padding: 0px 10px !important;
    }

    .nb-detail-footer {
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .nb-related h3 {
        margin-top: 10px !important;
        margin-bottom: 5px !important;
    }

    .nb-detail-header {
        margin-bottom: 20px !important;
    }

        .nb-archive-card-body .nb-cat {
        margin-bottom: 0px !important;
    }

    .nb-related .nb-archive-card-body h3 {
        margin-top: 8px !important;
    }

    .nb-archive-card-body h3 a {
        font-size: 20px !important;
    }

    .review-form-visible {
        padding: 20px 10px 20px 10px !important;
    }

    .pd-specs-summary {
        margin-top: 15px !important;
    }

    .pd-desc-short {
        margin-bottom: 10px !important;
    }

    .featured-products-section .badge-top {
        animation: badgeBlinkMobile 1.5s infinite !important;
        margin-left: 5px !important;
    }

    .flash-deal-container {
        gap: 5px !important;
    }

    .featured-slider-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .glass-grid {
        gap: 8px !important;
    }

    .process-timeline {
        gap: 10px !important;
    }

    .values-header p {
        margin-bottom: 30px !important;
    }

    .about-page-wrapper .promise-header {
        margin-bottom: 30px !important;
    }

    .about-page-wrapper .mission-content p {
        margin-bottom: 30px !important;
    }

    .about-page-wrapper .feedback-desc {
        margin-bottom: 30px !important;
    }

    .process-timeline {
        margin-top: 30px !important;
    }

    .bento-showcase-container {
        gap: 15px;
    }

    .nb-destinations {
        margin-bottom: 40px !important;
    }

    .nb-latest-content {
        gap: 20px;
    }

    .nb-latest {
        margin-bottom: 50px !important;
    }

    .nb-dest-card-info {
        padding: 10px 5px !important;
    }

}
/* Fix overflow badge-top breathing animation on mobile */
@keyframes badgeBlinkMobile {
    0% {
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.4);
        transform: scale(1);
    }

}
