/* =====================
   Header
   ===================== */
.hp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15,20,40,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.hp-header.scrolled {
  background: rgba(10,15,35,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.hp-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.hp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.hp-logo-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}
.hp-logo-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.hp-logo-tagline {
  display: block;
  font-size: 10px;
  color: #e94560;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Desktop Nav */
.hp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.hp-nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.hp-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: #e94560;
  border-radius: 2px;
  transition: left 0.25s, right 0.25s;
}
.hp-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.hp-nav-link:hover::after { left: 14px; right: 14px; }

/* Actions */
.hp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Cart */
.hp-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
}
.hp-cart-btn:hover { background: rgba(233,69,96,0.15); border-color: rgba(233,69,96,0.4); color: #fff; }
.hp-cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #e94560;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid rgba(10,15,35,0.97);
}

/* User button */
.hp-user-wrap { position: relative; }
.hp-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.hp-user-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.hp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.hp-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.hp-user-hi   { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 500; }
.hp-user-name { font-size: 13px; color: #fff; font-weight: 700; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-user-chev { font-size: 11px; color: rgba(255,255,255,0.5); transition: transform 0.25s; }
.hp-user-chev.rotated { transform: rotate(180deg); }

/* Dropdown */
.hp-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: #1a2744;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.hp-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.hp-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.hp-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.hp-dropdown-name { font-size: 14px; font-weight: 700; color: #fff; }
.hp-dropdown-sub  { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.hp-dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 0; }
.hp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.hp-dropdown-item i { font-size: 15px; color: #e94560; width: 18px; }
.hp-dropdown-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.hp-dropdown-danger { color: rgba(233,69,96,0.8); }
.hp-dropdown-danger:hover { background: rgba(233,69,96,0.08); color: #e94560; }
.hp-dd-badge {
  margin-left: auto;
  background: #e94560;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50px;
}

/* Login btn */
.hp-login-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.hp-login-btn:hover { background: rgba(255,255,255,0.13); color: #fff; border-color: rgba(255,255,255,0.25); }

/* Order CTA */
.hp-order-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #e94560, #c0392b);
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(233,69,96,0.4);
  transition: all 0.2s;
}
.hp-order-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(233,69,96,0.55); color: #fff; }
.hp-order-btn i { font-size: 14px; }

/* Mobile toggle */
.hp-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.hp-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
.hp-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hp-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.hp-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.hp-mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10,15,35,0.98);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.hp-mobile-nav.open { max-height: 400px; }
.hp-mobile-link {
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
}
.hp-mobile-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.hp-mobile-danger { color: #e94560; }
.hp-mobile-danger:hover { background: rgba(233,69,96,0.08); color: #e94560; }

/* Responsive */
@media (max-width: 1024px) {
  .hp-nav { display: none; }
  .hp-mobile-toggle { display: flex; }
  .hp-mobile-nav { display: flex; }
  .hp-order-btn span { display: none; }
  .hp-order-btn { padding: 9px 12px; }
  .hp-user-info { display: none; }
  .hp-user-btn { padding: 5px; }
  .hp-user-chev { display: none; }
}
@media (max-width: 480px) {
  .hp-login-btn span { display: none; }
  .hp-login-btn { padding: 9px 12px; }
  .hp-order-btn { display: none; }
  .hp-header-inner { gap: 10px; padding: 0 16px; }
}

/* Push content below fixed header — defined in body/main block below */

.login-section {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.login-card {
  border: none;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(26, 59, 125, 0.12);
  overflow: hidden;
}

.login-card .card-body {
  padding: 40px;
}

.login-card .nav-pills .nav-link {
  color: #495057;
  border: 1px solid #e9ecef;
  border-radius: 50px;
  margin-right: 0.75rem;
  padding: 10px 24px;
}

.login-card .nav-pills .nav-link.active {
  background: #d20404;
  border-color: #d20404;
  color: white;
}

.login-card .form-control {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #dee2e6;
}

.login-card .btn-primary {
  background: #d20404;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  width: 100%;
}

.login-card .btn-primary:hover {
  background: #a50202;
}

.auth-note {
  color: #6c757d;
  font-size: 0.95rem;
  margin-top: 14px;
}

.cart-table th,
.cart-table td {
  vertical-align: middle;
}

.page-title {
  margin-top: 100px;
  margin-bottom: 30px;
}

.cart-summary {
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  padding: 30px;
  background: #fff;
}

.cart-actions {
  margin-top: 20px;
}

.checkout-section {
  padding: 100px 0 60px;
  background: #f8f9fa;
}

.checkout-summary,
.checkout-form {
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(46, 61, 73, 0.08);
  background: #fff;
  padding: 30px;
}

.checkout-summary table th,
.checkout-summary table td {
  vertical-align: middle;
}

.btn-custom {
  padding: 4px 11px 7px;
    text-decoration: none;
    color: #fff;
    background-color: #dc3545;
    border-color: #fff;
    border: none;
}

.book-order-add {
  float: right;
  width: 16%;
  padding: 10px 12px;
}

.full-width-table {
  width: 100%;
}

.col-product {
  width: 32%;
}

.order-button-lg {
  font-size: 26px;
  font-weight: 700;
}

.fa {
  cursor: pointer;
}

/* Ensure footer sticks to bottom */
html { min-height: 100%; }
body { min-height: 100vh; }

.main {
  padding-top: 70px;
}

.footer {
  margin-top: auto;
}

.menu .nav-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.menu .nav-tabs .nav-item {
  flex: 0 0 auto;
}

.menu .nav-tabs .nav-link {
  white-space: nowrap;
  padding: 0.6rem 1rem;
}

/* Professional Menu Styling */
.menu .menu-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0;
}

.menu .menu-tabs .nav-item {
  flex: 0 0 auto;
  margin: 0 10px;
}

.menu .menu-tabs .nav-link {
  white-space: nowrap;
  padding: 15px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.menu .menu-tabs .nav-link:hover {
  color: #bb0404;
  border-bottom-color: rgba(187, 4, 4, 0.3);
  background: transparent;
}

.menu .menu-tabs .nav-link.active {
  color: #bb0404;
  border-bottom-color: #bb0404;
  background: transparent;
}

.menu .menu-tabs .nav-link h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.menu .menu-tabs .nav-link small {
  font-size: 0.75rem;
  font-weight: 400;
}

/* Menu Content Styling */
.menu .menu-content {
  padding: 40px 0;
}

.menu .tab-header {
  margin-bottom: 50px;
}

.menu .tab-header h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  position: relative;
  margin-bottom: 20px;
}

.divider-custom {
  width: 60px;
}

.divider-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, #bb0404, transparent);
  width: 100%;
}

/* Professional Menu Item Card */
.menu-item.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px !important;
  overflow: hidden;
}

.menu-item.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.menu-item-image {
  position: relative;
  background: #f5f5f5;
}

.menu-item-image img {
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-item.card:hover .menu-item-image img {
  transform: scale(1.1);
}

.overlay-badge {
  z-index: 10;
}

.menu-item .card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #222;
  margin-bottom: 12px !important;
}

.menu-item .card-body {
  padding: 20px;
}

.menu-item .btn-danger {
  background: #bb0404;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.menu-item .btn-danger:hover {
  background: #8a0303;
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(187, 4, 4, 0.3);
}

.menu-item .text-danger {
  color: #bb0404 !important;
  font-weight: 700;
}

/* Empty State Styling */
.tab-pane .bi-inbox,
.tab-pane .bi-file-earmark-x {
  opacity: 0.4;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .menu .tab-header h3 {
    font-size: 1.8rem;
  }

  .menu .menu-tabs .nav-link {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .menu .menu-tabs .nav-link h5 {
    font-size: 0.9rem;
  }

  .menu .menu-tabs .nav-link small {
    display: none;
  }

  .menu-item .card-body {
    padding: 15px;
  }
}

/* =====================
   Cart Page
   ===================== */
.cart-wrap {
  background: #16213e;
  min-height: 100vh;
  padding: 50px 0 60px;
}

.cart-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.cart-breadcrumb a:hover { color: #e94560; }
.cart-breadcrumb i { font-size: 10px; }

.cart-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.cart-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

.cart-card {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cart-card:hover {
  border-color: rgba(233,69,96,0.4);
  box-shadow: 0 8px 40px rgba(233,69,96,0.12);
}

.cart-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.cart-img-wrap {
  position: relative;
  flex-shrink: 0;
}
.cart-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.1);
}
.cart-img-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e94560;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-unit {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.cart-item-unit span { color: rgba(255,255,255,0.7); font-weight: 600; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  overflow: hidden;
}
.qty-stepper button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper button:hover { background: rgba(233,69,96,0.3); }
.qty-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-stepper .qty-num {
  min-width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border: none;
  background: transparent;
  pointer-events: none;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.cart-item-total {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.cart-item-total small {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  display: block;
  text-align: right;
}
.btn-remove {
  background: rgba(233,69,96,0.1);
  border: 1px solid rgba(233,69,96,0.3);
  color: #e94560;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-remove:hover {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

.summary-card {
  background: #1a2744;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  overflow: hidden;
}
.summary-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.summary-head h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.summary-body { padding: 20px 24px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.summary-row .val { color: #fff; font-weight: 600; }
.summary-row .free { color: #4ade80; font-weight: 700; }
.summary-divider {
  border: none;
  border-top: 1px dashed rgba(255,255,255,0.1);
  margin: 18px 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.summary-total .label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.summary-total .amount {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.summary-saving {
  font-size: 12px;
  color: #4ade80;
  text-align: right;
  margin-bottom: 22px;
}
.btn-place-order {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e94560, #c0392b);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(233,69,96,0.4);
}
.btn-place-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(233,69,96,0.55);
  color: #fff;
}
.btn-continue-shop {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  transition: all 0.2s;
}
.btn-continue-shop:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.secure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.secure-row i { color: #4ade80; }

.empty-wrap {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon-wrap {
  width: 120px;
  height: 120px;
  background: rgba(233,69,96,0.1);
  border: 2px dashed rgba(233,69,96,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.empty-icon-wrap i { font-size: 48px; color: #e94560; }
.empty-wrap h3 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.empty-wrap p { color: rgba(255,255,255,0.5); font-size: 15px; margin-bottom: 30px; }
.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: #fff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(233,69,96,0.4);
  transition: all 0.3s;
}
.btn-browse:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 32px rgba(233,69,96,0.55); }

.cart-toast-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}
.cart-toast.success { background: #1a3a2a; border: 1px solid rgba(74,222,128,0.4); }
.cart-toast.error   { background: #3a1a22; border: 1px solid rgba(233,69,96,0.4); }
.cart-toast i { font-size: 18px; }
.cart-toast.success i { color: #4ade80; }
.cart-toast.error   i { color: #e94560; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
  .cart-card-inner { flex-wrap: wrap; gap: 14px; }
  .cart-item-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cart-img { width: 70px; height: 70px; }
}


/* =====================
   Checkout Page
   ===================== */
.checkout-wrap {
  background: #16213e;
  min-height: 100vh;
  padding: 50px 0 60px;
}

.co-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.co-alert-error {
  background: #3a1a22;
  border: 1px solid rgba(233,69,96,0.4);
  color: #e94560;
}

.co-card {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
}

.co-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.co-card-head i {
  font-size: 18px;
  color: #e94560;
}
.co-badge {
  margin-left: auto;
  background: rgba(233,69,96,0.15);
  border: 1px solid rgba(233,69,96,0.3);
  color: #e94560;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
}

.co-items {
  padding: 8px 0;
}
.co-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}
.co-item:last-child { border-bottom: none; }
.co-item:hover { background: rgba(255,255,255,0.02); }

.co-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.co-item-info { flex: 1; min-width: 0; }
.co-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.co-item-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.co-item-total {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.co-form-body {
  padding: 24px;
}
.co-field { margin-bottom: 20px; }
.co-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.co-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  resize: none;
  transition: border-color 0.2s;
  outline: none;
}
.co-field textarea::placeholder { color: rgba(255,255,255,0.25); }
.co-field textarea:focus { border-color: #e94560; }

.co-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.co-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.co-btn-back:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.co-btn-place {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #e94560, #c0392b);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(233,69,96,0.35);
}
.co-btn-place:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(233,69,96,0.5);
}

.co-summary-name {
  font-size: 13px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.co-summary-name em {
  font-style: normal;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin-left: 4px;
}

.co-trust {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px 20px;
}
.co-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.co-trust-item i {
  font-size: 22px;
  color: #e94560;
}

@media (max-width: 576px) {
  .co-form-actions { flex-direction: column; }
  .co-btn-back { justify-content: center; }
}

/* Checkout input fields */
.co-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.co-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.co-input-wrap > i {
  position: absolute;
  left: 14px;
  color: rgba(255,255,255,0.3);
  font-size: 15px;
  pointer-events: none;
}
.co-input-wrap input,
.co-input-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 13px 14px 13px 40px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.co-input-wrap textarea {
  resize: none;
  padding-top: 13px;
  align-self: flex-start;
  padding-left: 40px;
}
.co-textarea-wrap { align-items: flex-start; }
.co-textarea-wrap > i { top: 14px; }
.co-input-wrap input::placeholder,
.co-input-wrap textarea::placeholder { color: rgba(255,255,255,0.25); }
.co-input-wrap input:focus,
.co-input-wrap textarea:focus { border-color: #e94560; }

@media (max-width: 576px) {
  .co-field-row { grid-template-columns: 1fr; }
}

/* =====================
   My Orders Page
   ===================== */
.orders-wrap {
  background: #16213e;
  min-height: 100vh;
  padding: 50px 0 60px;
}

.co-alert-success {
  background: #1a3a2a;
  border: 1px solid rgba(74,222,128,0.4);
  color: #4ade80;
}

.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.order-card:hover { border-color: rgba(233,69,96,0.35); }

/* Head */
.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  gap: 16px;
  flex-wrap: wrap;
}
.order-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.order-icon {
  width: 44px;
  height: 44px;
  background: rgba(233,69,96,0.12);
  border: 1px solid rgba(233,69,96,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.order-icon i { font-size: 20px; color: #e94560; }
.order-id {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.order-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.order-meta i { font-size: 11px; }

.order-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.order-amount {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.order-chevron {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s;
}
.order-chevron.rotated { transform: rotate(180deg); }

/* Status badges */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}
.status-pending  { background: rgba(251,191,36,0.12);  border: 1px solid rgba(251,191,36,0.35);  color: #fbbf24; }
.status-accepted { background: rgba(59,130,246,0.12);  border: 1px solid rgba(59,130,246,0.35);  color: #60a5fa; }
.status-delivered{ background: rgba(74,222,128,0.12);  border: 1px solid rgba(74,222,128,0.35);  color: #4ade80; }
.status-cancelled{ background: rgba(233,69,96,0.12);   border: 1px solid rgba(233,69,96,0.35);   color: #e94560; }

/* Body */
.order-card-body {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
}
.order-card-body.open { display: block; }

/* Progress */
.order-progress {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.progress-step.done .progress-dot {
  background: rgba(74,222,128,0.15);
  border-color: #4ade80;
  color: #4ade80;
}
.progress-step span {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  white-space: nowrap;
}
.progress-step.done span { color: #4ade80; }
.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.3s;
}
.progress-line.done { background: #4ade80; }
.progress-step.cancelled .progress-dot {
  background: rgba(233,69,96,0.15);
  border-color: #e94560;
  color: #e94560;
}
.progress-step.cancelled span { color: #e94560; }
.progress-line.cancelled { background: #e94560; }

/* Items table */
.order-items-head {
  display: grid;
  grid-template-columns: 1fr 60px 90px 90px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}
.order-item-row {
  display: grid;
  grid-template-columns: 1fr 60px 90px 90px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
  transition: background 0.2s;
}
.order-item-row:hover { background: rgba(255,255,255,0.02); }
.order-item-row:last-of-type { border-bottom: none; }
.order-item-name { color: #fff; font-weight: 500; }
.order-item-qty  { text-align: center; }
.order-item-price, .order-item-total { text-align: right; }
.order-item-total { font-weight: 700; color: #fff; }

/* Footer */
.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
.order-address {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 60%;
}
.order-address i { color: #e94560; flex-shrink: 0; margin-top: 2px; }
.order-grand-total {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: right;
}
.order-grand-total strong { color: #fff; font-size: 18px; }

@media (max-width: 576px) {
  .order-card-head { padding: 14px 16px; }
  .order-card-body { padding: 16px; }
  .order-items-head, .order-item-row { grid-template-columns: 1fr 40px 70px 70px; font-size: 12px; }
  .order-head-right { gap: 10px; }
  .order-amount { font-size: 15px; }
  .order-address { max-width: 100%; }
  .order-progress { overflow-x: auto; padding-bottom: 4px; }
}

/* =====================
   Custom Confirm Modal
   ===================== */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cp-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cp-modal {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
}
.cp-modal-overlay.active .cp-modal {
  transform: translateY(0) scale(1);
}
.cp-modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(233,69,96,0.12);
  border: 2px solid rgba(233,69,96,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.cp-modal-icon i { font-size: 26px; color: #e94560; }
.cp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.cp-modal-msg {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  line-height: 1.6;
}
.cp-modal-msg strong { color: #fff; }
.cp-modal-actions {
  display: flex;
  gap: 12px;
}
.cp-btn-cancel {
  flex: 1;
  padding: 13px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cp-btn-cancel:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.cp-btn-confirm {
  flex: 1;
  padding: 13px;
  background: linear-gradient(135deg, #e94560, #c0392b);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(233,69,96,0.35);
}
.cp-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(233,69,96,0.5);
  color: #fff;
}

/* =====================
   My Profile Page
   ===================== */
.profile-wrap {
  background: #16213e;
  min-height: 100vh;
  padding: 50px 0 60px;
}

/* Avatar Card */
.profile-avatar-card {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px 24px 24px;
  text-align: center;
  margin-bottom: 16px;
}
.profile-avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e94560, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(233,69,96,0.4);
}
.profile-avatar-inner {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #1e2d4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #e94560;
}
.profile-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.profile-mobile {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.profile-since {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Stats */
.profile-stats {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 16px;
}
.profile-stat-item { text-align: center; flex: 1; }
.profile-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(233,69,96,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 18px;
  color: #e94560;
}
.profile-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.profile-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.profile-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.08);
}

/* Quick Links */
.profile-links {
  background: #1e2d4a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
}
.profile-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s, color 0.2s;
}
.profile-link-item:last-child { border-bottom: none; }
.profile-link-item i:first-child { font-size: 17px; color: #e94560; }
.profile-link-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.profile-link-danger { color: rgba(233,69,96,0.8); }
.profile-link-danger i:first-child { color: #e94560; }
.profile-link-danger:hover { background: rgba(233,69,96,0.08); color: #e94560; }

/* Password toggle button */
.pwd-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  transition: color 0.2s;
}
.pwd-toggle:hover { color: rgba(255,255,255,0.7); }
.co-input-wrap input[type="password"],
.co-input-wrap input[type="text"] { padding-right: 40px; }

.pwd-error {
  font-size: 13px;
  color: #e94560;
  background: rgba(233,69,96,0.08);
  border: 1px solid rgba(233,69,96,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
