@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

*{
    font-family: 'Nunito', sans-serif;
}
:root{
   --pink:#e84393;
   --red:#c0392b;
   --orange:#f39c12;
   --black:#333;
   --white:#fff;
   --light-color:#666;
   --light-white:#ccc;
   --light-bg:#f5f5f5;
   --border:.2rem solid var(--black);
   --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
}

*{
   font-family: 'Nunito', sans-serif;
   margin:0; padding:0;
   box-sizing: border-box;
   outline: none; border:none;
   text-decoration: none;
   transition:all .2s linear;
}

*::selection{
   background-color: var(--pink);
   color:var(--white);
}

*::-webkit-scrollbar{
   height: .5rem;
   width: 1rem;
}

*::-webkit-scrollbar-track{
   background-color: transparent;
}

*::-webkit-scrollbar-thumb{
   background-color: var(--pink);
}

html{
   font-size: 62.5%;
   overflow-x: hidden;
   scroll-behavior: smooth;
   scroll-padding-top: 6.5rem;
}

body{
   background: var(--light-bg);
}

section{
   padding:3rem 2rem;
}

.message{
   position: sticky;
   top:0;
   margin:0 auto;
   max-width: 1200px;
   background-color: var(--light-bg);
   display: flex;
   align-items: center;
   padding:2rem;
   gap:1.5rem;
   z-index: 10000;
   justify-content: space-between;
}

.message span{
   color:var(--black);
   font-size: 2rem;
}

.message i{
   font-size: 2.5rem;
   color:var(--red);
   cursor: pointer;
}

.message i:hover{
   transform: rotate(90deg);
}

.disabled{
   pointer-events:none;
   opacity: .5;
   user-select: none;
}

.btn,
.delete-btn,
.option-btn{
   display: inline-block;
   border-radius: .5rem;
   margin-top: 1rem;
   font-size: 1.8rem;
   color:var(--white);
   cursor: pointer;
   padding:1rem 3rem;
   text-transform: capitalize;
}

.btn{
   background-color: var(--pink);
}

.delete-btn{
   background-color: var(--red);
}

.option-btn{
   background-color: var(--orange);
}

.btn:hover,
.delete-btn:hover,
.option-btn:hover{
   background-color: var(--black);
}

.empty{
   padding:1.5rem;
   font-size: 2rem;
   color:var(--red);
   border:var(--border);
   box-shadow: var(--box-shadow);
   text-align: center;
   background-color: var(--white);
   border-radius: .5rem;
   text-transform: capitalize;
}

.more-btn{
   margin-top: 2rem;
   text-align: center;
}

.heading{
   display: flex;
   flex-flow: column;
   align-items: center;
   justify-content: center;
   gap:1rem;
   background-color: var(--black);
   text-align: center;
   min-height: 25vh;
}

.heading h3{
   font-size: 5.5rem;
   color:var(--white);
   text-transform: uppercase;
}

.heading p{
   font-size: 2.5rem;
   color:var(--light-white);
}

.heading p a{
   color:var(--pink);
}

.heading p a:hover{
   text-decoration: underline;
}

.title{
   text-align: center;
   margin-bottom: 2rem;
   color:var(--black);
   text-transform: uppercase;
   font-size: 4rem;
}

@keyframes fadeIn{
   0%{
      transform: translateY(1rem);
   }
}

.form-container{
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
}

.form-container form{
   padding:2rem;
   border-radius: .5rem;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   width: 50rem; 
   text-align: center;
}

.form-container form h3{
   font-size: 2.5rem;
   text-transform: uppercase;
   color:var(--black);
   margin-bottom: 1rem;
}

.form-container form .box{
   width: 100%;
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   color:var(--black);
   border:var(--border);
   background-color: var(--light-bg);
   margin:1rem 0;
   border-radius: .5rem;
}

.form-container form p{
   margin-top: 1.5rem;
   font-size: 2rem;
   color:var(--light-color);
}

.form-container form p a{
   color:var(--pink);
}

