/* css/pages.css */

/* --- TRANG LIÊN HỆ --- */
.contact-page {
  padding-top: 120px; /* Tránh bị Header che */
  padding-bottom: 50px;
}

.contact-header {
  margin-bottom: 4rem;
}
.contact-header h1 {
  font-size: 3rem;
  letter-spacing: 2px;
}

.contact-wrapper {
  display: flex;
  gap: 4rem;
}

/* Cột thông tin */
.contact-info {
  flex: 1;
  background: #fff;
}
.info-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}
.info-item i {
  font-size: 2.4rem;
  color: var(--primary-color);
  width: 40px;
}
.info-item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.info-item p {
  font-size: 1.4rem;
  color: #666;
}
.map-box {
  margin-top: 2rem;
  border: 1px solid #eee;
}

/* Form box */
.contact-form-box {
  flex: 1;
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 4px;
}
.contact-form-box h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.form-group {
  margin-bottom: 2rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 1.4rem;
  transition: 0.3s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1.5rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 1px;
}
.btn-submit:hover {
  background: #333;
}
.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.status-msg {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
}

/* Responsive trang liên hệ */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------------------------- */
/* --- TRANG ABOUT US --- */

/* 1. Hero Banner */
.about-hero {
  /* Ảnh nền tối màu fashion */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1469334031218-e382a71b716b?q=80&w=1920&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 6rem;
  margin-top: var(--header-height); /* Tránh bị header che */
}

.about-hero h1 {
  color: #fff;
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}
.about-hero p {
  font-size: 1.8rem;
  font-weight: 300;
}

/* 2. Our Story (Layout ZigZag) */
.about-section {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 8rem;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}
.about-text p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.5rem;
  text-align: justify;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 3. Core Values (3 Cột) */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 8rem;
  text-align: center;
}
.value-item {
  padding: 3rem;
  border: 1px solid #eee;
  transition: 0.3s;
}
.value-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}
.value-item i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}
.value-item h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.value-item p {
  font-size: 1.4rem;
  color: #777;
}

/* 4. Quote */
.founder-quote {
  background: var(--bg-light);
  padding: 6rem 2rem;
  margin-bottom: 6rem;
  border-left: 5px solid var(--primary-color);
}
.founder-quote blockquote {
  font-family: serif; /* Font chữ kiểu báo chí */
  font-style: italic;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 2rem;
}
.founder-quote cite {
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Responsive cho About */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.5rem;
  }
  .about-section {
    flex-direction: column;
  } /* Ảnh xuống dòng */
  .about-values {
    grid-template-columns: 1fr;
  } /* 1 Cột dọc */
}

/* css/pages.css - Thêm vào cuối hoặc thay thế phần cũ */

/* --- AUTH PAGE: LUXURY SPLIT LAYOUT --- */
.auth-page {
  /* Căn giữa màn hình */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa; /* Màu nền xám nhạt */
  padding: 100px 20px 50px; /* Top padding để tránh Header */
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 900px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  min-height: 600px;
}

