﻿

/* TABLET: Banner trên, danh sách deal xếp dưới thành lưới 2 cột */
@media (max-width: 991.98px) {

    .anvu-hero-slider {
        border-radius: 20px;
        margin-bottom: 16px;
    }
    .media-slider{width:100%}
    .media-slider img {
        width: 100%;
        margin: 0px;
        height: auto
    }
    .content-anvu-main {
        width: 100%
    }
    /* cả slide xếp theo cột thay vì 2 bên */
    .anvu-hero-slide {
        padding: 14px 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .anvu-hero-slide-left,
    .anvu-hero-slide-right {
        max-width: 100%;
        width: 100%;
    }

    /* banner chiếm full width */
    .anvu-hero-main-banner {
        min-height: 180px;
        border-radius: 18px;
    }

    /* khối deal: dạng grid 2 cột */
    .anvu-hero-slide-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .anvu-hero-deal {
        padding: 10px 10px;
        min-height: 100px;
    }

    .anvu-hero-deal-title {
        font-size: 13px;
    }

    .anvu-hero-deal-price {
        font-size: 16px;
    }

    /* thu nhỏ mũi tên carousel 1 chút */
    .anvu-hero-slider .carousel-control-prev,
    .anvu-hero-slider .carousel-control-next {
        width: 32px;
    }

    .anvu-hero-slider {
        border-radius: 20px;
        margin-bottom: 16px;
    }

    .anvu-hero-slide {
        padding: 14px 14px 16px;
        display: flex;
        gap: 10px;
    }

    .anvu-hero-slide-left,
    .anvu-hero-slide-right {
        max-width: 100%;
    }

    .anvu-hero-main-banner {
        min-height: 180px;
        border-radius: 18px;
    }

    .anvu-hero-slide-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .anvu-promo-banner-section {
        width: 100%;
        float: left;
    }

    .anvu-main {
        width: 100% !important;
    }
 

}

@media (max-width: 767.98px) {

    .anvu-pd-recent-wrap{ display:none !important}
    .recentlyViewedContainer{ display:none !important}
    /* Ẩn menu wrapper + header actions trên mobile */
    .anvu-header-actions {
        display: none
    }
    /* Ẩn mega menu mặc định */
    .anvu-mega-menux, .anvu-menu-btn {
        display: none !important;
    }

    /* Khi wrapper có is-open thì hiện menu */
    .anvu-menu-wrapper.is-open .anvu-mega-menu {
        display: block;
    }
 
    /* container header: logo trên 1 dòng, search dưới 1 dòng */
    .anvu-main-header .destop {
    padding:0px !important
    }
    .anvu-top-info-bar { font-size:11px; background:rgba(15, 23, 42, .18)
    }
        .anvu-logo {
            margin-right: 0;
            justify-content: center;
        }
        /* --- Search desktop -> ẩn trên mobile --- */
        .anvu-search-desktop {
            display: none !important;
        }
        /* --- Search mobile mới --- */
        .anvu-search {
            width: 100%;
            margin-right: 0 !important;
        }

        .anvu-search-mobile {
            display: flex;
            width: 100%;
            height: 44px;
            background: #ffffff;
            border-radius: 999px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
        }
        /* Nút MENU bên trái */
        .anvu-search-menu-btn {
            width: 70px;
            border: none;
            border-right: 1px solid #e5e7eb;
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 600;
            color: #6b7280;
        }

            .anvu-search-menu-btn i {
                font-size: 16px;
                margin-bottom: 2px;
            }
        /* Vùng input ở giữa */
        .anvu-search-input-wrap {
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 0 10px;
        }

            .anvu-search-input-wrap i {
                font-size: 14px;
                color: #9ca3af;
            }

            .anvu-search-input-wrap input {
                border: none;
                outline: none;
                width: 100%;
                font-size: 13px;
                color: #111827;
            }
        /* Nút giỏ hàng bên phải */
        .anvu-search-cart-btn {
            width: 64px;
            border: none;
            border-left: 1px solid #e5e7eb;
            background: #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            font-size: 18px;
        }

            .anvu-search-cart-btn:active {
                background: #e5e7eb;
            }


        .anvu-mobile-search-placeholder {
            color: #9ca3af; /* xám nhạt kiểu placeholder */
            font-weight: 400; /* mỏng hơn cho giống placeholder */
        }
            /* Nếu nó nằm trong thẻ <a> thì ngăn nó hiện màu link */
            .anvu-mobile-search-placeholder,
            .anvu-mobile-search-placeholder:link,
            .anvu-mobile-search-placeholder:visited {
                color: #9ca3af;
                text-decoration: none;
            }

        .anvu-top-static {
            border-left: none;
        }
        /* Ẩn mặc định */
        /* Khi bao ngoài có class is-open thì hiện */
        .anvu-menu-wrapper {
            position: static;
            margin-right: 0;
        }
        /* Ẩn nút Danh mục desktop, chỉ dùng nút MENU trong ô search */
        .anvu-menu-btn {
            display: none;
        }
        /* Style mega menu như một panel trượt full-width dưới header */
        .anvu-mega-menu {
            position: fixed;
            left: 0;
            right: 0;
            top: 110px; /* chỉnh lại đúng chiều cao header mobile của bạn */
            bottom: 0;
            background: #fff;
            z-index: 9999;
            max-height: none;
            overflow-y: auto;
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -4px 20px rgba(15, 23, 42, .18);
        }
        /* Chỉ hiển thị khi wrapper có is-open */
        .anvu-menu-wrapper:not(.is-open) .anvu-mega-menu {
            display: none;
        }

        .anvu-menu-wrapper.is-open .anvu-mega-menu {
            display: block;
        }

        .anvu-mega-menu {
            position: fixed;
            left: 0;
            right: 0;
            top: 120px; /* chỉnh cao thấp tùy chiều cao header mobile của bạn */
            bottom: 0;
            background: #ffffff;
            z-index: 9999;
            border-radius: 18px 18px 0 0;
            box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.18);
            overflow-y: auto;
            display: block; /* để flex của desktop không ảnh hưởng */
            padding-bottom: 16px;
        }
        /* Chỉ hiển thị khi wrapper mở */
        .anvu-menu-wrapper:not(.is-open) .anvu-mega-menu {
            display: none;
        }
        /* Cột trái = full width, không chia 2 cột nữa */
        .anvu-mega-left {
            width: 100%;
            border-right: none;
            border-bottom: 8px solid #f1f5f9;
            background: #ffffff;
        }

        .anvu-mega-left-title {
            padding: 12px 16px;
            font-size: 15px;
            font-weight: 700;
            color: #0f172a;
            background: #f1f5f9;
            border-radius: 18px 18px 0 0;
            border-bottom: 1px solid #e5e7eb;
        }

        .anvu-mega-left-list {
            margin: 0;
            padding: 0;
            list-style: none;
        }

            .anvu-mega-left-list li a {
                display: block;
                padding: 10px 16px;
                font-size: 14px;
                color: #111827;
                border-bottom: 1px solid #f1f5f9;
            }

                .anvu-mega-left-list li a:hover {
                    background: #f9fafb;
                }
        /* Ẩn phần "CHƯƠNG TRÌNH HOT" bên phải trên mobile
       (nếu sau này muốn hiện, mình có thể cho nó xuống dưới và dùng grid 2 cột) */
        .anvu-mega-right {
            display: none;
        }

        .anvu-header-actions {
            display: none !important
        }

        .anvu-subnav {
            display: none
        }

        .anvu-hero-slider {
            width: 100% !important;
        }

        .anvu-hero-section .container {
            padding-inline: 0;
        }

        .anvu-hero-slider {
            border-radius: 5px;
            margin: 0;
        }

        .anvu-hero-slide {
            padding: 12px 10px 14px;
            gap: 8px;
        }

        .anvu-hero-main-banner {
            min-height: 150px;
            padding: 14px 14px 12px;
        }

        .anvu-hero-main-sub {
            font-size: 15px;
        }

        .anvu-hero-main-title {
            font-size: 30px;
            line-height: 1.1;
        }

        .anvu-hero-main-desc {
            font-size: 13px;
            margin-bottom: 8px;
        }

        .anvu-hero-main-btn {
            font-size: 13px;
            padding: 6px 14px;
            border-radius: 999px;
        }
        /* deal chuyển sang cuộn ngang giống app */
        .anvu-hero-slide-right {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 4px 2px 2px;
            margin: 0 -2px;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
        }

            .anvu-hero-slide-right::-webkit-scrollbar {
                height: 4px;
            }

            .anvu-hero-slide-right::-webkit-scrollbar-thumb {
                background: rgba(255,255,255,0.35);
                border-radius: 999px;
            }

        .anvu-hero-deal {
            flex: 0 0 70%;
            min-width: 210px;
            scroll-snap-align: start;
            background: rgba(255,255,255,0.06);
            border-radius: 14px;
            padding: 10px 10px 8px;
        }

        .anvu-hero-deal-title {
            font-size: 12px;
            margin-bottom: 4px;
        }

        .anvu-hero-deal-old {
            font-size: 11px;
        }

        .anvu-hero-deal-price {
            font-size: 15px;
        }

        .anvu-hero-deal-tags .tag {
            font-size: 10px;
            padding: 2px 6px;
        }
        /* Ẩn mũi tên slide – vuốt tay như app */
        .anvu-hero-slider .carousel-control-prev,
        .anvu-hero-slider .carousel-control-next {
            display: none;
        }

        .anvu-hero-section .container {
            padding-inline: 0;
        }

     

        .anvu-hero-slide {
            padding: 12px 10px 14px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }
        /* chỉ giữ khối bên trái */
        .anvu-hero-slide-left {
            width: 100%;
            max-width: 100%;
        }

        .anvu-hero-slide-right {
            display: none !important; /* ẨN HOÀN TOÀN CỘT DEAL */
        }

        .anvu-hero-main-banner {
            width: 100%;
            min-height: 150px;
            padding: 14px 14px 12px;
            border-radius: 18px;
        }
        /* căn text giống app: hơi to nhưng gọn */
        .anvu-hero-main-sub {
            font-size: 14px;
        }

        .anvu-hero-main-title {
            font-size: 28px;
            line-height: 1.1;
        }

        .anvu-hero-main-desc {
            font-size: 13px;
            margin-bottom: 8px;
        }

        .anvu-hero-main-btn {
            font-size: 13px;
            padding: 6px 14px;
            border-radius: 999px;
        }
        /* Ẩn mũi tên slide – vuốt tay là đủ */
        .anvu-hero-slider .carousel-control-prev,
        .anvu-hero-slider .carousel-control-next {
            display: none;
        }

        .anvu-promo-time-pill {
            display: none
        }

        .anvu-video-combo-section {
            width: 100%
        }

        .anvu-promo-card-top {
            grid-template-columns: 1fr; /* chỉ còn 1 cột, 100% width */
        }

        .anvu-category-card {
            margin-top: 10px
        }

        .anvu-hero-section {
            padding: 0px 10px;
            overflow: hidden
        }

        .anvu-showroom-all {
            margin-top: 16px;
            display: grid;
            gap: 16px;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        }

        .anvu-showroom-card-full {
            border-radius: 8px;
            background: #ffffff;
            padding: 12px 14px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        }

        .anvu-showroom-name {
            font-weight: 600;
            margin-bottom: 4px;
            color: #222;
        }

        .anvu-showroom-addr {
            font-size: 13px;
            color: #555;
            margin-bottom: 6px;
        }

        .anvu-showroom-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 13px;
            color: #333;
        }

        .anvu-showroom-region {
            padding: 2px 8px;
            border-radius: 999px;
            background: #e3f2fd;
            color: #0b63ce;
        }

        .anvu-showroom-phone {
            display: inline-flex;
            align-items: center;
        }

            .anvu-showroom-phone i {
                font-size: 12px;
            }

        .anvu-showroom-all {
            grid-template-columns: 1fr;
        }

        .anvu-main-header {
            padding-bottom: 8px;
        }
        /* Ẩn header desktop, chỉ dùng mobile */
        .anvu-header-desktop {
            display: none;
        }

        .anvu-header-mobile {
            display: block;
            padding: 8px 12px 10px;
        }
        /* Hàng trên: MENU - LOGO - CART */
        .anvu-header-mobile-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .anvu-m-icon-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            outline: none;
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

            .anvu-m-icon-btn i {
                line-height: 1;
            }

        .anvu-mobile-logo img {
            height: 50px;
            display: block;
        }
        /* Hàng dưới: ô search bo tròn */
        .anvu-m-search-form {
            margin-top: 8px;
        }

        .anvu-m-search-inner {
            display: flex;
            align-items: center;
            background: #fff;
            border-radius: 999px;
            padding: 6px 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.12);
        }

            .anvu-m-search-inner input {
                border: none;
                outline: none;
                flex: 1;
                font-size: 14px;
                color: #333;
                background: transparent;
            }

                .anvu-m-search-inner input::placeholder {
                    color: #b3b3b3; /* placeholder nhạt, không bị xanh */
                }

            .anvu-m-search-inner button {
                border: none;
                outline: none;
                background: none;
                padding-left: 8px;
                font-size: 18px;
                color: #6b7280; /* icon kính lúp màu đỏ */
                display: flex;
                align-items: center;
                justify-content: center;
            }
        /* Ẩn bớt những phần desktop không cần trên mobile */
        .anvu-menu-wrapper,
        .anvu-header-actions,
        .anvu-search-desktop {
            display: none !important;
        }

        .anvu-logo {
            display: none !important
        }
   .anvu-promo-top-tabs {
        display: none
    }
    }