.form-container form p a:hover{
   text-decoration: underline;
}


/* Định dạng Header tổng */
.header {
   position: sticky;
   top: 0; left: 0; right: 0;
   z-index: 1000;
   background-color: var(--white);
   border-bottom: 1px solid #eee;
   box-shadow: var(--box-shadow);
}

/* Container chia cột bằng Flexbox */
.header .flex-container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   max-width: 1200px;
   margin: 0 auto;
   padding: 1.5rem 2rem;
   position: relative;
}

/* Định dạng vùng chứa logo */
.header .flex-container .logo {
   display: flex;
   align-items: center;
   gap: 1rem;
   font-size: 2.2rem;
   color: var(--pink);
   font-weight: bold;
}

/* Đưa các mục menu chính thành hàng ngang */
.header .flex-container .navbar {
   display: flex;
   align-items: center;
   gap: 2rem;
}

.header .flex-container .navbar a {
   font-size: 1.8rem;
   color: var(--black);
   text-decoration: none !important; /* Thêm dòng này */
}

.header .flex-container .navbar a:hover {
   color: var(--pink);
   text-decoration: none !important; /* Thêm dòng này */
}

/* Định dạng nút Dropdown xổ xuống */
.custom-dropdown {
   position: relative;
}
.custom-dropdown-menu {
   display: none;
   position: absolute;
   top: 100%; left: 0;
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   padding: 1rem 0;
   min-width: 15rem;
   list-style: none;
   z-index: 1001;
}
.custom-dropdown:hover .custom-dropdown-menu {
   display: block;
}
.custom-dropdown-menu li a {
   display: block;
   padding: 1rem 2rem;
   font-size: 1.6rem !important;
   text-decoration: none !important; /* Thêm dòng này */
}

/* Đưa ô Tìm kiếm + Icon giỏ hàng sang bên phải */
.header-right {
   display: flex;
   align-items: center;
   gap: 1.5rem;
}

.search-form {
   display: flex;
   align-items: center;
   border: var(--border);
   border-radius: .5rem;
   padding-right: 1rem;
   background-color: var(--light-bg);
}
.search-form .box {
   width: 20rem;
   padding: .8rem 1.2rem;
   font-size: 1.6rem;
   background: none;
}
.search-form button {
   font-size: 1.8rem;
   color: var(--black);
   cursor: pointer;
   background: none;
}

.icons a {
   font-size: 2rem;
   color: var(--black);
}
.icons a:hover {
   color: var(--pink);
}

/* Ẩn nút Menu Mobile trên màn hình máy tính */
#menu-btn {
   display: none;
   font-size: 2.5rem;
   color: var(--black);
   cursor: pointer;
}

/* Tìm đến .account-box trong file CSS hoặc thêm vào thẻ style */
.header .flex-container .account-box {
    position: absolute;
    top: 110%;
    right: 2rem;
    background: var(--white);
    padding: 2rem;
    border: var(--border);
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    display: none; /* Mặc định ẩn */
}

/* Khi có class active (do JS toggle) thì hiển thị lên */
.header .flex-container .account-box.active {
    display: block !important;
}

.home{
   padding: 0;
}


.carousel-item img{
   height: 60vh;
   width: 100%;
   object-fit: cover;
}

.carousel-item{
    position: relative;
}

.carousel-caption{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.carousel-caption h3{
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,.8);
}

.carousel-caption p{
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,.8);
}
.home .content{
   text-align: center;
}

.home .content h3{
   text-transform: uppercase;
   color:var(--black);
   font-size: 5.5rem;
}

.home .content p{
   max-width: 60rem;
   margin:1rem auto;
   line-height:2;
   font-size: 1.7rem;
   color:var(--light-color);
}

.products .box-container{
   max-width: 1200px;
   margin:0 auto;
   display: grid;
   grid-template-columns: repeat(auto-fit, 33rem);
   gap:1.5rem;
   align-items: flex-start;
   justify-content: center;
}