/* CỘT 1: IMAGE (Bên trái) */
.auth-image {
  flex: 1;
  background-image: url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?q=80&w=1000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.auth-overlay {
  background: rgba(0, 0, 0, 0.4); /* Lớp phủ đen mờ */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.auth-overlay h2 {
  font-size: 3.5rem;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.auth-overlay p {
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* CỘT 2: CONTENT (Bên phải) */
.auth-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tabs: Login / Register */
.auth-tabs {
  display: flex;
  margin-bottom: 3rem;
  border-bottom: 2px solid #f1f1f1;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 1px;
}
.auth-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -2px; /* Đè lên border bottom của container */
}
.auth-tab:hover {
  color: var(--primary-color);
}

/* Forms Styling */
.auth-form {
  display: none;
  animation: fadeIn 0.4s ease;
}
.auth-form.active {
  display: block;
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary-color);
}
.text-desc {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

/* Inputs */
.form-group label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: #333;
}
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.4rem;
  transition: 0.3s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.forgot-pass {
  font-size: 1.3rem;
  color: #666;
  font-weight: 500;
}
.forgot-pass:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

/* Buttons */
.btn-auth {
  width: 100%;
  padding: 1.4rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.btn-auth:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Divider */
.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #eee;
}
.divider span {
  background: #fff;
  padding: 0 15px;
  position: relative;
  color: #999;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Social Buttons */
.social-login {
  display: flex;
  gap: 1rem;
  flex-direction: column; /* Xếp dọc cho đẹp trên form hẹp */
}
.btn-social {
  width: 100%;
  padding: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}
.btn-social.github {
  background: #24292e;
  color: #fff;
  border: none;
  height: 44px; /* Fix chiều cao cho bằng Google btn */
}
.btn-social.github:hover {
  background: #000;
}

.back-link {
  color: #666;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    max-width: 500px; /* Thu nhỏ lại trên mobile */
  }
  .auth-image {
    display: none; /* Ẩn ảnh trên mobile để tập trung vào form */
  }
  .auth-content {
    padding: 3rem 2rem;
  }
}

/*--------------------------------------------------  */
/* --- TRANG TÀI KHOẢN (ACCOUNT PAGE) --- */

.account-page {
  display: flex;
  gap: 3rem;
  padding-top: 130px; /* Tránh header */
  padding-bottom: 5rem;
  align-items: flex-start;
}

/* 1. Sidebar */
.account-sidebar {
  width: 250px;
  flex-shrink: 0;
}
.user-brief {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}
.avatar-circle {
  width: 50px;
  height: 50px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ccc;
}
.user-name-display {
  font-weight: 700;
  font-size: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu {
  list-style: none;
}
.menu-header {
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  color: #333;
}
.sidebar-link {
  display: block;
  padding: 8px 0 8px 30px;
  color: #666;
  font-size: 1.4rem;
  transition: 0.2s;
}
.sidebar-link:hover,
.sidebar-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* 2. Content Area */
.account-content {
  flex: 1;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 3rem;
  min-height: 500px;
  border-radius: 4px;
}

.content-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}
.content-header h3 {
  font-size: 2rem;
  font-weight: 600;
}
.content-header p {
  font-size: 1.4rem;
  color: #777;
  margin-top: 5px;
}

/* Forms */
.account-form {
  max-width: 600px;
}
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}
.form-row label {
  width: 150px;
  text-align: right;
  margin-right: 3rem;
  color: #555;
  font-size: 1.4rem;
}
.form-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
}
.readonly-text {
  flex: 1;
  font-weight: 500;
}
.note {
  font-size: 1.2rem;
  color: #999;
  margin-left: 1rem;
}
.btn-save {
  margin-left: 180px; /* label width + gap */
  padding: 12px 25px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
}

/* Address List */
.address-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}
.name-phone {
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 1.5rem;
}
.name-phone .phone {
  font-weight: 400;
  color: #777;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid #ddd;
}
.detail {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 5px;
}
.default-badge {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 2px 5px;
}
.btn-text {
  background: none;
  border: none;
  color: #0055aa;
  cursor: pointer;
  margin-left: 1rem;
}
.btn-text.del {
  color: red;
}
.btn-add-new {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

/* Order Tabs & List */
.content-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 2rem;
}
.order-tab {
  flex: 1;
  padding: 1.5rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.order-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.order-card {
  border: 1px solid #eee;
  padding: 2rem;
  margin-bottom: 2rem;
}
.order-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 1rem;
}
.order-status.delivered {
  color: green;
  font-weight: 600;
}

.order-body {
  display: flex;
  gap: 1.5rem;
}
.order-info h4 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}
.order-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffbf8;
  padding: 1rem;
}
.total-money span {
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: 700;
}

/* Voucher */
.voucher-ticket {
  display: flex;
  border: 1px solid #eee;
  max-width: 400px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}
.voucher-left {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}
.voucher-right {
  padding: 1.5rem;
  flex: 1;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #fff;
  padding: 3rem;
  width: 500px;
  border-radius: 4px;
}
.modal-content h4 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}
.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
}
.addr-select-row {
  display: flex;
  gap: 1rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}
