/* 1. Nhúng font Inter từ Google Fonts với các độ dày từ thường đến siêu đậm */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* 2. Áp dụng cho toàn bộ website */
* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
    overflow-x: hidden;
    color: #3c3939;
    background: #f9f9f9;
    background-color: #f9f9f9;
    text-align: left;
}
img { max-width: 100%; }
.text-dark{
    color: #000;
}

a:hover { text-decoration: none; color: #0056b3; }
.container { margin-bottom: 16px; padding:0px }

.border-box-radius {
    border-radius: 10px; background: #fff; border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.fa-star:before{ color: #f2ca4a; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 0; font-size: 14px; background: none; padding-left: 0; }
.breadcrumb a { color: #9d9d9d; text-decoration: none; }
.breadcrumb .unactive { color: #000000; text-decoration: none; }
.nav-top { background: #48a3f6; height: 100px; }
.nav-top .container { margin-bottom: 0em; }
.navbar-logo img { width: 275px; margin-right: 15px; margin-top: -12px; }

.kIrZeZ { cursor: pointer; display: flex; }
.kIrZeZ .Menu-button { display: flex; align-items: center; color: #fff; font-size: 13px; font-weight: 400; min-height: 44px; }
.kIrZeZ .Menu-button .hamburger-menu { width: 32px; height: 32px; margin-right: 8px; }
.kIrZeZ .Menu-button .wrap { display: flex; flex-direction: column; padding-top: 2px; width: 88px; }
.kIrZeZ .Menu-button .wrap>span { font-size: 13px; font-weight: normal; font-stretch: normal; font-style: normal; line-height: 1.45; }
.kIrZeZ .Menu-button .wrap .text-icon { font-size: 15px; font-weight: 500; display: flex; align-items: flex-end; }
.kIrZeZ .Menu-button .wrap .text-icon>img { position: relative; top: -1px; width: 16px; height: 16px; }
.kIrZeZ .menu { position: absolute; margin-top: 55px; margin-left: -132px; z-index: 25; border-radius: 0; opacity: 0; visibility: hidden; width: 16.5%; }
.kIrZeZ .menu>li>.megadrop { width: 862px; left: 239px; }
.kIrZeZ:hover .menu { opacity: 1; visibility: visible; }

.menu { width: 90%; font-weight: 400; font-size: 15px; line-height: 16px; position: relative; padding: 0 0 0 4px; margin: 0; background-color: #ffff; }
.menu a, .menu a:link, .menu a:visited, .menu a:focus { color: #000; text-decoration: none; }
.menu>li:hover { background: #48a3f6; text-decoration: none; border-left: 4px solid #0159a0; background-color: #48a3f6; }
.menu>li:hover>a:before { content: ""; border-color: transparent #fff transparent transparent; right: 0; border-width: 12px; position: absolute; border-style: solid; margin-top: -4px; }
.menu>li { display: block; text-align: left; margin-left: -4px; border-left: 1px solid rgba(255, 255, 255, 0.11); box-shadow: -1px 0 0 rgba(0, 0, 0, 0.1); padding: 0 10px; }
.menu>li>a>i { margin-right: 13px; font-size: 14px; color: #777; width: 15px; text-align: center; }
.menu>li:hover>a>i { color: #fff; }
.menu>li:hover>a { color: #fff; border-bottom: none; }
.menu>li>a { padding: 9.85px 12px; display: block; border-bottom: 1px solid #eee; color: #4b4b4b; }

.menu>li>.megadrop { padding-left: 26px; opacity: 0; visibility: hidden; position: absolute; list-style: none; top: -1px; left: 267px; width: 995px; min-height: 100%; text-align: left; margin-top: 30px; z-index: 99; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; overflow: hidden; border-top: 2px solid #227087; border-right: 2px solid #227087; border-bottom: 2px solid #227087; }
ul.menu>li:hover>.megadrop { opacity: 1; visibility: visible; margin-top: 0px; background-color: #fff; margin-left: 11px; }
.menu ul li:hover:after { color: #227087; }
.menu>li>ul li ul, .menu li>ul li, .menu>li>ul, .menu>li { transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-outs; }

.menu-sub h5 { color: #0159a0; font-weight: 700; text-transform: uppercase; font-size: 14px; position: relative; margin-top: 4px; }
.menu-con { margin: 0; padding: 0; }
.menu-con li { padding: 5px 5px; list-style: none; }

.search-and-cart { border: 1.5px solid #3d8fc8; border-radius: 5px; background: #fff; }
.search-and-cart .form-control { border: none; }
.search-and-cart .btn-catagory span, .search-and-cart .btn-timkiem span, .search-and-cart .form-control::placeholder { font-size: 14px; }
.seachform-header { width: 29%; border: none; font-size: 14px; padding: 10px; }
.seachform-header.active { border: none; }
.seachform-header>.form-control:hover, .seachform-header>.form-control:focus { box-shadow: none; outline: 0; border-color: #fff; }
.seachform-header:hover, .seachform-header:focus { box-shadow: none; outline: 0; border-color: #fff; }
.form-search { width: 44%; }

.hotline { float: left; line-height: 19px; color: #fff; text-align: center; }
.hotline .hotline-desc { font-size: 14px; font-weight: 400; margin: 0; }
.hotline a { display: block; color: #fff; font-weight: 600; font-size: 21.9px; }
.top-cart { border: 1.7px solid #fff; border-radius: 3px; height: 38px; line-height: 34px; width: 126px; float: right; margin-left: 11px; }
.top-cart .cart-contents { display: block; background: #4c96d1; height: 100%; text-align: left; color: #fff; font-size: 12px; padding: 0 7px; }
.top-cart .cart-contents:hover { text-decoration: none; }
.cart-contents i { margin: 0; height: 100%; line-height: unset; background: 0 0; text-align: left; display: inline; margin-right: 10px; font-size: 20px; }
.shop-cart { margin-top: 0; display: inline-block; margin-left: 17px; }
.top-cart .cart-contents .count-cart-header { background: #fcd836; color: #515151; font-weight: 600; height: 20px; width: 20px; line-height: 20px; text-align: center; border-radius: 3px; margin-left: 4px; padding: 0px 5px 0px 5px; }

.shopping-cart-header .badge { background-color: red; border-radius: 10px; color: white; display: inline-block; font-size: 12px; line-height: 1; padding: 3px 7px; text-align: center; vertical-align: middle; white-space: nowrap; }
.shopping-cart { background: white; width: 320px; position: absolute; top: 48px; right: -10px; border-radius: 3px; padding: 15px 15px 0 15px; overflow: hidden; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26) !important; -webkit-transition: all 0.2s ease; transition: all 0.2s ease; opacity: 0; -webkit-transform-origin: right top 0; -webkit-transform: scale(0); transform-origin: right top 0; transform: scale(0); }
.shopping-cart.active { z-index: 11; opacity: 1; -webkit-transform-origin: right top 0; -webkit-transform: scale(1); transform-origin: right top 0; transform: scale(1); }
.shopping-cart .shopping-cart-header { border-bottom: 1px solid #e8e8e8; padding-bottom: 15px; }
.shopping-cart .shopping-cart-header .shopping-cart-total { float: right; }
.shopping-cart .shopping-cart-items { padding: 0; padding-top: 15px; list-style: none; }
.shopping-cart .shopping-cart-items li { margin-bottom: 18px; }
.shopping-cart .shopping-cart-items img { float: left; margin-right: 12px; max-width: 70px; max-height: 70px; }
.shopping-cart .shopping-cart-items .item-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; line-height: 19px; -webkit-line-clamp: 2; height: 40px; display: -webkit-box; -webkit-box-orient: vertical; }
.shopping-cart .shopping-cart-items .item-price { color: #00c0cb; margin-right: 8px; }
.shopping-cart .shopping-cart-items .item-quantity { color: #abb0be; }
.shopping-cart-header .cart-icon { color: #515783; font-size: 24px; margin-right: 7px; float: left; }
.button-Checkout { background: #6394f8; color: white; text-align: center; padding: 6px; text-decoration: none; display: block; border-radius: 3px; font-size: 16px; margin: 15px 0 15px 0; }
.button-Checkout:hover { text-decoration: none; color: #fff; }
.shopping-cart-header .fa-shopping-cart { margin-top: 8px; }

.top-menu-links { padding-left: 0; margin-top: -13px; list-style: none; }
.top-menu-links>li { float: left; margin-right: 9px; }
.top-menu-links>li a { color: #fff; display: inline-block; cursor: pointer; font-size: 13px; }
.top-menu-links>li .menu-icon span { height: 24px; width: 24px; line-height: 24px; display: inline-block; border: 1px solid #fff; border-radius: 100%; font-size: 13px; position: relative; top: 1px; }
.top-menu-links>li .menu-icon.topLike span { background: #f14f67; }
.top-menu-links>li .menu-icon.topLike i { margin-top: 5px; margin-left: 6px; margin-right: 1px; }
.top-menu-links>li .menu-icon.topLike_care i { margin-left: 5px; }

.top-menu-links1 { padding-left: 80px; margin: 0; list-style: none; }
.top-menu-links1>li { float: left; }
.top-menu-links1 .sanpham-moi a:after { content: ""; width: 1.5px; height: 12px; display: inline-block; background: #fff; margin: 0 10px; }
.top-menu-links1>li a { color: #fff; display: inline-block; cursor: pointer; font-size: 13px; font-weight: 600; }

.hover-address { position: relative; display: inline-block; }
.hover-address .tooltiptext { visibility: hidden; width: 584px; background-color: #fff; color: #000; text-align: left; border-radius: 6px; padding: 15px; position: absolute; z-index: 1; top: 126%; left: 50%; margin-left: -60px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); opacity: 0; transition: opacity 0.3s; }
.hover-address:hover .tooltiptext { visibility: visible; opacity: 1; z-index: 55; }

.megamenu-li { position: static; }
.megamenu { position: absolute; min-width: 230px; left: unset; right: unset; padding: 15px; box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; }
.nav-bottom { position: relative; z-index: 20; background: #0159a0; height: 32px; padding: 0em; }
.nav-bottom .navbar-nav .nav-link { color: #fff; align-items: center; height: 40px; font-size: 12px; text-transform: uppercase; display: inline-flex; }
.nav-bottom .navbar-nav .nav-item { -webkit-box-flex: 1; -ms-flex: auto; flex: auto; height: 100%; margin-right: 16px; }
.navbar-nav .nav-item .nav-link { text-align: center; }
.navbar-nav .nav-item .nav-link i { margin-right: 7px; font-size: 17px; }
.navbar-nav .nav-item .nav-link span { display: block; font-size: 12px; color: #fff; }

.btn-tuvan { margin-right: -94px; }
.tu_van_mua_hang { padding-left: 7px; padding-right: 7px; color: #fff; background: #f14f66; border-radius: 3px; font-weight: 700; text-transform: uppercase; display: block; position: relative; font-size: 14px; }
.tu_van_mua_hang svg { position: absolute; top: -16px; right: -16px; width: 35px; height: 35px; }
.tu_van_mua_hang .sub { position: absolute; background: #f9f9f9; z-index: 99; display: none; box-shadow: rgb(0 0 0 / 18%) 0 6px 12px 0; border-radius: 4px; width: 135px; left: 0; top: 40px; }
.sale-off { padding-left: 7px; padding-right: 7px; color: #000; background: #fff000; border-radius: 3px; font-weight: 700; text-transform: uppercase; display: block; font-size: 14px; }

.fs-mnsul3, .fs-mnsul1 { padding: 0; }
.fs-mnsul3>li { list-style: none; font-size: 1rem; padding: 5px 0; position: relative; }
.fs-mnsul3>li>a { color: #3d3d3d; }
.fs-mnsul3>li:hover>a { color: #0159a0; }
.fs-mnsul1>li { padding: 5px 0; list-style: none; font-size: 13px; }

ul.fs-mnsul3>li:hover>ul.sub-menu-custom { opacity: 1; visibility: visible; }
ul.fs-mnsul3>li>ul.sub-menu-custom { position: absolute; top: 0; left: 108%; width: 190px; z-index: 2; padding-left: 0; list-style: none; transition: all 0.2s linear; opacity: 0; visibility: hidden; margin: .125rem 0 0; font-size: 1rem; color: #212529; text-align: left; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, .15); border-radius: .25rem; min-width: 230px; right: unset; padding: 15px; box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px; }

.btn-mobile{ border: none; background: #fff; }
.address-branch{ margin-top: 10px; }
.address-branch span{ color: #fff; font-size: 14px; padding-left: 5px; }
.address-branch i{ padding: 5px; border: 1px solid #fff; border-radius: 50%; color: #b70b0b; font-size: 14px; width: 25px; height: 25px; }
.logo-mobile{ padding: 8px 16px; color: rgb(255, 255, 255) !important; display: flex; -webkit-box-align: center; align-items: center; text-decoration: none; }
.visual{ background-color: #48a3f6;justify-items: center;padding: 10px}

.nav-menumobiletablet { 
    text-align: center; 
    position: fixed; 
    z-index: 3; left: 0px; right: 0px; top: 0px; 
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; 
    padding: 0.5rem; background: #48a3f6; 
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    /* Cắt bỏ ngay lập tức những phần tử con nào dám thò ra ngoài */
    overflow-x: hidden !important;

}
/* 2. Ép các thẻ con (Tìm kiếm, Địa chỉ) phải nằm ngoan ngoãn trong khung */
.nav-menumobiletablet .search-mobile,
.nav-menumobiletablet .address-branch {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 3. Thu hồi thuộc tính left: 12px đang đẩy form tìm kiếm lệch sang phải */
.nav-menumobiletablet .input-search {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}
.cart-contents, .nav-menu-toggle { color: #fff; font-size: 22px; display: grid; }
.input-search { display: flex; width: 100%; align-items: center; top: 48px; left: 12px; right: 12px; z-index: 1; line-height: 36px; padding: 0px 12px; background-color: rgb(255, 255, 255); border-radius: 3px; transition-duration: 0.3s; }
.input-search img { width: 24px; height: 24px; }
.input-search input { border: 0px; height: 36px; line-height: 36px; margin: 0px 0px 0px 8px; outline: 0px; width: 100%; padding: 0px; background-color: #fff; }
.nav-menu-background { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); opacity: 0; z-index: -1; transition: opacity 400ms ease-in-out; }
.nav-menu-background.active { opacity: 1; z-index: 4; }
.nav-menu1 { position: relative; top: 0px; overflow: hidden; overflow-y: auto; background: #fff; list-style: none; padding: 0px; height: 100vh; padding-bottom: 80px; padding-top: 10px; -webkit-overflow-scrolling: touch; }
.nav-menu1 li { padding: 0 10px; font-size: 15px;list-style-type: none;}
.nav-menu1 li>a { display: flex; align-items: center; color: #333; text-decoration: none; }
.nav-menu1 li>a:hover, .nav-menu1 li>a:active { background: #ccc; }
.nav-menu1 li::marker{ display: none; }
.card-header{ background-color: #fff; }
.card-body{ padding: 10px; }
.fs-submenu{ padding-left: 10px; }
.fs-submenu li {border-bottom:1px solid rgb(161 161 160 / 10%);padding: 10px 15px}
.fs-submenu li>a:hover{color: #48a3f6}
.nav-menu-wrap.active { transform: translate3d(0%, 0px, 0px) rotate(0deg); }

.related-products { background: white; border-radius: 12px 12px 3px 3px; padding: 10px; margin-bottom: 10px; }
.related-products h2 { font-size: 16px; font-weight: bold; color: #101828; margin-bottom: 16px; padding: 10px 0 0 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.product-card {
    position: relative; 
    background: #fff;
    /* border: 1px solid #eaecf0; */
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper { 
    display: block;
    position: relative; 
    height: 189px; 
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat; 
    flex-shrink: 0; 
}
.product-badge { font-size: 11px; font-weight: bold; color: white; padding: 3px 10px; border-radius: 10px; width: fit-content; }
.badge { font-weight: 500;}
.badge-orange { background: #ea9d02; }
.badge-blue { background: #48a3f6; }
.badge-category { background: #158bf1; }

.product-details { 
    padding: 10px; 
    display: flex;
    flex-direction: column;
    flex: 1; 
}

.product-name a { 
    font-size: 15px; 
    line-height: 22px;
    font-weight: bold; 
    color: #474c51; 
    overflow: hidden;
    text-align: left;
    margin-left: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 44px; 
}

.product-specs { 
    display: block; /* Chuyển về block thông thường */
    overflow: hidden; /* Cắt bỏ toàn bộ nội dung tràn ra ngoài */
    line-height: 24px;
    height: 52px; /* Chốt cứng chiều cao bằng đúng 2 dòng (24px * 2) */
    margin-bottom: 8px;
    margin-bottom: 8px; 
}

.spec-badge { 
    display: inline; 
    font-size: 11px; 
    color: #777777; 
    border: 1px solid #eeeeee; 
    border-radius: 5px; 
    padding: 4px; 
    margin-right: 4px; 
    white-space: normal; 
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.product-promotions { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 10px; }

.product-price { 
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px; 
    margin-top: auto; 
}
.product-rating { 
    display: flex; align-items: center; gap: 8px; 
}
.promo-badge { display: flex; align-items: center; gap: 3px; background: rgba(153, 206, 255, 0.5); border-radius: 4px; padding: 4px; }
.promo-badge img { width: 9px; height: 9px; }
.promo-badge span { font-size: 9px; color: #0159a0; }
.promo-badge i { color: #0159a0; font-size: 12px; }
.price-current { font-size: 14px; font-weight: bold; color: #0159a0; }
.price-original { font-size: 12px; color: #222222; text-decoration: line-through; }
.product-rating img { width: 11px; height: 10px; }
.product-rating span { font-size: 13px; color: #aaaaaa; }

.footer { background: #f9f9f9 }
.footer-wrapper { padding: 30px; margin-bottom: 20px; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-logo { width: 250px; height: auto; margin: 0px auto; }
.social { display: flex; gap: 20px; justify-content: center; width: 100%; margin-left: 0; }
.social-logo { border: 1px solid #ccc; width: 40px; height: 40px; border-radius: 50%; padding: 7px; transition: 0.3s;}
.social-logo:hover { border-color: #0159a0; background: #e8f0ff; }
.store-group { display: flex; flex-direction: column; gap: 10px; }
.store-group h3 { font-size: 18px; font-weight: bold; color: #171d29; line-height: 28px; margin: 0; }
.store-group h3.mt-4 { margin-top: 15px; }
.store-address { display: flex; align-items: flex-start; gap: 8px; }
.store-address img { width: 19px; height: 19px; margin-top: 2px; }
.store-address p { font-size: 13.3px; line-height: 1.5; margin: 0; color: #171d29; line-height: 20px; }
.store-phone i { color: #1081e0}
.link { color: #4c6cff; cursor: pointer; text-decoration: none;}
.store-phone { display: flex; align-items: center; gap: 10px; }
.store-phone img { width: 20px; height: 20px; }
.store-phone a { font-size: 13.2px; font-weight: 600; color: #000000; line-height: 20px; text-decoration: none;}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h3 { font-size: 17.6px; font-weight: bold; color: #171d29; line-height: 28px; margin-bottom: 8px; margin-top: 0;}
.footer-links a { font-size: 13.3px; color: #171d29; text-decoration: none; line-height: 20px; }
.footer-links a:hover { color: #489ad4; }
.footer-divider { height: 1px; background: #e5e7eb; margin: 25px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.copyright { font-size: 11.3px; color: #171d29; line-height: 16px; }
.footer-badges { display: flex; align-items: center; gap: 16px; margin-top: 5px; }
.footer-badges a:nth-child(1) img { width: 300px; height: auto; }
.footer-badges a:nth-child(2) img { width: 100px; height: auto; }

@media (min-width: 576px) {
    .modal-dialog.modal-answer { max-width: 800px; margin: 1.75rem auto; }
}
.modal-header .modal-title { color: #0159a0; font-weight: bold; font-size: 18px; text-transform: uppercase; }
.close-css { font-size: 14px; font-weight: 400; vertical-align: middle; margin-left: 5px; }
.modal-body img { max-width: 100% !important; height: auto !important; display: block; margin: 10px auto; border-radius: 4px; }
.modal-body { padding: 20px 30px; color: #333; }
.modal-body p, .modal-body .p1, .modal-body div { line-height: 1.6; margin-bottom: 12px; font-size: 14px; }
.modal-body strong, .modal-body u { color: #171d29; }

/* Đặc điểm nổi bật */
.features-section { border-radius: 12px; padding: 0 15px; margin-bottom: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;padding: 39px; }
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature-icon { width: 62px; height: 62px; }
.feature-text { display: flex; flex-direction: column; gap: 4px; }
.feature-title { font-size: 14px; color: #090d14; line-height: 20px; margin: 0px; font-weight: 600;}
.feature-desc { font-size: 14px; color: black; line-height: 20px; }

/* =================================================================================
   FILE TRANGCHU.CSS (Dành riêng cho giao diện Trang Chủ)
================================================================================= */

/* =======================================================
   1. KHU VỰC BANNER & MENU BÊN TRÁI (PC)
======================================================= */
.baner-header {
    margin-top: 15px; /* Tạo khoảng trống giữa Header và khối Banner */
}

/* --- Tinh chỉnh Menu dọc cố định trên Trang Chủ --- */
.baner-header .menu {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Căn chỉnh bảng menu con (Megadrop) bay ra khớp mép menu cha */
.baner-header .menu > li > .megadrop {
    left: 100%; /* Đẩy bắt đầu từ mép phải của cột menu */
    top: -1px;
    margin-left: 0;
    min-height: calc(100% + 2px);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


/* =======================================================
   2. CÁC BANNER SLIDE CHÍNH & PHỤ
======================================================= */

/* Khoảng cách cột nếu thiếu class của Bootstrap */
.pr-0 { padding-right: 0 !important; }
.pt-2 { padding-top: 0.5rem !important; }

/* Bo góc cho Slide chính */
.banber-header22 .carousel-inner {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.banber-header22 .carousel-item img {
    object-fit: cover;
    border-radius: 5px;
}

/* Định dạng 3 Banner nhỏ bên dưới */
.banber-header .banner img {
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hiệu ứng đưa chuột vào banner nhỏ */
.banber-header .banner:hover img {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* =======================================================
   3. RESPONSIVE (PC / IPAD / MOBILE)
======================================================= */

/* --- ĐỒNG BỘ CHIỀU RỘNG MEGADROP VỚI BANNER BÊN CẠNH --- */
@media (min-width: 1024px) {
    .baner-header .menu>li>.megadrop { width: 640px; }
}
@media (min-width: 1097px) {
    .baner-header .menu>li>.megadrop { width: 750px; }
}
@media (min-width: 1350px) {
    .baner-header .menu>li>.megadrop { width: 862px; }
}

/* --- MÀN HÌNH PC (TỪ 1025PX TRỞ LÊN): ẨN BANNER MOBILE --- */
@media (min-width: 1025px) {
    .banner-mobile {
        display: none !important;
    }
}

/* =======================================================
   HIỆU ỨNG CARD FLASHSALE / DEAL SỐC BÁN CHẠY
======================================================= */
.flash-sale-card {
    border: 2px solid #0159a0 !important; /* Viền đỏ cam rực rỡ */
    box-shadow: 0 4px 12px rgb(45 152 245 / 15%) !important;
    background: #fafaff !important; 
    position: relative;
    overflow: visible !important; 
    transition: all 0.3s ease;
}

.flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px #babcff !important;
    border-color: #0159a0 !important;
}

/* Ruy băng "HOT" ở góc trên bên phải */
.hot-ribbon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #0159a0, #258ef0);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 20px 20px 0px 20px; /* Bo góc vát điệu đà */
    z-index: 2;
    box-shadow: 0 4px 8px #0159a0;
    text-transform: uppercase;
    animation: pulse-hot 1.5s infinite alternate; /* Hiệu ứng đập thình thịch */
}

/* Ép nổi bật màu chữ của Badge Flashsale */
.flash-sale-card .badge-category {
    background: #158bf1;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Nhấn mạnh giá bán sâu hơn */
.flash-sale-card .price-current {
    color: #0159a0 !important;
    font-size: 17px !important; 
    font-weight: 500 !important;
}

/* Label phần trăm giảm nằm cạnh giá */
.discount-percent {
    background: #0159a0;
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    display: inline-block;
    transform: translateY(-2px);
}

/* ==========================================
   THANH TIẾN TRÌNH (PROGRESS BAR) RỰC LỬA
========================================== */
.flash-sale-progress {
    margin-top: 10px;
    position: relative;
    background: #babcff; /* Màu nền mờ của thanh chưa đầy */
    border-radius: 12px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flash-sale-progress .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #48a3f6, #0159a0); /* Màu cam chuyển đỏ */
    border-radius: 12px;
    z-index: 1;
    transition: width 0.5s ease;
}

.flash-sale-progress .progress-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Đổ bóng để dễ đọc trên nền sáng/tối */
}

/* Icon lửa đang cháy nhấp nhô */
.flash-sale-progress i {
    position: absolute;
    left: 8px;
    z-index: 2;
    color: #fffc00; /* Vàng rực */
    font-size: 12px;
    animation: burn 0.8s infinite alternate;
}

/* Hiệu ứng nổi bồng bềnh và đổ bóng viền khi đưa chuột vào thẻ (Áp dụng cho TẤT CẢ các thẻ) */
.product-card:hover {
    border: 1px solid #d4d4d480;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); 
}

/* --- XỬ LÝ ẢNH SẢN PHẨM (Khóa Zoom & Mượt mà) --- */

/* 1. Khung chứa ảnh ngoài cùng (Thẻ a) */
.product-image-wrapper {
    display: block; /* Ép thẻ a thành block */
    width: 100%;
    height: 180px; /* Chiều cao cố định cho ảnh để các thẻ đều nhau */
    position: relative;
    border-radius: 8px; /* Bo góc ảnh một chút */
    overflow: hidden; /* **CHÌA KHÓA**: Tuyệt đối không cho cái gì bên trong lọt ra ngoài */
    background: #f8f9fa; /* Nền xám nhạt trong khi chờ ảnh tải */
    text-decoration: none !important; /* Xóa gạch chân */
}

/* 2. Thẻ div con thực sự chứa hình nền (background-image) */
.product-image-inner {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-size: contain; /* Phóng to hoặc thu nhỏ ảnh sao cho vừa vặn */
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s ease; /* transition trên chính nó cho mượt */
}

/* HIỆU ỨNG HOVER ZOOM (Áp dụng cho TẤT CẢ các thẻ) */
/* Khi đưa chuột vào toàn bộ .product-card, chỉ phóng to cái .product-image-inner bên trong */
.product-card:hover .product-image-inner {
    transform: scale(1.05); /* Phóng to ảnh 5% */
}

/* --- XỬ LÝ BADGES, DETAILS, TEXT (Cho complete giao diện) --- */

/* Các nhãn dán nằm trên ảnh */
.product-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 0; /* Nằm trên ảnh nhưng dưới hot-ribbon */
}

.product-details {
    padding: 10px 0 0 0;
    flex-grow: 1; /* details tự động chiếm hết khoảng trống còn lại */
    display: flex;
    flex-direction: column;
}

/* transition cho chữ để đổi màu mượt mà */
.product-card .product-name a {
    transition: color 0.3s ease;
}

/* Đổi màu tiêu đề sản phẩm sang màu Xanh Dương (Màu Thương Hiệu) khi hover (Áp dụng TẤT CẢ) */
.product-card:hover .product-name a {
    color: #0159a0 !important; 
}

/* Dải màu rực rỡ báo hiệu Flash Sale (Thêm hiệu ứng rung cho vui mắt) */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    /* ... */
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.flash-sale-progress {
    /* ... Style gốc của flash-sale-progress ... */
    transition: background-color 0.3s;
}

.product-card:hover .flash-sale-progress i {
    animation: shake 0.5s; /* Rung nhẹ icon tia sét khi hover */
    animation-iteration-count: infinite;
}

/* =======================================================
   ÉP STYLE CHO NỘI DUNG TỪ CKEDITOR/TINYMCE TRONG MODAL
======================================================= */

/* =======================================================
   GLOBAL STYLE CHO NỘI DUNG TỪ CKEDITOR TRONG TẤT CẢ MODAL
======================================================= */

/* Định dạng chung cho phần thân Modal */
.modal-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding: 24px; /* Tránh text dính sát vào lề Modal */
}

/* --- 1. CÁC THẺ HEADING (H2 -> H6) --- */
.modal-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0159a0; /* Màu xanh thương hiệu */
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0159a0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-top: 18px;
    margin-bottom: 10px;
}

.modal-body h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-body h6 {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-top: 12px;
    margin-bottom: 8px;
}

/* --- 2. CÁC THẺ VĂN BẢN & LINK --- */
.modal-body p {
    margin-bottom: 15px;
    text-align: justify; /* Căn đều 2 bên cho văn bản dài dễ đọc */
}

.modal-body a {
    color: #0159a0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modal-body a:hover {
    color: #d32f2f; /* Đổi màu đỏ khi lướt chuột qua Link */
    text-decoration: underline;
}

/* Nhấn mạnh chữ đậm bằng màu xanh cho nổi bật */
.modal-body strong, 
.modal-body b {
    font-weight: 700;
    color: #0159a0; 
}

.modal-body em, 
.modal-body i {
    color: #555;
}

/* Trích dẫn (Blockquote) - CKEditor hay dùng */
.modal-body blockquote {
    border-left: 4px solid #0159a0;
    background-color: #f4f6f8;
    padding: 12px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 6px 6px 0;
}

.modal-body blockquote p:last-child {
    margin-bottom: 0;
}

.modal-body hr {
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

/* --- 3. CÁC THẺ MEDIA (IMG, VIDEO, IFRAME) --- */
.modal-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto; /* Căn giữa ảnh */
    border-radius: 6px;
}

/* Đảm bảo video Youtube chèn từ CKEditor không bao giờ bị tràn Modal */
.modal-body iframe,
.modal-body video {
    max-width: 100% !important;
    border-radius: 6px;
    margin: 15px 0;
}

/* --- 4. CÁC THẺ DANH SÁCH (UL, OL, LI) --- */
.modal-body ul, 
.modal-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* --- 5. CÁC THẺ BẢNG BIỂU (TABLE) --- */
.modal-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    overflow-x: auto; /* Sinh thanh cuộn ngang trên điện thoại */
    -webkit-overflow-scrolling: touch;
}

.modal-body table th,
.modal-body table thead td,
.modal-body table tr:first-child td {
    background-color: #f4f6f8;
    color: #0159a0;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eaecf0;
}

.modal-body table td {
    padding: 12px 15px;
    vertical-align: top;
    border-bottom: 1px solid #eaecf0;
    font-size: 14px;
}

/* Kẻ vạch dọc */
.modal-body table tr td:first-child,
.modal-body table tr th:first-child {
    border-right: 1px solid #eaecf0;
}

.modal-body table tr:last-child td {
    border-bottom: none;
}

.modal-body table td p {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .modal-dialog {
        max-width: 900px;
        margin: 1.75rem auto;
    }
}

.modal-header {
    background: #48a3f6;
    color: #fff;
}

.modal-content{
    border: none;
    border-radius: none;
}

#icon-fixed-right {
    width: 50px;
    position: fixed;
    right: 5px;
    top: 250px;
    z-index: 2;
}
@media (min-width: 320px) and (max-width: 768px) {
    #icon-fixed-right {
        width: 50px;
        position: fixed;
        left: 5px;
        top: unset;
        bottom: 8px;
        z-index: 2;
    }
}


#icon-fixed-right a {
    display: block;
    margin-top: 5px;
}

#icon-fixed-right a:first-child {
    margin-top: 0;
}

#icon-fixed-right a i {
    width: 40px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    border-radius: 9999px;
}

.fa-facebook-f,
.fa-facebook-messenger {
    background: #4267b2;
}

.icons.fab.fa-youtube {
    background: red;
}

.zalo-icon {
    background: #1890ff;
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    padding: 5px;
    text-align: center;
}

.fab-wrapper {
    position: fixed;
    bottom: 70px;
    right: 0;
    z-index: 1;
}

.fab-checkbox {
    display: none !important;
}

.fab-checkbox:checked~.devvn_bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
    margin-bottom: 0;
}

.fab-wrapper .fab {
    width: 60px;
    max-width: unset;
    height: 60px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: 50%;
    background: #d70018;
    box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1000;
    overflow: hidden;
    transform: rotate(0deg);
    -webkit-transition: all .15s cubic-bezier(.15, .87, .45, 1.23);
    transition: all .15s cubic-bezier(.15, .87, .45, 1.23);
}

.fab-checkbox:checked~.fab {
    transform: rotate(90deg);
    -webkit-transition: all .15s cubic-bezier(.15, .87, .45, 1.23);
    transition: all .15s cubic-bezier(.15, .87, .45, 1.23);
}

[class*=icon-cps-] {
    display: inline-block;
    vertical-align: middle;
    background-image: url('/templates/laptopre/assets/images/list-icon.png') !important;
    background-repeat: no-repeat;
    background-size: 453px;
}

.icon-cps-fab-menu {
    width: 50px;
    height: 50px;
    margin: 0 !important;
    background-size: 694px;
    background-position: -649px 0;
}

.fab-checkbox:checked~.fab .icon-cps-fab-menu {
    width: 30px;
    height: 30px;
    margin: 0;
    background-size: 615px;
    background-position: -291px -70px;
}

.fab-wheel {
    width: 300px;
    height: 220px;
    position: absolute;
    bottom: 15px;
    right: 15px;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all .3s ease;
    z-index: 12;
}

.fab-checkbox:checked~.fab-wheel {
    transform: scale(1);
}

.fab-wheel .fab-action {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    position: absolute;
    text-decoration: none;
}

.fab-wheel .fab-action-1 {
    top: 0;
    right: 0;
}

.fab-title {
    float: left;
    margin: 0 5px 0 0;
    opacity: 0;
}

.fab-checkbox:checked~.fab-wheel .fab-title {
    opacity: 1;
}

.fab-button {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    padding: 4px;
    border-radius: 50%;
    background: #0f1941;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
    font-size: 24px;
    color: White;
    transition: all 1s ease;
    overflow: hidden;
}

.icon-cps-local {
    width: 28px;
    height: 28px;
    background-position: 0px -49px;
}

.fab-wheel .fab-button-1 {
    background: #dd5145;
}

.fab-wheel .fab-action-2 {
    top: 40px;
    left: 85px;
}

.fab-wheel .fab-button-2 {
    background: #fb0;
}

.icon-cps-phone {
    width: 28px;
    height: 28px;
    background-position: -51px -49px;
}

.fab-wheel .fab-action-3 {
    left: 50px;
    bottom: 70px;
}

.fab-wheel .fab-button-3 {
    background: #0f9d58;
}

.icon-cps-chat {
    width: 30px;
    height: 30px;
    background-position: -369px 0px;
}

.fab-wheel .fab-action-4 {
    left: 0;
    bottom: 0;
}

.fab-wheel .fab-button-4 {
    background: #2f82fc;
}

.icon-cps-chat-zalo {
    width: 30px;
    height: 30px;
    background-position: -362px -1px;
    background-size: 515px;
}

.suggestions-chat-box {
    min-width: 140px;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #1d72e0;
    border-radius: 10px;
    background: #277cea;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    position: fixed;
    right: 80px;
    bottom: 7%;
    z-index: 11;
}

.hidden {
    display: none !important;
}

.align-items-center {
    -ms-flex-align: center !important;
    align-items: center !important;
    -ms-flex-pack: distribute !important;
    justify-content: space-around !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

.suggestions-chat-box #btnClose {
    position: absolute;
    top: 2px;
    left: 2px;
}

i.icon-cps-face {
    width: 28px;
    height: 28px;
    background-position: -177px 0px;
}

.fab-checkbox:not(:checked)~.fab {
    animation-name: zoom;
    -webkit-animation-name: zoom;
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
    animation-duration: 1.5s;
    -webkit-animation-duration: 1.5s;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    cursor: pointer;
    box-shadow: 0 0 0 0 #c31d1d;
}

/* =======================================================
   NÚT XEM THÊM (LOAD MORE) - TRANG TÌM KIẾM / DANH MỤC
======================================================= */
.btn-load-more {
    /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #0159a0;
    color: #0159a0 !important;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer;
}

.btn-load-more:hover {
    background-color: #0159a0;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(1, 89, 160, 0.2);
    transform: translateY(-2px); /* Bay nhẹ lên khi hover */
}

/* =======================================================
   TỐI ƯU LƯỚI SẢN PHẨM (GRID) CHO MỌI TRANG
======================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Responsive: Thu về 3 cột trên iPad Pro / Màn hình ngang gọn */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: Thu về 2 cột trên Mobile / Tablet dọc */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Thu hẹp khoảng cách trên điện thoại */
    }
    .product-badge{
        padding: 3px 6px;
    }
}

.gap-5px {
    gap: 5px !important;
    justify-content: normal !important;
}
.button:focus{
    outline:  none !important;
}

/* =======================================================
   TH MODERN HEADER CSS (LAPTOP + MOBILE)
======================================================= */
:root {
    --th-primary: #48a3f6; /* Xanh Thương hiệu */
    --th-secondary: #0159a0; /* Xanh đậm */
    --th-gold: #fcd836; /* Vàng nổi bật */
}

.th-header {
    background: var(--th-primary);
    position: relative;
    z-index: 1000;
}

/* --- MAIN BAR --- */
.th-header-main { padding-top: 12px; }
.th-main-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

.th-logo img { height: 45px; width: auto; object-fit: contain; }

/* Desktop Search */
.th-search-box { flex: 1; max-width: 600px; background: #fff; border-radius: 8px; overflow: hidden; height: 40px; }
.th-search-select { background: #f8f9fa; border: none; border-right: 1px solid #ddd; padding: 0 10px; font-size: 14px; outline: none; cursor: pointer; max-width: 140px;}
.th-search-input { flex: 1; border: none; padding: 0 15px; font-size: 14px; outline: none; }
.th-search-btn { background: #fff; border: none; color: var(--th-secondary); padding: 0 20px; font-size: 16px; cursor: pointer; transition: 0.2s; }
.th-search-btn:hover { background: #f1f1f1; }

/* Actions (Hotline, Cart) */
.th-actions { display: flex; align-items: center; gap: 20px; }
.th-hotline { display: flex; align-items: center; color: #fff; gap: 10px; }
.th-hotline i { font-size: 24px; }
.th-hotline a { color: #fff; font-size: 20px; }
.th-hotline .text { display: flex; flex-direction: column; line-height: 1.2; }
.th-hotline .text span { font-size: 14px; }
.th-hotline .text strong { font-size: 15px; font-weight: 700; }

.th-cart { display: flex; align-items: center; color: #fff !important; background: rgba(255,255,255,0.2); padding: 8px 12px; border-radius: 8px; text-decoration: none; position: relative; gap: 8px; transition: 0.3s; }
.th-cart:hover { background: rgba(255,255,255,0.3); }
.th-cart i { font-size: 20px; }
.th-cart-count { position: absolute; top: -5px; left: 22px; background: var(--th-gold); color: #000; font-size: 11px; font-weight: bold; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.th-cart-text { font-size: 14px; font-weight: 500; margin-left: 8px; }

/* --- BOTTOM BAR (DESKTOP) --- */
.th-header-bottom { background: var(--th-secondary); }
.th-bottom-wrapper { display: flex; align-items: center; }

.th-category-wrap { position: relative; width: 260px; }
.th-cat-title { background: var(--th-gold); color: #111; font-weight: 700; font-size: 15px; padding: 12px 15px; cursor: pointer; display: flex; align-items: center; text-transform: uppercase; border-radius: 4px 4px 0 0; }
.th-cat-title i:first-child { margin-right: 10px; font-size: 18px; }

/* Desktop Mega Menu */
.th-cat-list { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; list-style: none; padding: 0; margin: 0; visibility: hidden; opacity: 0; transition: 0.2s; border-radius: 0 0 6px 6px; z-index: 100;}
.th-category-wrap:hover .th-cat-list { visibility: visible; opacity: 1; }

.th-cat-item { position: static; border-bottom: 1px solid #f1f1f1; }
.th-cat-item:last-child { border-bottom: none; }
.th-cat-item > a { display: flex; align-items: center; padding: 10px 15px; color: #333 !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.th-cat-item > a:hover { background: #f8f9fa; color: var(--th-primary) !important; }
.th-cat-item .icon { width: 25px; text-align: center; color: #777; margin-right: 8px; }

.th-megamenu { position: absolute; left: 100%; top: 0; width: 800px; min-height: 100%; background: #fff; border-left: 1px solid #eee; padding: 20px; visibility: hidden; opacity: 0; box-shadow: 4px 4px 10px rgba(0,0,0,0.05); }
.th-cat-item:hover .th-megamenu { visibility: visible; opacity: 1; }

.th-megamenu h5 { font-size: 15px; color: var(--th-secondary); font-weight: 700; margin-bottom: 10px; border-bottom: 1px solid #f1f1f1; padding-bottom: 5px; text-transform: uppercase; }
.th-sub-list { list-style: none; padding: 0; margin: 0; }
.th-sub-list li { margin-bottom: 8px; }
.th-sub-list a { color: #555 !important; font-size: 13px; text-decoration: none; transition: 0.2s; }
.th-sub-list a:hover { color: var(--th-primary) !important; padding-left: 5px; }

/* Main Nav */
.th-main-nav { display: flex; list-style: none; margin: 0; padding: 0 0 0 20px; gap: 20px; }
.th-main-nav a { color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 500; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: 0.3s;}
.th-main-nav a:hover { color: var(--th-gold) !important; }
.th-main-nav li {align-content: center;}

/* --- MOBILE STYLES --- */
.th-menu-toggle { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0; }
.th-mobile-search { padding: 10px 0; background: var(--th-secondary); }
.th-mobile-search .th-search-input { height: 40px; border-radius: 6px 0 0 6px; }
.th-mobile-search .th-search-btn { height: 40px; border-radius: 0 6px 6px 0; }

/* Mobile Off-canvas Drawer */
.th-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1040; visibility: hidden; opacity: 0; transition: 0.3s; }
.th-menu-overlay.show { visibility: visible; opacity: 1; }

.th-mobile-drawer { position: fixed; top: 0; left: -320px; width: 300px; height: 100%; background: #fff; z-index: 1050; overflow-y: auto; transition: 0.3s ease-in-out; display: flex; flex-direction: column; }
.th-mobile-drawer.open { left: 0; }

.th-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--th-primary); }
.th-drawer-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

.th-drawer-body { padding: 10px; overflow-y: auto; }
.th-mobile-item { border-bottom: 1px solid #f1f1f1; margin-bottom: 5px; }
.th-mobile-item-header { display: flex; justify-content: space-between; align-items: center; }
.th-mobile-link { flex: 1; padding: 12px 10px; color: #333 !important; font-size: 15px; font-weight: 600; text-decoration: none; display: flex; align-items: center;}
.th-mobile-link i { width: 20px; text-align: center; color: var(--th-primary); margin-right: 8px;}
.th-mobile-collapse-btn { background: none; border: none; padding: 12px 15px; color: #666; font-size: 18px; }

.th-mobile-submenu { background: #f8f9fa; padding: 10px 15px; border-radius: 6px; margin-bottom: 10px; }
.th-mobile-sub-title { font-size: 14px; font-weight: 700; color: var(--th-secondary); margin: 10px 0 5px 0; }
.th-mobile-sub-list { list-style: none; padding: 0 0 0 10px; margin: 0; border-left: 2px solid #ddd; }
.th-mobile-sub-list li a { display: block; padding: 6px 0 6px 10px; color: #555 !important; font-size: 14px; text-decoration: none;}

/* Media Queries for Mobile/Tablet */
@media (max-width: 991px) {
    .th-header{display: none;}
    .th-logo img { height: 35px; }
    .th-header-main { padding: 10px 0; }
    .th-cart { padding: 5px 10px; }
    .th-cart-count { left: 16px; top: -8px;}
}

/* =======================================================
   1. ĐỒNG BỘ HIỆU ỨNG XOAY ICON CHO TOÀN BỘ MENU MOBILE
======================================================= */
#menu-laptop .btn-link i {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

/* Sử dụng class rotate-up để điều khiển bằng JS, không phụ thuộc vào HTML lỗi */
#menu-laptop .btn-link i.rotate-up {
    transform: rotate(180deg);
}

/* =======================================================
   2. LÀM ĐẸP ĐỘC LẬP CHO KHỐI "TƯ VẤN BÁN HÀNG"
======================================================= */
#tu-van-bh-one .card-body {
    padding: 0 10px 10px 10px;
}
#tu-van-bh-one .sub {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
#tu-van-bh-one .item {
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
#tu-van-bh-one .item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
#tu-van-bh-one .span-1 {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0159a0; 
    text-transform: uppercase;
    margin-bottom: 8px;
}
#tu-van-bh-one span:not(.span-1) {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 500;
}
#tu-van-bh-one span:not(.span-1)::before {
    content: "\f095"; /* Icon điện thoại */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #48a3f6;
    font-size: 13px;
    margin-right: 10px;
}

/* =======================================================
   MEGA MENU HÌNH ẢNH (HOVER VÀO MENU NGANG)
======================================================= */
/* 1. Thiết lập vị trí tương đối cho thẻ li chứa menu */
.th-main-nav li.th-nav-dropdown {
    position: relative;
    padding: 10px 0; /* Tạo khoảng không gian để khi hover không bị rớt chuột */
}

/* Cập nhật lại khối Menu đổ xuống thành dạng Grid 3 cột */
.th-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 880px; /* Tăng độ rộng ra để chứa 3 cột cho đẹp */
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 20px 25px;
    z-index: 1000;
    
    /* Chuyển sang dùng Grid để tạo layout 3 cột x 2 hàng */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px; /* 30px là khoảng cách giữa 2 hàng, 40px là khoảng cách giữa các cột */
    
    /* Hiệu ứng mượt mà khi xuất hiện */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

/* Đảm bảo mũi tên chĩa lên (arrow) nằm đúng vị trí tuyệt đối, không bị Grid làm ảnh hưởng */
.th-nav-arrow {
    position: absolute;
    top: -8px;
    left: 35px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -3px 2px rgba(0,0,0,0.04));
    z-index: 1001; /* Đảm bảo nằm đè lên viền khối grid */
}

/* Đảm bảo nhóm dàn trải hết độ rộng của 1 ô Grid */
.th-nav-group {
    width: 100%;
    flex: 1;
}

/* Khi đưa chuột vào thì hiện menu */
.th-main-nav li.th-nav-dropdown:hover .th-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(-5px); /* Vị trí hoàn hảo khớp với thẻ nav */
    pointer-events: auto;
}


.th-nav-group-title {
    font-size: 14px;
    color: #0159a0; /* Xanh đậm công ty */
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.th-nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 5. Từng item hình ảnh & chữ */
.th-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 85px; /* Giới hạn chiều rộng để item gọn gàng */
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.th-nav-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.th-nav-item span {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Hiệu ứng khi lướt qua item */
.th-nav-item:hover {
    transform: translateY(-3px);
}

.th-nav-item:hover img {
    transform: scale(1.1); /* Phóng to ảnh nhẹ */
}

.th-nav-item:hover span {
    color: #48a3f6; /* Xanh nhạt công ty */
}

/* =======================================================
   THẺ TRẠNG THÁI KHO HÀNG (IN STOCK / OUT OF STOCK)
======================================================= */
.fpt-meta-status {
    display: inline-flex;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.2;
}

/* Còn hàng - Xanh lá */
.status-pill.in-stock {
    color: #059669; 
    background: #d1fae5;
}

/* Hết hàng - Đỏ */
.status-pill.out-of-stock {
    color: #dc2626; 
    background: #fee2e2;
}

/* Hàng sắp về - Xanh dương */
.status-pill.coming-soon {
    color: #0284c7; 
    background: #e0f2fe;
}

/* Vui lòng gọi - Cam/Vàng */
.status-pill.call-us {
    color: #d97706; 
    background: #fef3c7;
}
/* Tạm hết hàng */
.status-pill.temp-out-of-stock {
    background-color: #fff3cd; /* Nền vàng nhạt */
    color: #856404; /* Chữ vàng đậm */
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

@media (min-width: 992px) {
    .th-header-main.is-sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
        background: var(--th-primary); /
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        transform: translateY(-100%); /* Ẩn ngược lên trên */
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
    }

    /* Trạng thái khi vuốt lên -> Trượt xuống hiện ra */
    .th-header-main.is-sticky.show-sticky {
        transform: translateY(0);
    }
}

/* RESPONSIVE START */
@media (max-width: 1025px) {
    .nav-bottom .navbar-nav .nav-item { margin-right: 0px; }
    .top-menu-links>li { margin-right: 11px; }
    .form-search { width: 45%; }
    .navbar-logo img { width: 223px; }
    .kIrZeZ .menu { width: 22.5%; }
    
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 25px; padding: 0px; }
    .modal-dialog.modal-answer { max-width: 90%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .th-main-nav a{ font-size: 12px;gap:5px}
}
@media (max-width: 465px) {
    body { padding-top: 44px; }
    .container {padding: 5px;}
    .badge { display: none; }
    .product-details { padding: 5px; }
    .product-price {
        position: relative; /* Làm mốc để thẻ -12% neo vào */
        flex-wrap: wrap; 
        gap: 2px 8px; 
        padding-right: 35px; /* Chừa một khoảng 35px bên phải để không bị chữ đè lên nhau */
    }

    /* 2. Ép Giá hiện tại nằm trọn 1 dòng trên */
    .price-current {
        width: 100%; 
    }

    /* 3. Tách thẻ % giảm giá ra khỏi luồng, ép sát phải và căn giữa dọc */
    .discount-percent {
        position: absolute;
        right: 0; /* Ép sát lề phải */
        top: 50%; /* Kéo xuống giữa */
        transform: translateY(-50%); /* Căn giữa chính xác tuyệt đối theo trục Y */
        margin: 0; /* Xóa margin cũ đi */
    }
    .product-name a { min-height: auto;}
    .address-branch {display: none !important;}
}

@media (max-width: 768px) {
    header { height: 40px; position: fixed; top: 0; transition: all 0.5s; width: 100%; }
    .nav-up { top: -146px; }
    .product-card {padding: 5px;}
    .header-content { flex-direction: column; }
    
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 15px; }
    .footer-brand { grid-column: 1 / -1; align-items: center; }
    .footer-links { grid-column: 1 / -1; margin-top: 10px; }
    .store-group h3, .store-group h3.mt-2 { font-size: 15px; margin-top: 10px;}
    .store-address p { font-size: 12px; }
    .store-phone a { font-size: 13px; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .footer-badges { justify-content: center; width: 100%; }

    .nav-menu-wrap2 { position: fixed; top: 0px; height: 100%; width: 79%; z-index: 4; transform: translate3d(-100%, 0px, 0px) rotate(90deg); transform-origin: 0% 0%; }
    .nav-menu-wrap2.active { transform: translate3d(32%, 0px, 0px) rotate(0deg); }
    .nav-menu-background2 { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); opacity: 0; z-index: -1; }
    .nav-menu-background2.active { opacity: 0.6; z-index: 3; }
    .nav-menu2 { position: relative; top: 0px; width: 100%; height: 100%; overflow: hidden; overflow-y: auto; background: #fff; border-left: 1px solid; }
    .nav-menu2 li { list-style-type: none; display: block; position: relative; }
    .nav-menu2 li>a { display: block; color: #333; text-decoration: none; padding: 6px 15px; transition: all 300ms ease; }
    .nav-menu-toggle2 { background: #ccc; display: inline-block; text-align: center; cursor: pointer; margin-bottom: 15px; }
    .nav-menu2 .close div { padding: 10px 15px; cursor: pointer; background: #ccc; transition: all 300ms ease; }
}

@media (min-width: 320px) and (max-width: 1024px) {
    .logo-tab img { width: 192px; }
    .nav-top, .nav-bottom, .baner-header, .laptopgiatot { display: none !important; }
    .navbar-toggler { padding: 0 !important; }
    .navbar-brand { margin-right: 0 !important; }
    .nav-menu-wrap { position: fixed; top: 0px; height: 100%; width: 77%; -webkit-transition: all 450ms ease-in-out; transition: all 450ms ease-in-out; z-index: 5; transform: translate3d(-100%, 0px, 0px) rotate(90deg); transform-origin: 0% 0%; }
}

@media (min-width: 768px) and (max-width: 924px) {
    .logo-tab img { width: 250px; }
    .nav-menu-wrap { width: 50%; }
}

@media (max-width: 1290px) {
    .kIrZeZ .menu>li>.megadrop { left: 239px; }
}

@media (min-width: 1025px) { 
    .nav-menu-wrap, .nav-menu-background, .nav-menumobiletablet { display: none !important; }
}

@media (min-width: 1024px) {
    .nav-bottom .navbar-nav .nav-item { margin-right: 0px; }
    .tu_van_mua_hang { display: none; }
    .sale-off { display: none; }
    .kIrZeZ .menu>li>.megadrop { left: 156px; width: 640px; }
}

@media (min-width: 1097px) {
    .nav-bottom .navbar-nav .nav-item { margin-right: 0px; }
    .tu_van_mua_hang { font-size: 12px; display: block; margin-right: 10px; }
    .sale-off { font-size: 12px; display: block; }
    .kIrZeZ .menu>li>.megadrop { left: 185px; width: 750px; }
}

@media (min-width: 1250px) {
    .top-menu-links1 { display: none; }
    .top-menu-links { display: block; }
    .nav-bottom .navbar-nav .nav-item { margin-right: 16px; }
    .tu_van_mua_hang { font-size: 14px; display: block; }
    .sale-off { font-size: 14px; display: block; }
    .navbar-logo img { width: 245px; }
}

@media (min-width: 1350px) {
    .hotline, .top-menu-links1 { display: none; }
    .top-menu-links { display: block; }
    .nav-bottom .navbar-nav .nav-item { margin-right: 16px; }
    .tu_van_mua_hang { font-size: 14px; display: block; }
    .sale-off { font-size: 14px; display: block; }
    .kIrZeZ .menu>li>.megadrop { left: 200px; width: 862px; }
    .navbar-logo img { width: 275px; }
}

@media (min-width: 1400px) {
    .hotline, .top-menu-links1, .top-menu-links { display: block; }
    .nav-bottom .navbar-nav .nav-item { margin-right: 16px; }
    .tu_van_mua_hang { font-size: 14px; display: block; }
    .sale-off { font-size: 14px; display: block; }
    .kIrZeZ .menu>li>.megadrop { left: 218px; width: 862px; }
    .navbar-logo img { width: 275px; }
    .container { max-width: 1300px; }
}

.accordion-header:focus,
.accordion-header:active,
.btn:focus,
.btn:active,
.btn-link:focus,
.tab-btn:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}


/* =======================================================
   SẢN PHẨM ĐÃ XEM (DÁNG COMPACT THẺ NGANG) - FULL CSS CHUẨN
======================================================= */

/* 1. KHUNG BẢO VỆ CHỐNG TRÀN LAYOUT */
.viewed-products-section {
    background: #fff;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 0; /* Ép slider không phình to hơn cột chứa nó */
    width: 100%;
    overflow: hidden; /* Cắt phần tràn viền */
}

/* 2. HEADER: TIÊU ĐỀ & NÚT XÓA LỊCH SỬ */
.viewed-header-compact {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px;
}
.v-title { 
    font-size: 16px; 
    font-weight: 700; 
    color: #333; 
    margin: 0; 
}
.v-clear-history { 
    font-size: 13px; 
    color: #888; 
    text-decoration: none; 
    transition: 0.2s; 
}
.v-clear-history:hover { 
    color: #d0021b; 
}

/* 3. SLIDER CONTAINER & ITEMS */
.compact-slider {
    display: block !important; /* Cấm dùng flex gây vỡ Slider */
    width: 100%;
    margin: 0;
    position: relative;
}

/* Bù trừ khoảng cách giữa các ô */
.compact-slider .slick-list {
    margin: 0 -6px; 
}

.v-product-card-compact {
    display: block !important;
    padding: 0 6px;
    outline: none !important;
    height: auto; 
}

/* 4. CARD SẢN PHẨM (Khung viền, hover) */
.v-card-inner {
    position: relative; 
    border: 1px solid #eaecf0; 
    border-radius: 8px; 
    background: #fff; 
    transition: 0.2s;
}
.v-card-inner:hover { 
    border-color: #0159a0; 
}

/* 5. NỘI DUNG SẢN PHẨM (Ảnh trái, Chữ phải) */
.v-product-link-compact {
    display: flex; 
    align-items: center; 
    padding: 10px; 
    gap: 10px; 
    text-decoration: none !important;
}
.v-product-img-compact {
    width: 65px; 
    height: 65px; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.v-product-img-compact img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.v-product-info-compact {
    flex: 1; 
    min-width: 0; /* Ngăn text dài làm phình card */
    padding-right: 15px; /* Chừa chỗ cho nút Xóa */
}
.v-product-name-compact {
    font-size: 13px; 
    color: #333; 
    line-height: 1.4; 
    font-weight: 500; 
    margin-bottom: 4px;
    /* Giới hạn 2 dòng chữ */
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}
.v-price-new-compact { 
    font-size: 14px; 
    font-weight: 700; 
    color: #d0021b; 
}

/* 6. NÚT XÓA SẢN PHẨM (Góc trên phải) */
.v-btn-remove {
    position: absolute; 
    top: 6px; 
    right: 6px; 
    width: 20px; 
    height: 20px;
    border-radius: 50%; 
    background: #9ca3af; 
    color: #fff; 
    border: none;
    font-size: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: 0.2s; 
    z-index: 2;
}
.v-btn-remove:hover { 
    background: #ef4444; 
}

/* 7. MŨI TÊN SLIDER (Tròn, trắng, bóng bẩy giống ảnh) */
.compact-slider .slick-prev,
.compact-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; 
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid #eaecf0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
    transition: 0.2s;
}

.compact-slider .slick-prev:hover,
.compact-slider .slick-next:hover {
    color: #0159a0;
    border-color: #0159a0;
}

/* Định vị nằm lùi ra lề một xíu */
.compact-slider .slick-prev { left: -16px; }
.compact-slider .slick-next { right: -16px; }

/* Custom icon mũi tên FontAwesome */
.compact-slider .slick-prev:before,
.compact-slider .slick-next:before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    font-size: 14px;
}
.compact-slider .slick-prev:before { content: "\f104"; } 
.compact-slider .slick-next:before { content: "\f105"; } 

.compact-slider .slick-disabled {
    opacity: 0 !important; 
    visibility: hidden;
    pointer-events: none;
}
/* =======================================================
   FIX LỖI GIẬT TRANG: GIỮ NGUYÊN THANH CUỘN KHI MỞ MODAL
======================================================= */
body.modal-open {
    overflow-y: scroll !important; /* Ép thanh cuộn luôn hiện */
    padding-right: 0 !important;
}

/* =======================================================
   CSS MODAL ĐĂNG NHẬP ZALO / SĐT (CHUẨN MODERN UI)
======================================================= */
.th-auth-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.th-auth-modal .modal-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    border-radius: 16px 16px 0 0;
}
.th-auth-modal .modal-title {
    font-weight: 700;
    font-size: 16px;
    color: #111;
    margin: 0;
}
.th-auth-modal .close-btn {
    color: #333;
    opacity: 0.8;
    font-size: 24px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}
.th-auth-modal .modal-body {
    padding: 30px 20px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 16px 16px;
}
.th-auth-icon {
    width: 64px;
    height: 64px;
    background: #e3f2fd;
    color: #0159a0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.th-auth-desc {
    color: #555;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- TÙY CHỈNH NÚT ZALO --- */
.btn-zalo {
    background: #0068ff;
    color: #fff;
    border: none;
    padding: 8px 0; /* Padding trên dưới, 2 bên sát lề để chia % chuẩn */
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 104, 255, 0.2);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}
.btn-zalo:hover {
    background: #005ce6;
}
.btn-zalo .zalo-logo-wrap {
    width: 25%; /* Chiếm 3/12 */
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.25); /* Đường gạch mờ phân cách cực sang */
}
.btn-zalo .zalo-logo-wrap img {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    object-fit: contain;
}
.btn-zalo .zalo-text {
    width: 75%; /* Chiếm 9/12 */
    text-align: center;
    font-weight: 600;
    color: #fff;
}

/* --- DIVIDER (Dấu "Hoặc") --- */
.th-auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}
.th-auth-divider span {
    background: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.th-auth-divider hr {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0;
    transform: translateY(-50%);
    border-top: 1px dashed #ddd;
}

/* --- FORM SĐT --- */
.th-auth-input {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding-left: 15px;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    width: 100%;
    margin-bottom: 15px;
}
.th-auth-input:focus {
    border-color: ##48a3f6;
}
.btn-phone-submit {
    width: 100%;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-phone-submit:hover {
    background: #e2e6ea;
}

/* =======================================================
   CSS CHO DROPDOWN TÀI KHOẢN (USER MENU)
======================================================= */
/* Vùng bọc ngoài để bắt sự kiện hover */
.th-user-wrap {
    padding-bottom: 15px; /* Tạo vùng đệm mờ để lúc kéo chuột xuống menu không bị mất hover */
    margin-bottom: -15px;
}

/* Khối Menu ẩn mặc định */
.th-user-dropdown {
    position: absolute;
    top: 100%;
    right: -10px; /* Căn mép phải */
    width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px); /* Đẩy xích xuống một xíu */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
}

/* Mũi tên nhọn trỏ lên trên */
.th-user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

/* Hiển thị menu khi hover vào vùng bọc ngoài */
.th-user-wrap:hover .th-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Trang trí phần Header của Menu */
.user-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.user-dropdown-header strong {
    display: block;
    color: #0159a0;
    font-size: 15px;
    margin-bottom: 2px;
}
.user-dropdown-header small {
    color: #888;
    font-size: 12px;
}

/* Trang trí các thẻ li (Nút bấm) */
.user-dropdown-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.user-dropdown-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s background;
}
.user-dropdown-list li a i {
    width: 24px;
    color: #666;
    font-size: 16px;
}
.user-dropdown-list li a:hover {
    background: #f4f6f8;
    color: #0159a0;
}
.user-dropdown-list li a:hover i {
    color: #0159a0;
}

/* Màu đỏ nổi bật cho nút Đăng xuất */
.user-dropdown-list .logout-item {
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    padding-top: 5px;
}
.user-dropdown-list .logout-item a {
    color: #d70018;
}
.user-dropdown-list .logout-item a i {
    color: #d70018;
}
.user-dropdown-list .logout-item a:hover {
    background: #fdf2f2;
}