.products .box-container .box{
   background-color: var(--white);
   border:var(--border);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   padding:2rem;
   text-align: center;
   position: relative;
}

.products .box-container .box .image{
   height: 35rem;
   width: 100%;
   object-fit: contain;
   border-radius: 10px;
}
/* Giá nằm dưới ảnh */
.products .box-container .box .price{
   position: static !important;
   background:none;
   color:var(--pink);
   font-size:2.4rem;
   font-weight:bold;
   padding:.5rem 0;
}

/* Giá cũ */
.old-price{
   text-decoration: line-through;
   color: #999;
   font-size: 1.5rem;
   margin-right: .5rem;
}

/* Giảm giá */
.discount{
   background: #e74c3c;
   color: white;
   padding: .3rem .8rem;
   border-radius: .3rem;
   font-size: 1.2rem;
}

/* Khung chứa giá */
.price-box{
   text-align:center;
   margin:1rem 0;
}

/* Hai nút nằm ngang */
.action-btns{
   display:flex;
   gap:1rem;
   margin-top:1rem;
}

.action-btns input{
   flex:1;
   margin-top:0 !important;
}

/* Giao diện Table cho giỏ hàng */
.cart-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
    margin-top: 2rem;
}
.cart-table th, 
.cart-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 1.6rem;
}
.cart-table th {
    background-color: #f9f9f9;
    color: #333;
    font-weight: 600;
}
.cart-table .image {
    height: 8rem;
    object-fit: cover;
    border-radius: .5rem;
}
.cart-table .product-name-link {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.cart-table .product-name-link:hover {
    color: #e84393;
    text-decoration: underline;
}
.cart-table .qty-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.cart-table .delete-text-btn {
    color: #d63031;
    text-decoration: none;
    font-weight: 500;
}
.cart-table .delete-text-btn:hover {
    text-decoration: underline;
}

/* Khu vực tổng tiền và nhóm nút hành động hàng ngang */
.cart-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
    border-radius: .5rem;
}
.cart-action-row .grand-total-text {
    font-size: 2rem;
    color: #333;
}
.cart-action-row .grand-total-text span {
    color: #d63031;
    font-weight: bold;
}
.cart-buttons-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.cart-buttons-group a {
    text-decoration: none !important;
    display: inline-block;
}

.products .box{
    text-align:center;
    padding:20px;
}

.products .box .image{
    width:100%;
    height:250px;
    object-fit:cover;
}

.price-box{
    margin-top:10px;
}

.old-price{
    color:#999;
    text-decoration:line-through;
    font-size:1.4rem;
}

.discount{
    background:red;
    color:#fff;
    padding:3px 8px;
    border-radius:5px;
    font-size:1.3rem;
    margin-left:5px;
}

.price{
    font-size:2rem;
    color:#e84393;
    font-weight:bold;
    margin-top:8px;
}