.btn-save-addr {
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
}
.btn-cancel {
  padding: 10px 20px;
  background: #ddd;
  border: none;
}

/* Responsive Account */
@media (max-width: 768px) {
  .account-page {
    flex-direction: column;
  }
  .account-sidebar {
    width: 100%;
    margin-bottom: 2rem;
  }
  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .sidebar-menu li {
    flex-shrink: 0;
    margin-right: 15px;
  }
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-row label {
    text-align: left;
    margin-bottom: 5px;
    width: 100%;
  }
  .btn-save {
    margin-left: 0;
    width: 100%;
  }
}

.checkbox-label {
  display: flex; /* Xếp ngang */
  align-items: center; /* Căn giữa theo chiều dọc */
  gap: 10px; /* Khoảng cách giữa ô vuông và chữ */
  margin-bottom: 2rem;
  font-size: 1.4rem;
  cursor: pointer;
  user-select: none; /* Chặn bôi đen text khi click nhanh */
}

/* 2. Reset style cho riêng ô Checkbox (Ghi đè width: 100% cũ) */
.modal-content input[type="checkbox"] {
  width: 20px !important; /* Kích thước ô vuông cố định */
  height: 20px;
  margin-bottom: 0 !important; /* Bỏ margin thừa phía dưới */
  cursor: pointer;
  accent-color: var(
    --primary-color
  ); /* Đổi màu checkbox theo màu chủ đạo (nếu trình duyệt hỗ trợ) */
}
/* --- ĐỒNG BỘ FONT CHỮ --- */
.order-tab,
.order-status,
.btn-save-addr,
.btn-cancel,
.modal-content h4,
.modal-content input {
  font-family: "Montserrat", sans-serif;
}

/* --- LÀM ĐẸP MODAL --- */
#order-modal,
#address-modal {
  display: none; /* JS sẽ đổi thành flex */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content.large-modal {
  width: 800px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.modal-header {
  background: #f9f9f9;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h4 {
  margin: 0;
  font-size: 1.6rem;
}

.modal-body {
  padding: 20px;
}

/* Modal Sections */
.modal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fff;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dashed #eee;
}
@media (max-width: 600px) {
  .modal-section {
    grid-template-columns: 1fr;
  }
}

.info-group label {
  font-size: 1.2rem;
  color: #999;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.info-group div {
  font-size: 1.4rem;
  color: #333;
  font-weight: 500;
}

/* Modal Items List */
.modal-items-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}
.modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.modal-item:last-child {
  border-bottom: none;
}

/* Tổng tiền */
.modal-summary {
  text-align: right;
  background: #fbfbfb;
  padding: 15px;
  border-radius: 4px;
}
.summary-row {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 5px;
  font-size: 1.4rem;
}
.summary-row.final {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 5px;
}

/* Footer Actions */
.modal-actions-footer {
  margin-top: 20px;
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Buttons */
.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}
.btn-warning {
  background: #f39c12;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

/* Order ID Link */
.order-id-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}

