/* ===================================================
   T3 FOOD - CULINARY APPETITE & EYE-SOOTHING THEME
   Phối màu ấm cúng, êm dịu mắt và kích thích vị giác
   Tone: Hổ phách mật ong (Amber Terracotta), Kem yến mạch (Warm Cream), Espresso nâu ấm
   =================================================== */

:root {
  /* Màu kích thích vị giác: Đồ nướng vàng ươm, mật ong, nước sốt caramel */
  --primary: #e8590c;
  --primary-hover: #d9480f;
  --primary-light: #fff4e6;
  --primary-gradient: linear-gradient(135deg, #d9480f 0%, #e8590c 50%, #f76707 100%);
  
  /* Nền kem ấm dịu mắt, không lóa mắt như trắng tinh hay xám lạnh */
  --shopee-bg: #f9f6f0;
  
  /* Màu chữ nâu cafe espresso ấm áp, dễ chịu cho thị giác */
  --text-main: #2b2018;
  --text-muted: #6e6055;
  --text-light: #9b8c82;
  --border-color: #ebdcd0;
  --card-bg: #ffffff;
  
  /* Màu tươi sạch (rau củ tươi, lá quế) & điểm nhấn ẩm thực */
  --green: #2b8a3e;
  --green-light: #ebfbee;
  --yellow: #f59f00;
  --red: #c92a2a;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  /* Đổ bóng ấm tự nhiên (warm shadow) */
  --shadow-sm: 0 2px 6px rgba(90, 50, 20, 0.05);
  --shadow-md: 0 6px 18px rgba(90, 50, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(90, 50, 20, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--shopee-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================== TOP NOTIFICATION BAR ================== */
.top-notice-bar {
  background: #d9480f;
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  animation: pulseWarm 2.5s infinite;
}

.top-notice-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.top-notice-bar .btn-track-fast {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

@keyframes pulseWarm {
  0%, 100% { background: #d9480f; }
  50% { background: #c23e0c; }
}

/* ================== HEADER STYLES ================== */
.main-header {
  background: var(--primary-gradient);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(217, 72, 15, 0.25);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-top-left, .header-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  color: rgba(255, 255, 255, 0.92);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.logo-wrap:hover {
  transform: scale(1.02);
}

.logo-icon {
  font-size: 30px;
  background: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.logo-text h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.logo-text h1 span {
  font-size: 13px;
  background: #ffffff;
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 11.5px;
  opacity: 0.95;
  letter-spacing: 0.3px;
}

/* Địa chỉ nhận hàng */
.address-selector-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  transition: var(--transition);
}

.address-selector-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.addr-label {
  font-size: 11px;
  opacity: 0.88;
  display: block;
}

.addr-value {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Thanh tìm kiếm */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.search-box input::placeholder {
  color: #9c8e83;
}

.search-box .btn-clear {
  color: #999;
  padding: 4px 8px;
  display: none;
  font-size: 14px;
}

.search-box .btn-search {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(217, 72, 15, 0.3);
}

.search-box .btn-search:hover {
  filter: brightness(1.08);
}

.search-suggest-tags {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.search-suggest-tags span {
  cursor: pointer;
  transition: var(--transition);
}

.search-suggest-tags span:hover {
  text-decoration: underline;
  color: #fff;
}

/* Các nút hành động Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-action-btn {
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.header-action-btn i {
  font-size: 20px;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.action-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background: #ffffff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ================== HERO BANNER & FLASH SALE ================== */
.hero-section {
  padding: 22px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.banner-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #c93b12 0%, #e8590c 50%, #f76707 100%);
  color: #ffffff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.banner-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.banner-content p {
  font-size: 15px;
  opacity: 0.96;
  margin-bottom: 18px;
}

.banner-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-tag {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.banner-subs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-sub-card {
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.banner-sub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sub-card-1 {
  background: linear-gradient(135deg, #2b8a3e, #206a2e);
}

.sub-card-2 {
  background: linear-gradient(135deg, #e67700, #d9480f);
}

.sub-card-info h4 {
  font-size: 16px;
  font-weight: 700;
}

.sub-card-info p {
  font-size: 12.5px;
  opacity: 0.92;
}

.sub-card-icon {
  font-size: 34px;
}

/* ================== FLASH SALE SECTION ================== */
.flash-sale-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flash-title-wrap h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.countdown-box span {
  background: #342820;
  color: #ffffff;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  min-width: 26px;
  text-align: center;
}

.flash-scroll-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.flash-card {
  min-width: 180px;
  width: 180px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.flash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.flash-badge-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.flash-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.flash-info {
  padding: 10px;
}

.flash-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.flash-price {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.flash-progress-wrap {
  position: relative;
  background: #ffe3d3;
  border-radius: var(--radius-full);
  height: 17px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f76707, #ff922b);
  border-radius: var(--radius-full);
}

.flash-progress-text {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ================== DANH MỤC ẨM THỰC ================== */
.category-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.section-head {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.3px;
}

.category-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #faf7f2;
  border: 1px solid var(--border-color);
  min-width: 108px;
  transition: var(--transition);
}

.cat-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cat-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 0 0 1px var(--primary);
}

.cat-icon {
  font-size: 28px;
}

.cat-name {
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

/* ================== BỘ LỌC VÀ SẮP XẾP ================== */
.filter-bar {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.filter-pill {
  padding: 6px 15px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: #fbf9f5;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(232, 89, 12, 0.25);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 13px;
  outline: none;
  background: #fff;
  cursor: pointer;
  color: var(--text-main);
}

/* ================== FOOD GRID & FOOD CARDS ================== */
.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.food-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-color);
}

.food-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 89, 12, 0.45);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f7f2ea;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.food-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.freeship-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  transition: var(--transition);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.fav-btn:hover {
  transform: scale(1.15);
}

.fav-btn.active {
  color: var(--red);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-restaurant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  height: 41px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-meta .rating {
  color: #f59f00;
  font-weight: 800;
}

.card-meta .dot {
  color: #d6c7b9;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.current-price {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-card-cart {
  background: var(--primary-light);
  color: var(--primary);
  height: 30px;
  padding: 0 9px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid rgba(232, 89, 12, 0.35);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-card-cart i {
  font-size: 12px;
}

.btn-card-cart:hover {
  background: #ffe3d1;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(232, 89, 12, 0.25);
}

.btn-card-buy {
  background: linear-gradient(135deg, #e8590c, #f76707);
  color: #ffffff;
  height: 32px;
  padding: 0 13px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 7px rgba(232, 89, 12, 0.35);
  transition: var(--transition);
}

.btn-card-buy i {
  font-size: 12px;
}

.btn-card-buy:hover {
  background: linear-gradient(135deg, #d9480f, #e8590c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 89, 12, 0.45);
}

.btn-card-out {
  background: #f1f3f5;
  color: #868e96;
  border: 1px solid #dee2e6;
  height: 30px;
  padding: 0 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-sold-info {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-light);
}

/* ================== EMPTY STATE ================== */
.empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  padding: 48px 16px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.empty-state h3, .empty-state h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ================== MODAL BASE SYSTEM ================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 15, 0.6);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.modal.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.modal-close-btn {
  font-size: 18px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #f2ebe1;
  color: #000;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #ffffff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* ================== FOOD CUSTOMIZE MODAL ================== */
.food-modal-img {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.food-modal-info {
  margin-bottom: 18px;
}

.food-modal-restaurant {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.food-modal-name {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.food-modal-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.food-modal-base-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.options-group {
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.options-group-title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  background: #faf7f2;
}

.option-label:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.option-label.selected, .option-label input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-extra {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.radio-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-pill-label {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 13px;
  cursor: pointer;
  background: #faf7f2;
}

.radio-pill-label input {
  display: none;
}

.radio-pill-label:has(input:checked) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}

.note-input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 11px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.note-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232, 89, 12, 0.15);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-control button {
  width: 38px;
  height: 38px;
  background: #faf7f2;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-main);
}

.qty-control button:hover {
  background: #ebdcd0;
}

.qty-control span {
  width: 44px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

/* ================== CART DRAWER ================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1050;
  box-shadow: -4px 0 24px rgba(40, 20, 10, 0.18);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 15, 0.55);
  z-index: 1040;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  visibility: visible;
  opacity: 1;
}

.drawer-header {
  padding: 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--text-main);
}

.cart-item-details {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.35;
}

.cart-item-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.qty-control-sm {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.qty-control-sm button {
  width: 26px;
  height: 26px;
  background: #faf7f2;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control-sm span {
  width: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.btn-remove-item {
  color: #a89a8f;
  font-size: 14px;
  padding: 4px;
  transition: var(--transition);
}

.btn-remove-item:hover {
  color: var(--red);
}

.cart-voucher-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.voucher-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.voucher-trigger-btn:hover {
  background: #ffe8d7;
}

.applied-voucher-tag {
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.drawer-footer {
  padding: 18px;
  border-top: 1px solid var(--border-color);
  background: #fdfbf7;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calc-row.total-row {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* ================== BUTTONS ================== */
.btn {
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(217, 72, 15, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 5px 14px rgba(217, 72, 15, 0.35);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

/* ================== VOUCHER MODAL ================== */
.custom-voucher-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.custom-voucher-box input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  text-transform: uppercase;
}

.voucher-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voucher-card {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  transition: var(--transition);
}

.voucher-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.voucher-card.disabled {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.voucher-card.selected {
  border-color: var(--green);
  background: var(--green-light);
}

.voucher-left {
  width: 110px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
}

.voucher-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.voucher-code {
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.voucher-right {
  flex: 1;
  padding: 14px;
}

.voucher-title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.voucher-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.voucher-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voucher-min {
  font-size: 11.5px;
  color: var(--text-light);
}

/* ================== CHECKOUT MODAL ================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232, 89, 12, 0.15);
}

.payment-method-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: #faf7f2;
}

.payment-method-card:hover {
  border-color: var(--primary);
  background: #fff8f0;
}

.payment-method-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.payment-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
}

.payment-details strong {
  display: block;
  font-size: 13.5px;
}

.payment-details span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.checkout-summary-box {
  background: #fbf9f5;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* ================== QR CODE MODAL ================== */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.qr-image-wrap {
  width: 220px;
  height: 220px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 8px;
  background: #fff;
  margin-bottom: 14px;
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
}

.qr-instructions {
  background: #fff8f2;
  border: 1px solid #fedbc4;
  padding: 14px;
  border-radius: var(--radius-md);
  width: 100%;
  font-size: 13px;
  text-align: left;
}

.qr-instructions li {
  margin-left: 18px;
  margin-bottom: 5px;
}

/* ================== LIVE TRACKING MODAL ================== */
.tracking-header-info {
  background: linear-gradient(135deg, #d9480f, #e8590c);
  color: #fff;
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.tracking-status-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tracking-status-desc {
  font-size: 13px;
  opacity: 0.95;
}

/* Driver Card */
.driver-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: #ffffff;
}

.driver-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.driver-name {
  font-size: 15px;
  font-weight: 700;
}

.driver-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.driver-actions {
  display: flex;
  gap: 8px;
}

.driver-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
}

.driver-btn-call {
  background: var(--green-light);
  color: var(--green);
}

.driver-btn-call:hover {
  background: var(--green);
  color: #fff;
}

.driver-btn-chat {
  background: var(--primary-light);
  color: var(--primary);
}

.driver-btn-chat:hover {
  background: var(--primary);
  color: #fff;
}

/* Timeline */
.tracking-timeline {
  position: relative;
  padding: 10px 0 10px 24px;
  margin-bottom: 20px;
}

.timeline-line-bg {
  position: absolute;
  top: 15px;
  bottom: 25px;
  left: 7px;
  width: 3px;
  background: #e3d5c6;
}

.timeline-progress-fill {
  position: absolute;
  top: 15px;
  left: 7px;
  width: 3px;
  background: var(--green);
  transition: height 0.5s ease;
  height: 0%;
}

.tracking-step {
  position: relative;
  margin-bottom: 18px;
  opacity: 0.5;
  transition: var(--transition);
}

.tracking-step.completed, .tracking-step.current {
  opacity: 1;
}

.step-marker {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ccc;
  z-index: 2;
  transition: var(--transition);
}

.tracking-step.completed .step-marker {
  background: var(--green);
  border-color: var(--green);
}

.tracking-step.current .step-marker {
  background: var(--primary);
  border-color: #ffd8cc;
  box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.3);
  animation: pulseBeacon 1.5s infinite;
}

@keyframes pulseBeacon {
  0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(232, 89, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0); }
}

.step-title {
  font-size: 14.5px;
  font-weight: 700;
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Map Simulation */
.simulated-map {
  background: #eaf6ed;
  border: 1px solid #c2e2c7;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.map-route-graphic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.map-point {
  text-align: center;
  font-size: 22px;
}

.map-point span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.map-road {
  flex: 1;
  height: 4px;
  background: dashed 2px #2b8a3e;
  margin: 0 16px;
  position: relative;
}

.moving-scooter {
  position: absolute;
  top: -14px;
  font-size: 20px;
  animation: driveRoad 4s infinite linear;
}

@keyframes driveRoad {
  0% { left: 0%; transform: scaleX(1); }
  49% { left: 90%; transform: scaleX(1); }
  50% { left: 90%; transform: scaleX(-1); }
  99% { left: 0%; transform: scaleX(-1); }
  100% { left: 0%; transform: scaleX(1); }
}

/* ================== ORDER HISTORY MODAL ================== */
.order-history-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
  transition: var(--transition);
}

.order-history-card:hover {
  box-shadow: var(--shadow-sm);
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.order-id {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--primary);
  margin-right: 8px;
}

.order-date {
  font-size: 12px;
  color: var(--text-light);
}

.order-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.order-status-badge.pending {
  background: #fff4e6;
  color: #d9480f;
}

.order-status-badge.success {
  background: #ebfbee;
  color: #2b8a3e;
}

.order-history-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.history-item img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.history-item-info {
  flex: 1;
}

.history-item-info .name {
  font-weight: 700;
}

.history-item-info .meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.history-item .price {
  font-weight: 700;
  color: var(--primary);
}

.order-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-history-footer .total-text {
  font-size: 14px;
}

.order-history-footer .btn-group {
  display: flex;
  gap: 8px;
}

/* ================== FAVORITES MODAL ================== */
.fav-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.fav-item-row:hover {
  background: #fdfbf7;
}

.fav-item-row img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
}

.fav-item-info {
  flex: 1;
}

.fav-item-info h4 {
  font-size: 14.5px;
  font-weight: 700;
}

.fav-item-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.fav-item-info .price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
}

/* ================== ADDRESS MODAL ================== */
.address-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: #faf7f2;
}

.address-item:hover, .address-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.address-item i {
  color: var(--primary);
  margin-top: 4px;
}

.address-text {
  flex: 1;
}

.address-text strong {
  display: block;
  font-size: 14px;
}

.address-text p {
  font-size: 13px;
  color: var(--text-muted);
}

.default-tag {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* ================== TOAST NOTIFICATIONS ================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  min-width: 290px;
  max-width: 390px;
  border-left: 4px solid var(--primary);
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  border-left-width: 5px;
}

.toast.fade-out {
  opacity: 0;
  transform: translateX(40px);
}

.toast-success {
  border-left-color: var(--green);
}
.toast-success i {
  color: var(--green);
}

.toast-error {
  border-left-color: var(--red);
}
.toast-error i {
  color: var(--red);
}

.toast-warning {
  border-left-color: var(--yellow);
}
.toast-warning i {
  color: var(--yellow);
}

.toast-info {
  border-left-color: #1971c2;
}
.toast-info i {
  color: #1971c2;
}

.toast-msg {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  color: #bbb;
  font-size: 14px;
}

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ================== FOOTER ================== */
.main-footer {
  background: #ffffff;
  border-top: 4px solid var(--primary);
  padding: 44px 0 24px;
  margin-top: 50px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 2px;
}

.footer-badge-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-badge {
  background: #faf7f2;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* ================== AUTH & USER PROFILE STYLES ================== */
.auth-dialog {
  max-width: 440px;
}

.auth-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
}

.auth-tab {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: var(--transition);
}

.auth-tab:hover {
  color: var(--primary);
}

.auth-tab.active {
  color: var(--primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .form-control {
  padding-right: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px;
  transition: var(--transition);
}

.btn-toggle-pwd:hover {
  color: var(--primary);
}

.auth-aux-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  margin: 6px 0 12px;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
}

.forgot-pwd-link {
  color: var(--primary);
  font-weight: 600;
}

.forgot-pwd-link:hover {
  text-decoration: underline;
}

.quick-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: var(--text-light);
  font-size: 12px;
}

.quick-login-divider::before, .quick-login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.quick-login-divider span {
  padding: 0 10px;
}

/* Header Auth Buttons & User Dropdown */
.header-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth-btn {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.header-auth-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.header-auth-divider {
  opacity: 0.5;
  font-size: 11px;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.header-user-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.header-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* User Profile Modal */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #faf7f2;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.user-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.user-profile-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.user-profile-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.user-badge-tag {
  font-size: 11px;
  font-weight: 700;
  background: #fff4e6;
  color: #d9480f;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-main);
}

.profile-menu-item:hover {
  background: #faf7f2;
  border-color: var(--primary);
  transform: translateX(3px);
}

.profile-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item-left i {
  color: var(--primary);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.profile-menu-item .arrow {
  color: var(--text-light);
  font-size: 12px;
}

/* ================== CENTER ALERT POPUP MODAL (TO RÕ RÀNG GIỮA MÀN HÌNH) ================== */
.center-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInCenterAlert 0.2s ease-out;
}

.center-alert-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 34px 28px 28px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  animation: popInCenterAlert 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 2px solid rgba(238, 77, 45, 0.15);
}

@keyframes fadeInCenterAlert {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popInCenterAlert {
  from { opacity: 0; transform: scale(0.75) translateY(25px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.center-alert-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.center-alert-icon.success {
  background: #e8f8f0;
  color: #27ae60;
  border: 3.5px solid #a3e9c4;
}

.center-alert-icon.voucher {
  background: #fff4e6;
  color: #e8590c;
  border: 3.5px solid #ffd8a8;
}

.center-alert-icon.delete {
  background: #ffebee;
  color: #c0392b;
  border: 3.5px solid #ffcdd2;
}

.center-alert-icon.error {
  background: #ffebee;
  color: #e74c3c;
  border: 3.5px solid #ffcdd2;
}

.center-alert-icon.warning {
  background: #fff9db;
  color: #f08c00;
  border: 3.5px solid #ffe066;
}

.center-alert-icon.info {
  background: #e7f5ff;
  color: #1c7ed6;
  border: 3.5px solid #a5d8ff;
}

.center-alert-title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.center-alert-message {
  font-size: 14.5px;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
  font-weight: 500;
}

.center-alert-btn {
  width: 100%;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff6b35 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.center-alert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 77, 45, 0.45);
}

/* ================== INLINE CART VOUCHER STYLES ================== */
.cart-voucher-quick-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.cart-voucher-quick-pills::-webkit-scrollbar {
  display: none;
}

.cart-voucher-pill {
  background: #fff;
  border: 1.5px dashed #ee4d2d;
  color: #ee4d2d;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-voucher-pill:hover:not(:disabled) {
  background: #ee4d2d;
  color: #fff;
  border-color: #ee4d2d;
  transform: translateY(-1px);
}

.cart-voucher-pill.active {
  background: #27ae60;
  color: #fff;
  border: 1.5px solid #27ae60;
  cursor: default;
}

.cart-voucher-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #888;
}

.cart-voucher-dropdown {
  margin-top: 10px;
  background: #fffaf7;
  border: 1.5px solid #ffcaa5;
  border-radius: 12px;
  padding: 12px;
  animation: slideDownVoucher 0.2s ease;
}

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

.cart-voucher-card {
  background: #fff;
  border: 1.5px solid #ffe3d1;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  transition: 0.2s;
}

.cart-voucher-card.selected {
  border-color: #27ae60;
  background: #f0fdf4;
}

.cart-voucher-card.disabled {
  opacity: 0.6;
}

.cart-v-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.cart-v-code {
  font-weight: 800;
  color: var(--primary);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-v-badge {
  background: #ff7043;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cart-v-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-top: 2px;
}

.cart-v-gift {
  font-size: 11px;
  color: #e65100;
  margin-top: 2px;
  background: #fff3e0;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.cart-v-min {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.btn-v-apply {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.btn-v-apply:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: scale(1.03);
}

.btn-v-apply:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-v-applied {
  background: #27ae60 !important;
  color: #fff !important;
}