.action-btns{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.cart-btn,
.buy-btn{
    flex:1;
    border:none;
    cursor:pointer;
    padding:12px;
    color:#fff;
    border-radius:5px;
    font-size:1.5rem;
}

.cart-btn{
    background:#f39c12;
}

.buy-btn{
    background:#e84393;
}
.products .box-container .box .fa-eye{
   right:1rem;
   height: 4.5rem;
   width: 4.5rem;
   line-height: 4.2rem;
   font-size: 2rem;
   background-color: var(--white);
   color:var(--black);
   border:var(--border);
}

.products .box-container .box .fa-eye:hover{
   background-color: var(--black);
   color:var(--white);
}

.products .box-container .box .name{
   margin:1rem;
   font-size: 2rem;
   color:var(--black);
}

.products .box-container .box .qty{
   width: 100%;
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   color:var(--black);
   border:var(--border);
   border-radius: .5rem;
   margin:.5rem 0;
}

.products .box-container .box .btn,
.products .box-container .box .option-btn{
   width: 100%;
}

.quick-view form{
   max-width: 60rem;
   padding:2rem;
   text-align: center;
   border:var(--border);
   box-shadow: var(--border);
   border-radius: .5rem;
   background-color: var(--white);
   margin:0 auto;
}

.quick-view form .image{
   height: 33rem;
   border:var(--border);
   border-radius: .5rem;
}

.quick-view form .name{
   margin:1rem 0;
   font-size: 2rem;
   color:var(--black);
}

.quick-view form .price{
   color:var(--red);
   font-size: 2.5rem;
   padding:.5rem 0;
}

.quick-view form .details{
   padding:1rem 0;
   font-size: 1.5rem;
   color:var(--light-color);
   line-height: 2;
}

.quick-view form .qty{
   width: 100%;
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   color:var(--black);
   border-radius: .5rem;
   border:var(--border);
   margin:.5rem 0;
}

.home-contact{
   background-color: var(--black);
   text-align: center;
}

.home-contact .content{
   max-width: 50rem;
   margin:0 auto;
}

.home-contact .content h3{
   text-transform: uppercase;
   color:var(--white);
   font-size: 3rem;
}

.home-contact .content p{
   line-height: 2;
   font-size: 1.5rem;
   color:var(--light-white);
   padding:1rem 0;
}

.home-contact .content .btn:hover{
   background-color: var(--white);
   color:var(--black);
}

.about .flex{
   max-width: 1200px;
   margin:0 auto;
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap:1.5rem;
}

.about .flex .image{
   flex:1 1 40rem;
}

.about .flex .image img{
   width: 100%;
}

.about .flex .content{
   flex:1 1 40rem;
   text-align: center;
}

.about .flex .content h3{
   font-size: 3rem;
   text-transform: capitalize;
   color:var(--black);
}

.about .flex .content p{
   padding:1rem 0;
   font-size: 1.5rem;
   color:var(--light-color);
   line-height: 2;
}

.about .flex:nth-child(2){
   margin:3rem auto;
   flex-wrap: wrap-reverse;
}



.contact form{
   max-width: 50rem;
   background-color: var(--white);
   border-radius: .5rem;
   box-shadow: var(--box-shadow);
   border:var(--border);
   text-align: center;
   padding:2rem;
   margin:0 auto;
}

.contact form h3{
   font-size: 2.5rem;
   margin-bottom: 1rem;
   color:var(--black);
   text-transform: uppercase;
}

.contact form .box{
   width: 100%;
   border-radius: .5rem;
   border:var(--border);
   margin:1rem 0;
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   color:var(--black);
   background-color: var(--light-bg);
}

.contact form textarea{
   height: 15rem;
   resize: none;
}

.search-form form{
   max-width: 1200px;
   margin:0 auto;
   display: flex;
   align-items: center;
   gap:1rem;
}

.search-form form .box{
   width: 100%;
   border:var(--border);
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   padding:1.2rem 1.4rem;
   font-size: 1.8rem;
   border-radius: .5rem;
}

.search-form form .btn{
   margin-top: 0;
}




.shopping-cart .box-container{
   max-width: 1200px;
   margin:0 auto;
   display: grid;
   grid-template-columns: repeat(auto-fit, 33rem);
   gap:1.5rem;
   align-items: flex-start;
   justify-content: center;
}

.shopping-cart .box-container .box{
   padding:2rem;
   text-align: center;
   background-color: var(--white);
   border:var(--border);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   position: relative;
}

.shopping-cart .box-container .box .image{
   width: 100%;
   height: 250px;
   object-fit: cover;
   display: block;
}

.shopping-cart .box-container .box .fa-times{
   position: absolute;
   top:1rem;
   height: 4.5rem;
   width: 4.5rem;
   line-height: 4.3rem;
   font-size: 2rem;
   border-radius: .5rem;
}

.shopping-cart .box-container .box .fa-times{
   background-color: var(--red);
   color:var(--white);
}

.shopping-cart .box-container .box .fa-times:hover{
   background-color: var(--black);
}

.shopping-cart .box-container .box .name{
   font-size: 2rem;
   color:var(--black);
   margin:1rem 0;
}

.shopping-cart .box-container .box .price{
   font-size: 2.5rem;
   color:var(--red);
   margin:.5rem 0;
}

.shopping-cart .box-container .box .qty{
   width: 9rem;
   padding:1.2rem 1.4rem;
   border-radius: .5rem;
   border:var(--border);
   font-size: 1.8rem;
}

.shopping-cart .box-container .box .sub-total{
   margin-top: 1.5rem;
   font-size: 2rem;
   color:var(--light-color);
}

.shopping-cart .box-container .box .sub-total span{
   color:var(--red);
}

.shopping-cart .cart-total{
   max-width: 1200px;
   margin:0 auto;
   padding:2rem;
   text-align: center;
   background-color: var(--white);
   border:var(--border);
   box-shadow: var(--box-shadow);
   border-radius: .5rem;
   margin-top: 2rem;
}

.shopping-cart .cart-total p{
   font-size: 2.5rem;
   color:var(--light-color);
   margin-bottom: 1rem;
}

.shopping-cart .cart-total p span{
   color:var(--red);
}

.display-order{
   max-width: 1200px;
   margin:0 auto;
   text-align: center;
   padding-bottom: 0;
}

.display-order p{
   display: inline-block;
   border-radius: .5rem;
   font-size: 2rem;
   color:var(--black);
   padding:1rem 1.5rem;
   margin:.5rem;
   background-color: var(--white);
   box-shadow: var(--box-shadow);
   border:var(--border);
}

.display-order p span{
   color:var(--red);
}

.display-order .grand-total{
   margin-top: 2rem;
   font-size: 2.5rem;
   color:var(--light-color);
}

.display-order .grand-total span{
   color:var(--red);
}

.checkout form{
   background-color: var(--white);
   border:var(--border);
   max-width: 1200px;
   margin:0 auto;
   border-radius: .5rem;
   padding:2rem;
   box-shadow: var(--border);
}

.checkout form h3{
   padding:1.5rem;
   font-size: 2.5rem;
   margin-bottom: 2rem;
   background-color: var(--black);
   color:var(--white);
   border-radius: .5rem;
   text-align: center;
   text-transform: capitalize;
}

.checkout form .flex{
   display: flex;
   flex-wrap: wrap;
   gap:1.5rem;
}

.checkout form .flex .inputBox{
   flex:1 1 40rem;
}

.checkout form .flex .inputBox input,
.checkout form .flex .inputBox select{
   margin:1rem 0;
   width: 100%;
   background-color: var(--light-bg);
   padding:1.2rem 1.4rem;
   border:var(--border);
   font-size: 1.8rem;
   color:var(--black);
   border-radius: .5rem;
}

.checkout form .flex .inputBox span{
   font-size: 2rem;
   color:var(--light-color);
}

/* ---- ĐỊNH DẠNG BẢNG ĐƠN HÀNG NGƯỜI DÙNG (Đã sửa lỗi co rúm) ---- */
.placed-orders {
    box-sizing: border-box;
    padding: 3rem 9%;
    min-height: 80vh;
    width: 100%; /* Đảm bảo section chiếm hết chiều rộng màn hình */
}

.user-table-container {
    width: 100%; /* Ép container chứa bảng bung tối đa */
    overflow-x: auto; /* Tạo thanh cuộn ngang mượt mà nếu màn hình quá nhỏ */
    margin-top: 2rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05);
    border-radius: .5rem;
    background-color: #fff;
    border: 1px solid #eee;
}