/* --- VOUCHER TICKET STYLE --- */
.voucher-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.voucher-card {
  display: flex;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.voucher-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.voucher-left {
  background: var(--primary-color);
  color: #fff;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-right: 2px dashed #fff;
}
.voucher-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  opacity: 0.9;
}
.voucher-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.voucher-right {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.voucher-code-row {
  margin-bottom: 5px;
}
.v-code {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.4rem;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}
.v-desc {
  font-size: 1.3rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 3px;
}
.v-condition {
  font-size: 1.2rem;
  color: #777;
}

/* Hình tròn cắt vé */
.circle-top,
.circle-bottom {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  left: 100px;
  z-index: 1;
}
.circle-top {
  top: -10px;
  border-bottom: 1px solid #e5e5e5;
}
.circle-bottom {
  bottom: -10px;
  border-top: 1px solid #e5e5e5;
}

/* ------------------ */

/* --- VOUCHER STYLES --- */
.voucher-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.voucher-card {
  display: flex;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.voucher-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Phần bên trái (Màu đậm) */
.voucher-left {
  background: var(--primary-color);
  color: #fff;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-right: 2px dashed #fff; /* Đường cắt nét đứt */
}
.voucher-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  opacity: 0.9;
}
.voucher-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Phần bên phải (Thông tin) */
.voucher-right {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.voucher-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.v-code {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.4rem;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}
.btn-copy {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.4rem;
  transition: 0.2s;
}
.btn-copy:hover {
  color: var(--primary-color);
}

.v-desc {
  font-size: 1.3rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Cắt dòng nếu dài quá */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-condition {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 5px;
}
.v-date {
  font-size: 1.1rem;
  color: #999;
  margin-top: auto; /* Đẩy xuống đáy */
}

/* Trang trí hình tròn cắt ở giữa vé */
.circle-top,
.circle-bottom {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff; /* Trùng màu nền web */
  border-radius: 50%;
  left: 100px; /* Vị trí khớp với đường cắt dọc */
  z-index: 1;
}
.circle-top {
  top: -10px;
  border-bottom: 1px solid #e5e5e5;
}
.circle-bottom {
  bottom: -10px;
  border-top: 1px solid #e5e5e5;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  background: #f9f9f9;
  border-radius: 8px;
  color: #777;
}

/* Responsive */
@media (max-width: 480px) {
  .voucher-container {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------- */
/* --- ORDER STYLES --- */
.order-list {
  margin-top: 2rem;
}

.order-card {
  border: 1px solid #eee;
  padding: 2rem;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 4px;
  transition: 0.3s;
}
.order-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.order-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 1rem;
}

/* Màu trạng thái */
.order-status {
  font-weight: 600;
  font-size: 1.3rem;
}
.order-status.pending {
  color: #f39c12;
} /* Cam */
.order-status.confirmed {
  color: #3498db;
} /* Xanh dương */
.order-status.shipping {
  color: #16a085;
} /* Xanh ngọc */
.order-status.delivered {
  color: #27ae60;
} /* Xanh lá */
.order-status.cancelled {
  color: #e74c3c;
} /* Đỏ */
.order-status.returned {
  color: #8e44ad;
} /* Tím */

/* Modal Chi tiết */
.large-modal {
  width: 700px;
  max-width: 95%;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  line-height: 1.6;
}

.modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.item-info h4 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}
.item-info p {
  font-size: 1.3rem;
  color: #777;
}
.item-price {
  font-weight: 600;
}

.modal-summary {
  margin-top: 2rem;
  text-align: right;
}
.summary-row {
  margin-bottom: 5px;
  font-size: 1.4rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}
.summary-row.final {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.modal-actions-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}
.btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
}
.btn-warning {
  background: #f39c12;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
}
.btn-view-detail {
  padding: 8px 15px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* -------------------------------------- */
/* ---------------Home=================== */
/* --- HERO BANNER --- */
.hero-section {
  position: relative;
  height: 600px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  margin-top: -20px; /* Đẩy sát header */
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 0;
  filter: blur(0.9px);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
}
.hero-title {
  color: #f9f7fa;
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0 5px 5px rgba(190, 28, 28, 0.5);
}

.hero-desc {
  text-shadow: 0 5px 10px rgba(255, 0, 4, 0.5);
}
.btn-cta {
  padding: 12px 30px;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
}
.btn-cta:hover {
  background: #000;
  color: #fff;
}

/* --- PRODUCT GRID --- */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.product-card {
  transition: 0.3s;
  position: relative;
}
.product-card:hover .p-img img {
  transform: scale(1.05);
}
.p-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f9f9f9;
  margin-bottom: 15px;
}
.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}
.p-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.badge-sale {
  background: var(--accent-color);
}
.badge-new {
  background: #27ae60;
}

.p-info {
  text-align: center;
}
.p-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  display: block;
  margin-bottom: 5px;
}
.p-price {
  font-weight: 700;
  color: #000;
}
.p-old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1.3rem;
  margin-right: 8px;
  font-weight: 400;
}

