@charset "utf-8";
.cart-wrapper {
    position: relative;
    display: inline-block;
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e53935;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    text-align: center;
    padding: 0 4px;
}

/* POP */
@keyframes cartBadgePop {
    0%   { transform: scale(0.6); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-badge-animate {
    animation: cartBadgePop 0.35s ease-out;
}

/* GLOW */
@keyframes cartBadgeGlow {
    0% { box-shadow: 0 0 0 rgba(229,57,53,0); }
    50% {
        box-shadow:
            0 0 8px rgba(229,57,53,0.8),
            0 0 14px rgba(229,57,53,0.6);
    }
    100% { box-shadow: 0 0 0 rgba(229,57,53,0); }
}

.cart-badge-glow {
    animation: cartBadgeGlow 0.6s ease-out;
}
@keyframes cartBadgePulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cart-badge-pulse {
    animation: cartBadgePulse 0.5s ease-in-out;
}

/* ====== NHẤP NHÁY NHẸ KHI GIỎ CÓ HÀNG ====== */
@keyframes cartBadgeIdlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(229,57,53,0);
    }
    50% {
        transform: scale(1.12);
        box-shadow:
            0 0 6px rgba(229,57,53,0.6),
            0 0 10px rgba(229,57,53,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(229,57,53,0);
    }
}

.cart-badge-idle {
    animation: cartBadgeIdlePulse 0.6s ease-in-out;
}

/* Bọc toàn bộ bảng giỏ hàng */
.cart-table {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  font-size:14px;
  font-family: Tahoma, sans-serif;
}
/* Cột Giá + Thành Tiền đồng bộ */
.cart-col.gia,
.cart-col.thanhtien {
    text-align: center;
    font-weight: bold;
    padding-right: 10px;
}


/* Mỗi dòng sản phẩm */
.cart-row {
background: #fff;
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  align-items: center;
}

/* Header */
.cart-header {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}
.cart-title {
  color:#DC7110;
  margin-top:20px;
  font-weight:bold;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size:30px;
  text-align:center;
  line-height: 1.2;  /* không dùng 70px */
  padding: 15px 0;  /* thay height */
}

/* Mobile */
@media (max-width: 768px) {
  .cart-title {
    font-size: 22px;
    
    margin-top: 10px;
    line-height: 1.3; /* đẹp, không cao quá */
  }
}

/* PC: giữ khoảng cách như cũ và nền trắng */
@media (min-width: 769px) {
  .wrapper {
  padding-top: 80px;
  background-color: #fff; /* tô nền trắng cho vùng padding-top */
}

/*đẩy nội dung dưới baner xuống*/
.content-spacer {
  
  height: 64px; /* PC mặc định */
}
}

/* ✅ Mobile: 60px */
@media (max-width: 768px) {
  .content-spacer {
    height: 90px;
  }
}

/* Cột */
.cart-col {
     align-items: center;
  flex: 1;
  padding: 8px 10px;
  box-sizing: border-box;
  font-size: 15px;
}

/* Căn chỉnh ảnh sản phẩm */
.cart-col img {
     align-items: center;
  max-width: 60px;
  height: auto;
  border: 1px solid #ccc;
  padding: 2px;
  background: #fff;
}

/* Ô số lượng */
.cart-col input[type="number"] {
     align-items: center;
  width: 60px;
  padding: 4px;
  font-size: 14px;
  text-align:center;
  font-weight:bold;
}

/* Nút thao tác */

.cart-col button {
     align-items: center;
  padding: 6px 10px;
  font-size: 15px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.cart-col button:hover {
     align-items: center;
  background-color: #c0392b;
}

/* Footer (tổng cộng) */
.cart-footer {
  text-align: Right;
 
  justify-content: flex-end;
  align-items: center;
  gap: 10px;              /* khoảng cách nhỏ giữa chữ và tiền */
  padding: 10px 30px;
  background-color: #f9f9f9;
  font-weight: bold;
  color: #DC7110;
  font-size: 18px;
  border-top: 1px solid #ddd;
}

.cart-footer .label {
  margin: 0;
}

.cart-footer .value {
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .cart-footer {
    font-size: 16px;
    gap: 6px;        /* sát hơn xíu trên mobile */
    padding: 5px;
  }
}


/* Tùy chỉnh tỉ lệ cột (theo nhu cầu) */
.cart-col:nth-child(1) { flex: 3; } /* Tên sản phẩm */
.cart-col:nth-child(2) { flex: 1; } /* Ảnh */
.cart-col:nth-child(3),
.cart-col:nth-child(4),
.cart-col:nth-child(5),
.cart-col:nth-child(6) { flex: 1; }


/* Responsive cho mobile */
@media (max-width: 768px) {

  /* Tổng giỏ hàng thành dạng thẻ */
  .cart-table {
    border: none;
  }

  .cart-header {
    display: none; /* Ẩn tiêu đề bảng */
  }

  .cart-row {
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .cart-col {
    width: 100%;
    flex: unset;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
  }

  /* Hiển thị label phía trước */
  .cart-col[data-label]::before {
    content: attr(data-label);
    font-weight: bold;
    color: #333;
    margin-right: 10px;
  }

  /* Ảnh */
  .cart-col img {
    max-width: 80px !important;
    height: auto;
    border-radius: 6px;
  }

  /* Hộp số lượng */
  .qty-box {
    justify-content: flex-end;
  }

  /* Input số lượng nhỏ hơn */
  .qty-box input {
    width: 45px !important;
    height: 40px;
    font-size: 15px;
  }

  /* Footer tổng cộng */
  .cart-footer {
    flex-direction: column;
    text-align: right;
    gap: 8px;
    font-size: 16px;
    padding: 10px 0;
  }

  /* Căn nút */
  .cart-col button {
    width: auto;
    font-size: 14px;
    padding: 6px 12px;
  }

}
.qty-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.qty-box input {
  width: 40px !important;
  height: 25px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Nút giảm */
button.btn-minus {
  background-color: #e74c3c !important; /* đỏ */
  color: #fff !important;
  width: 35px;
  height: 33px;
  font-size: 20px;
  border-radius: 6px;
  border: none !important;
}

/* Nút tăng */
button.btn-plus {
  background-color: #27ae60 !important; /* xanh lá */
  color: #fff !important;
  width: 35px;
  height: 33px;
  font-size: 20px;
  border-radius: 6px;
  border: none !important;
}

button.btn-minus:hover {
  background-color: #c0392b !important;
}

button.btn-plus:hover {
  background-color: #1e8449 !important;
}

.cart-buttons button {
  transition: 0.25s ease;
  font-weight: bold;
  transform-origin: center;
  margin: 0 10px;      /* khoảng cách an toàn khi hover */
}

/* Hiệu ứng hover không bị chồng nhau */
.cart-buttons button:hover {
  transform: scale(1.05);
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;          /* giữ nút nổi nhưng không đè nút kia */
}


/* Nút xanh dương */
.cart-buttons .btn-blue {
  background: #3498db;
}
.cart-buttons .btn-blue:hover {
  background: #2980b9;
}

/* Nút xanh lá */
.cart-buttons .btn-green {
  background: #2ecc71;
}
.cart-buttons .btn-green:hover {
  background: #27ae60;
}


/* Mobile */
@media (max-width: 768px) {
  .cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }
  .cart-buttons button {
    width: 90%;
    max-width: 400px;
    margin: 0 !important;
  }
}

.dathang { 
 	background-color: #fefefe; /* Màu nền nhẹ */
    border-radius: 10px;
	font-family: 'Tahoma', sans-serif;
   	font-size: 18px; /* <- tăng cỡ chữ toàn bộ */
	line-height: 1.6; /* hoặc 1.5, tùy bạn muốn giãn bao nhiêu */
	width: 100%;          /* Chiếm 90% chiều rộng trình duyệt */
  	max-width: 1160px;   /* Giới hạn tối đa 1200px */
  	margin: 10px auto;   /* Căn giữa cả hai bên trái/phải */
  
	  }
.dathang h2 { text-align: center; color: #2c3e50; }
.dathang table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.dathang th, .dathang td { border: 1px solid #ccc; padding: 10px; text-align: center; }
.dathang th { background: #fffbea; }
.dathang .form-group { margin-bottom: 15px; }
.dathang label { display: block; font-weight: bold; margin-bottom: 10px; }
.dathang input, .dathang textarea { width: 100%; padding: 8px; box-sizing: border-box; }
.dathang button { padding: 12px 20px; font-size: 16px; background: #2ecc71; border: none; color: white; cursor: pointer; border-radius: 5px; }
.dathang button:hover { background: #27ae60; }
.dathang .error { color: red; margin-bottom: 15px; }
.dathang .success { color: green; margin-bottom: 15px; text-align: center; font-size:20px; font-weight: bold; }
.dathang .container { max-width: 600px; margin: auto; }
.dathang a { color: #3498db; text-decoration: none; }

@media (max-width: 768px) {
    .order-links a {
        font-size: 16px;   /* nhỏ lại xíu */
    }

    .order-links strong {
        font-weight: 600;  /* bớt đậm cho dễ nhìn */
    }
}
/*Ẩn nút zalo và tell ở mobile*/
/* ===== ẨN NÚT ZALO & ĐIỆN THOẠI TRÊN MOBILE ===== */
@media (max-width: 768px) {
    .contact-float.zalo,
    .contact-float.phone {
        display: none !important;
    }
}



.dathang .order-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Nút quay lại */
.dathang .back-to-cart-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dathang .back-to-cart-btn:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

/* Nút xác nhận mua hàng */
.dathang .confirm-order-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dathang .confirm-order-btn:hover {
    background-color: #218838;
    transform: scale(1.02);
}
.dathang .form-group {
  margin-bottom: 8px;
}

.dathang label {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}

.dathang input[type="text"],
.dathang input[type="email"],
.dathang textarea {
  width: 100%;
  padding: 6px 8px;
  box-sizing: border-box;
  font-size: 14px;
}

.dathang textarea {
  resize: vertical;
}

.dathang .order-buttons {
  margin-top: 12px;
}

.dathang button {
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.dathang form {
  max-width: 1300px;
  margin: 0 auto;
}

.form-grid {
    display: grid;
    padding-top: 10px;
    grid-template-columns: repeat(2, 1fr);
   column-gap: 16px; /* ngang */
    row-gap: 2px;     /* dọc */
}

/* những field dài chiếm full hàng */
.form-grid .form-full {
    grid-column: 1 / -1;
}

/* Mobile */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group label:has(+ input[required]),
.form-group label:has(+ select[required]),
.form-group label:has(+ textarea[required]) {
    position: relative;
}

.form-group label:has(+ input[required])::after,
.form-group label:has(+ select[required])::after,
.form-group label:has(+ textarea[required])::after {
    content: " *";
    color: #e53935;
    font-weight: bold;
}
.province-row > label::after {
    content: " *";
    color: #e53935;
    font-weight: bold;
}



.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-family: Tahoma;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.2;

    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 0.75;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}


.form-group select:disabled {
  background-color: #f2f2f2;
  color: #999;
}
.address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.address-row .form-group {
  flex: 1 1 calc(33.33% - 10px); /* 3 cột đều nhau */
  min-width: 150px;
}

.address-row label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}


#name {
  font-weight: bold;            /* chữ đậm */
  text-transform: capitalize;   /* viết hoa chữ cái đầu */
}


/* Lựa chọn địa chỉ cũ mới*/

.province-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 38px;
    row-gap: 0px;
}

/* Label */
.province-row > label {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
    margin-bottom: 0;
}

/* Radio */
.province-row .address-type {
    grid-column: 2;
    grid-row: 1;
}

/* Select xuống dòng + full width */
.province-row select {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
}
.province-row .select2-container {
    grid-column: 1 / -1;
    width: 100% ;
}
.select2-container--bootstrap-5
.select2-search--dropdown
.select2-search__field {
    margin-left: -12px;
    box-sizing: border-box;
    width: calc(100% +12px); /* 👈 QUAN TRỌNG */
}
@media (max-width: 576px) {
    .select2-container--bootstrap-5 .select2-dropdown {
        
        padding: 6px;
    }

    .select2-container--bootstrap-5
    .select2-search--dropdown
    .select2-search__field {
    
        font-size: 16px; /* tránh zoom iOS */
    }
}


/* nhóm radio */
.address-type {
    display: flex;
    gap: 38px;          /* ↓ giảm khoảng cách giữa các option */
    font-size: 13px;
    white-space: nowrap;
}

.address-type label {
    display: inline-flex;
    align-items: center;
    gap: 30px;          /* ⭐ khoảng cách radio ↔ chữ */
    cursor: pointer;
}

.address-type input[type="radio"] {
    margin: -20px;         /* ⭐ bỏ margin mặc định */
}

/* Mobile: tự động xuống dòng */
@media (max-width: 768px) {
    

    .address-type {
        margin-left: 0;
    }
}

/*Hình thức thanh toán*/

.payment-option {
    
    position: relative;
    padding: 5px 5px 5px 10px; /* chừa chỗ cho radio */
    font-family: 'Tahoma', sans-serif;
    font-size:16px;

    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;

    display: flex;
    align-items: center;
    gap: 10px;
}

/* RADIO FIX TUYỆT ĐỐI */
.payment-option input[type="radio"] {
    position: absolute;
    height: 18px;
    left: 5px;
    top: 50%;
   transform: translate(-200px, -55%) scale(1.15);
/*            X ➜   Y ➜     */

    margin: 0;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .payment-option {
        padding: 5px 40px 5px 10px; /* chừa chỗ bên phải cho radio */
    }

    .payment-option input[type="radio"] {
        left: auto;
        right: 10px;               /* đẩy radio qua phải */
        top: 50%;
        transform: translate(150px, -55%) scale(1.15);
        align-items: right;
      
    }
}

.payment-option .icon {
    font-size: 22px;
    line-height: 1;
}

.payment-option .text {
    line-height: 1.4;
}

.payment-title {
    
    margin-bottom: 10px;
    display: block;
}

/* Khối xác nhận chuyển khoản */
#bank-confirm {
    margin-top: 12px;
    padding-left: 10px; /* canh trái nhẹ */
}

/* Label checkbox */
#bank-confirm label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

/* Checkbox */
#bank-confirm input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Text bên phải checkbox */
#bank-confirm span {
    display: inline-block;
    text-align: left;
}

/*Toast Đã Copy STK*/

.toast-copy {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(25, 135, 84, 0.95);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .3s ease;
}

.toast-copy.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-icon {
   
    font-size: 18px;
    line-height: 1;
}

.toast-text {
    white-space: nowrap;
}


.copy-icon i {
    color: #0d6efd; /* xanh giống Bootstrap */
    font-size: 16px;
    transition: all .2s ease;
}

.copy-icon:hover i {
    color: #084298;
    transform: scale(1.15);
}


.bank-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* ICON MÀU */
.icon-bank {
    color: #0d6efd; /* xanh ngân hàng */
}

.icon-user {
    color: #198754; /* xanh lá */
}

.icon-card {
    color: #fd7e14; /* cam */
}

.icon-note {
    color: #6f42c1; /* tím */
}

/* COPY ICON */
.copy-icon i {
    color: #0d6efd;
    cursor: pointer;
    transition: all .2s ease;
}

.copy-icon:hover i {
    color: #084298;
    transform: scale(1.15);
}


.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.payment-option:hover {
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    margin-top: 4px;
}

/* ICON CHUNG */
.payment-option .icon {
    font-size: 20px;
    margin-top: 2px;
}



/* TEXT */
.payment-option .text small {
    color: #6c757d;
}

/* ICON CHUNG */
.icon,
.bank-line i {
    font-size: 16px;
    margin-right: 6px;
}

/* ===== THEO NGÂN HÀNG ===== */

/* Vietcombank */
.bank-vcb,
.bank-vcb i {
    color: #007a3d;
}

/* MB Bank */
.bank-mb,
.bank-mb i {
    color: #003a8f;
}

/* ACB */
.bank-acb,
.bank-acb i {
    color: #0056a6;
}

/* COD */
.icon-cod i {
    color: #0d6efd; /* xanh tiền mặt */
}


.bank-info {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    background: #fafbfc;
    font-size: 14px;
}


/* khi chọn chuyển khoản → nổi bật */
.bank-info.active {
    border-color: #0d6efd;
    background: #f5f9ff;
}

.bank-name-logo {
    width: 100px;
    height: auto;
    margin-left: 6px;
    transform: translateY(-12px);
}

.address-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Mobile thì xuống dòng */
@media (max-width: 768px) {
    .address-2col {
        grid-template-columns: 1fr;
    }
}
#shipping_fee[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.order-summary-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.order-summary-row .form-group {
    flex: 1;
    min-width: 220px;
}

#total_payment {
    font-size: 16px;
    font-weight: 800;
    color: #c65d00;
    background: #fff4ea;
    border: 2px solid #f0c9a8;
}