.user-orders-table {
    width: 100%; /* Đảm bảo bảng trải rộng toàn bộ container */
    border-collapse: collapse;
    font-size: 1.5rem;
    text-align: center;
}

.user-orders-table th {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 1rem;
    font-weight: 500;
}

.user-orders-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    color: #666;
    vertical-align: middle;
}

/* Các class bổ trợ màu sắc */
.user-orders-table .order-name {
    font-weight: 600;
    color: #e91e63;
}

.user-orders-table .order-price {
    font-weight: bold;
    color: #27ae60;
}

/* Badge trạng thái */
.status-badge {
    font-weight: bold;
    padding: .4rem 1rem;
    border-radius: .3rem;
    display: inline-block;
    text-transform: capitalize;
}
.status-badge.pending {
    color: #e74c3c;
    background-color: #fce4e4;
}
.status-badge.completed {
    color: #2ecc71;
    background-color: #e8f8f5;
}

/* Nút Xem chi tiết */
.btn-view-order {
    background-color: #3498db;
    color: #fff;
    padding: .6rem 1.5rem;
    border: none;
    font-size: 1.4rem;
    border-radius: .4rem;
    cursor: pointer;
    transition: background-color .2s;
}

.btn-view-order:hover {
    background-color: #2980b9;
}

.no-orders {
    text-align: center;
    padding: 3rem;
    font-size: 1.8rem;
    color: #666;
}