/* --- PRODUCT DETAIL --- */
.detail-container {
  padding-top: 80px;
  display: flex;
  gap: 50px;
}
/* Left Gallery */
.gallery-box {
  flex: 1.2;
  display: flex;
  gap: 15px;
}
.thumb-list {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb-item {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 1px solid transparent;
}
.thumb-item.active {
  opacity: 1;
  border-color: #000;
}
.main-img-wrap {
  flex: 1;
  background: #f9f9f9;
}
.main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Right Info */
.info-box {
  flex: 1;
}
.dt-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}
.dt-price {
  font-size: 2.4rem;
  margin-bottom: 25px;
  font-weight: 700;
}
.selector-row {
  margin-bottom: 25px;
}
.lbl {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.opt-btn {
  min-width: 40px;
  height: 35px;
  border: 1px solid #ddd;
  background: #fff;
  margin-right: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: 0.2s;
}
.opt-btn:hover {
  border-color: #999;
}
.opt-btn.selected {
  background: #000;
  color: #fff;
  border-color: #000;
}
.opt-btn.disabled {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn-add-cart:hover {
  background: #333;
}
.btn-add-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .detail-container {
    flex-direction: column;
  }
  .gallery-box {
    flex-direction: column-reverse;
  }
  .thumb-list {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  .thumb-item {
    width: 70px;
    height: 90px;
  }
}
/* --- POLICY SECTION (4 Cột thông tin) --- */
.policy-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Chia 4 cột đều nhau */
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #eee; /* Đường gạch dưới nhẹ ngăn cách */
  margin-bottom: 40px;
}

.policy-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Khoảng cách giữa icon và chữ */
  padding: 10px;
}

.policy-icon {
  font-size: 2.8rem; /* Kích thước icon to */
  color: var(--primary-color); /* Màu đen chủ đạo */
}

.policy-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #000;
}

.policy-text p {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
}

/* --- RESPONSIVE POLICY (Cho điện thoại) --- */
@media (max-width: 992px) {
  .policy-section {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 cột */
    gap: 30px;
  }
  .policy-item {
    justify-content: flex-start; /* Căn trái cho dễ đọc */
  }
}

@media (max-width: 480px) {
  .policy-section {
    grid-template-columns: 1fr; /* Mobile: 1 cột dọc */
    gap: 20px;
  }
}

/* -------------------------------- */
/* --- SEARCH OVERLAY (Khung tìm kiếm toàn màn hình) --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-container {
  width: 600px;
  max-width: 90%;
  position: relative;
}
.btn-close-search {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn-close-search:hover {
  transform: rotate(90deg);
  color: #d0011b;
}
.search-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #333;
  padding: 15px 0;
  font-size: 2.4rem;
  background: transparent;
  outline: none;
}
.search-suggestions {
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.suggest-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}
.suggest-item:hover {
  background: #f9f9f9;
}
.suggest-img {
  width: 50px;
  height: 65px;
  object-fit: cover;
  margin-right: 15px;
}
.suggest-info h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.suggest-price {
  font-size: 1.3rem;
  color: #000;
  font-weight: 700;
}
.suggest-price del {
  color: #999;
  font-weight: 400;
  margin-right: 5px;
  font-size: 1.1rem;
}
.search-icon {
  cursor: pointer;
}

/* -----------ALll colection----------------- */
/* --- SHOP PAGE STYLES --- */

/* 1. Banner */
.shop-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-bottom: 40px;
  margin-top: 10px;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #270a0a;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.banner-content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.banner-content p {
  font-size: 1.6rem;
  font-weight: 300;
}

/* 2. Category Grid (Nhóm Áo, Quần...) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
  align-items: center;
  justify-content: center;
}
.cat-item {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  border-radius: 4px;
}
.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}
.cat-item:hover img {
  transform: scale(1.1);
}
.cat-info {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
}
.cat-info h3 {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 8px 20px;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 3. Toolbar (Filter/Sort) */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}
.toolbar-left span {
  font-weight: 600;
  font-size: 1.4rem;
  color: #555;
}
.toolbar-right label {
  margin-right: 10px;
  font-size: 1.3rem;
}
.toolbar-right select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1.3rem;
  outline: none;
  cursor: pointer;
}

/* 4. Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 50px 0;
}
.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
}
.page-btn:hover,
.page-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 5. Shop Description (SEO) */
.shop-description {
  background: #f9f9f9;
  padding: 40px;
  margin-bottom: 60px;
  border-radius: 8px;
}
.desc-content {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #444;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.desc-content.collapsed {
  max-height: 150px; /* Chiều cao khi thu gọn */
  position: relative;
}
/* Hiệu ứng mờ dần khi thu gọn */
.desc-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(transparent, #f9f9f9);
}
.desc-content h2 {
  margin-top: 0;
  font-size: 2rem;
}
.desc-content img {
  margin: 20px auto;
  max-width: 100%;
  border-radius: 4px;
  display: block;
}
.toggle-btn-wrap {
  text-align: center;
  margin-top: 20px;
}
#btn-toggle-desc {
  background: none;
  border: 1px solid #000;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
}
#btn-toggle-desc:hover {
  background: #000;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-toolbar {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------- */
/* --- CART PAGE --- */
.cart-note {
  display: flex; /* Xếp ngang */
  gap: 20px; /* Khoảng cách giữa chữ và ô nhập */
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.cart-note label {
  font-weight: 700;
  white-space: nowrap; /* Không xuống dòng chữ */
  margin-top: 10px; /* Căn chỉnh cho ngang với dòng chữ đầu tiên trong textarea */
  font-size: 1.4rem;
}

.cart-note textarea {
  flex: 1; /* Chiếm hết khoảng trống còn lại */
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1.4rem;
  resize: vertical; /* Cho phép kéo giãn chiều dọc */
  min-height: 50px;
}
.cart-note textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}
.cart-subtitle {
  padding-bottom: 30px;
}
.cart-page {
  /* padding: 40px 0; */
  padding-top: 100px;
}
.cart-layout {
  display: flex;
  gap: 40px;
}
.cart-items-section {
  flex: 2;
}
.cart-sidebar {
  flex: 1;
}

/* Table Header */
.cart-header-row {
  display: flex;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #555;
}
.col-product {
  flex: 3;
}
.col-price,
.col-qty,
.col-total,
.col-action {
  flex: 1;
  text-align: center;
}

/* Cart Item */
.cart-item-row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.ci-img img {
  width: 80px;
  height: 100px;
  object-fit: cover;
}
.col-product {
  display: flex;
  gap: 15px;
  text-align: left;
}
.ci-name {
  font-weight: 600;
  color: #000;
  text-decoration: none;
}
.ci-variant,
.ci-stock {
  font-size: 0.85rem;
  color: #777;
  margin: 5px 0 0;
}
.qty-control {
  display: flex;
  border: 1px solid #ddd;
  width: 100px;
  margin: 0 auto;
}
.qty-control button {
  width: 30px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.qty-control input {
  width: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
}
.btn-delete {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  transition: 0.2s;
}
.btn-delete:hover {
  color: red;
}

/* Sticky Sidebar */
.cart-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.order-summary {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 4px;
}
.summary-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #ddd;
}
.checkout-btn {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 15px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}
.checkout-btn:hover {
  background: #333;
}

/* Address & Voucher Box */
.address-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.change-address-btn {
  font-size: 0.85rem;
  text-decoration: underline;
  color: #000;
}
.selected-address-box p {
  margin: 3px 0;
  font-size: 0.9rem;
}
.voucher-input-group {
  display: flex;
  gap: 10px;
}
.voucher-input-group input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
}
.voucher-input-group button {
  background: #000;
  color: #fff;
  border: none;
  padding: 0 15px;
  cursor: pointer;
}
.applied-voucher-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e6f7ff;
  padding: 8px 12px;
  margin-top: 10px;
  border: 1px solid #91d5ff;
  border-radius: 4px;
}
.remove-voucher {
  cursor: pointer;
  color: red;
}