/* ---- CSS HỘP THOẠI MODAL BẬT LÊN KHI ẤN "XEM" ---- */
.custom-modal {
    display: none; /* Mặc định ẩn, JS sẽ chuyển thành flex khi click */
    position: fixed;
    z-index: 10000; /* Đặt thật cao để đè lên cả header/footer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nền tối mờ */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: .8rem;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 .5rem 2rem rgba(0,0,0,0.2);
    position: relative;
    animation: fadeInModal 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

@keyframes fadeInModal {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.footer{
   background-color: var(--white);
}

.footer .box-container{
   max-width: 1200px;
   margin:0 auto;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
   gap:1.5rem;
   align-items: flex-start;
}

.footer .box-container .box h3{
   font-size: 2.2rem;
   color:var(--black);
   margin-bottom: 1.5rem;
   text-transform: uppercase;
}

.footer .box-container a,
.footer .box-container p{
   font-size: 1.7rem;
   color:var(--light-color);
   padding:1rem 0;
   display: block;
}

.footer .box-container a i,
.footer .box-container p i{
   color:var(--pink);
   padding-right: 1rem;
}

.footer .box-container a:hover{
   text-decoration: underline;
   color:var(--pink);
}

.footer .credit{
   text-align: center;
   padding-top: 2.5rem;
   margin-top: 2.5rem;
   border-top: var(--border);
   font-size: 2rem;
   color:var(--light-color);
}

.footer .credit span{
   color:var(--pink);
}

#topBtn{
   position: fixed;
   bottom: 25px;
   right: 25px;
   width: 45px;
   height: 45px;
   background: #27ae60;
   color: #fff;
   border: none;
   border-radius: 50%;
   font-size: 18px;
   cursor: pointer;
   display: none;

   box-shadow: 0 5px 15px rgba(0,0,0,0.2);
   transition: 0.3s;
}

#topBtn:hover{
   background: #219150;
   transform: translateY(-5px);
}

/* Container chứa bộ tăng giảm - Đã đổi tên khớp với file PHP của bạn */
.qty-control, .qty-container {
    display: flex !important;
    flex-direction: row !important; /* Ép nằm ngang */
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    gap: 0;
}

/* Định dạng nút bấm */
.qty-btn {
    width: 5rem;
    height: 5rem;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 2.4rem;
    font-weight: bold;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.3s;
}

.qty-btn:hover{
    background: #f5f5f5;
    border-color: #999;
}



/* Định dạng ô nhập liệu - Chấp nhận cả .qty và .qty-input */
.qty-input{
    width: 6rem !important;
    height: 5rem !important;
    border: none !important;
    background: transparent;
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    color: #1e3a5f;
}
.qty-container{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2rem;
    margin:1.5rem 0;
}


/* Ẩn mũi tên mặc định */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* Điều chỉnh riêng cho trang Quick View */
.quick-view form .qty-container {
    justify-content: center;
    margin: 2rem 0;
}