/* Payment Radio */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.payment-option input {
  display: none;
}
.radio-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}
.payment-option input:checked + .radio-checkmark {
  border-color: #000;
}
.payment-option input:checked + .radio-checkmark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}
.payment-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

/* QR Code */
.momo-qr-box {
  margin-top: 15px;
  text-align: center;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
}
.momo-qr-box img {
  max-width: 200px;
  margin: 10px 0;
}
.qr-desc {
  color: #d0021b;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 400px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}
.addr-item-select,
.voucher-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.addr-item-select:hover,
.voucher-item:hover {
  background: #f9f9f9;
}
.voucher-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.v-left {
  font-weight: bold;
  color: var(--accent-color);
}
/* Tablet & Mobile (Dưới 1024px) */
@media (max-width: 1024px) {
  .cart-layout {
    flex-direction: column; /* Đẩy thanh toán xuống dưới danh sách */
    gap: 30px;
  }

  .cart-sidebar {
    position: static; /* Bỏ dính (sticky) để không bị lỗi trên màn nhỏ */
    width: 100%;
  }

  /* Phần ghi chú trên tablet */
  .cart-note {
    flex-direction: column;
    gap: 10px;
  }
}

/* Mobile (Dưới 768px) */
@media (max-width: 768px) {
  .cart-page {
    padding-top: 80px;
  }

  /* Ẩn tiêu đề bảng (Sản phẩm, Giá, SL...) vì không đủ chỗ */
  .cart-header-row {
    display: none;
  }

  /* Biến mỗi dòng sản phẩm thành 1 thẻ Card */
  .cart-item-row {
    flex-wrap: wrap; /* Cho phép xuống dòng */
    position: relative;
    padding: 15px 0;
    gap: 10px;
  }

  /* Cột Sản phẩm (Ảnh + Tên) chiếm 100% dòng trên */
  .col-product {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 10px;
  }
  .ci-img img {
    width: 70px;
    height: 90px;
  }
  .ci-name {
    font-size: 1.4rem;
  }

  /* Căn chỉnh lại các cột còn lại (Giá, SL, Tổng) */
  .col-price,
  .col-total {
    display: none; /* Ẩn bớt giá đơn và tổng tạm tính cho gọn, chỉ giữ lại bộ điều khiển SL */
  }

  /* Hoặc nếu muốn hiện Giá thì mở đoạn này:
    .col-price { display: block; text-align: left; font-weight: 700; width: 100%; margin-left: 85px; margin-top: -10px; margin-bottom: 10px;} 
    */

  .col-qty {
    margin-left: 85px; /* Thụt vào thẳng hàng với tên sản phẩm (bỏ qua ảnh) */
    text-align: left;
    flex: 1;
  }

  .qty-control {
    margin: 0; /* Canh trái */
  }

  /* Nút xóa đưa lên góc phải trên cùng */
  .col-action {
    position: absolute;
    top: 15px;
    right: 0;
    width: auto;
  }
  .btn-delete {
    padding: 10px;
    font-size: 1.6rem;
    color: #999;
  }

  /* Phần tổng tiền sidebar */
  .order-summary {
    padding: 20px;
  }
}
/* Style cho khung thông tin thanh toán */
.payment-info-box {
  margin-top: 15px;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.qr-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

/* Thông tin chi tiết ngân hàng */
.bank-details {
  margin-top: 15px;
  text-align: left;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  font-size: 1.3rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}
.bank-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.bank-row span {
  color: #666;
}

.bank-row b {
  color: #000;
  font-weight: 600;
  text-align: right;
}

.highlight-content {
  color: var(--primary-color) !important; /* Màu chủ đạo của web */
  font-weight: 700 !important;
  background: #fff;
  padding: 2px 5px;
  border: 1px dashed var(--primary-color);
}

.note-sm {
  font-size: 1.1rem;
  color: #888;
  margin-top: 10px;
  font-style: italic;
}