.quick-view form .qty-input {
    width: 8rem; /* Tăng độ rộng một chút cho cân đối với form to */
    height: 5rem;
}

.quick-view form .qty-btn {
    width: 5rem;
    height: 5rem;
}
/* css/policy.css */

.policy-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 2rem;
   background: var(--white);
}

.policy-content {
   line-height: 1.8;
   color: var(--light-black);
   font-size: 1.6rem;
}

.policy-content h2 {
   color: var(--pink);
   font-size: 2.2rem;
   margin-top: 2.5rem;
   border-left: 5px solid var(--pink);
   padding-left: 1rem;
   text-transform: uppercase;
}

.policy-content h3 {
   font-size: 1.8rem;
   color: var(--black);
   margin: 1.5rem 0 1rem 0;
   font-weight: bold;
}

.policy-content ul {
   margin-left: 2rem;
   list-style-type: disc;
}

.policy-content p {
   margin-bottom: 1rem;
}

.policy-content strong {
   color: var(--black);
}

.contact-info-box {
   background: #f9f9f9;
   padding: 2rem;
   border-radius: .5rem;
   margin-top: 3rem;
   border: var(--border);
}

/* css/policy.css - Thêm đoạn này vào cuối file */

/* Định dạng chung cho contact-info-box khi có mã QR */
.contact-info-box.flex-box {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 2rem;
   padding: 2rem;
}

.qr-code-box {
   flex: 1;
   min-width: 250px;
   text-align: center;
}

.qr-code-box img {
   max-width: 100%;
   height: auto;
   border-radius: .5rem;
   border: 1px solid #ddd;
   padding: .5rem;
   background-color: #fff;
}

.bank-details-box {
   flex: 2;
   min-width: 300px;
}

.bank-details-box p {
   margin-bottom: 0.8rem;
}

/* Mã QR nổi ở góc phải */
.qr-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    background: #fff;
    border: 2px solid var(--pink);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}



/* Tối ưu hóa cho thiết bị di động (Màn hình nhỏ) */
@media (max-width: 768px) {
   .contact-info-box.flex-box {
      flex-direction: column; /* Xếp chồng lên nhau trên mobile */
      text-align: center;
      padding: 1rem;
   }
   
   .qr-code-box, .bank-details-box {
      flex: 1 1 100%;
      min-width: 100%;
   }
   
   .bank-details-box p {
      font-size: 1.5rem; /* Giảm kích thước chữ một chút trên mobile */
   }
}

.checkout .checkout-flex-container .qr-column {
    box-shadow: var(--box-shadow);
    position: sticky; /* Giúp khung QR trượt theo khi form quá dài */
    top: 10rem;
}

/* Khi xem trên điện thoại, mã QR sẽ tự động xuống dưới form */
@media (max-width: 768px) {
    .checkout-flex-container {
        flex-direction: column;
    }
    .qr-column {
        order: -1; /* Đưa mã QR lên trên cùng nếu ở mobile (tùy chọn) */
        margin-bottom: 2rem;
    }
}
/* Tối ưu hóa cho thiết bị di động */
@media (max-width: 768px) {
   .policy-container {
      padding: 1rem;
   }
   .policy-content h2 {
      font-size: 1.8rem;
   }
}

/* media queries  */

@media (max-width:991px){

   html{
      font-size: 55%;
   }

}

@media (max-width:768px){
   #menu-btn {
      display: inline-block;
   }
   .header .flex-container .navbar {
      position: absolute;
      top: 99%; left: 0; right: 0;
      background-color: var(--white);
      border-top: var(--border);
      flex-direction: column;
      align-items: flex-start;
      padding: 2rem;
      gap: 1.5rem;
      display: none; /* Sử dụng JS toggle class 'active' để hiển thị thành block khi click */
   }
   .header .flex-container .navbar.active {
      display: flex;
   }


}

@media (max-width:450px){

   html{
      font-size: 50%;
   }

   .heading h3{
      font-size: 4rem;
   }

   .title{
      font-size: 3rem;
   }

}

