/* ============================================================
   HORECA HERO — Main Stylesheet
   Colors: Red #D32F2F · Yellow #FFC107 · Light Grey #F5F5F5
   ============================================================ */

:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #FFCDD2;
  --yellow: #FFC107;
  --yellow-dark: #F9A825;
  --grey-light: #F5F5F5;
  --grey: #E0E0E0;
  --grey-dark: #757575;
  --text: #212121;
  --text-light: #616161;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(211,47,47,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.22s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--grey-light);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--grey-light); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── TOP BAR ── */
.topbar {
  background: var(--red-dark);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ── HEADER ── */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.logo-text { line-height: 1.15; }
.logo-text .brand { font-size: 20px; font-weight: 800; color: var(--red); letter-spacing: -0.5px; }
.logo-text .tagline { font-size: 11px; color: var(--grey-dark); }

nav { flex: 1; }
nav ul { display: flex; gap: 4px; }
nav ul li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
nav ul li a:hover, nav ul li a.active {
  background: var(--red-light);
  color: var(--red);
}

.search-bar {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--grey);
  border-radius: 30px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: var(--grey-light);
}
.search-bar input:focus {
  border-color: var(--red);
  background: var(--white);
}
.search-bar .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-dark);
  font-size: 16px;
  pointer-events: none;
}
#search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
#search-results.show { display: block; }
.search-result-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--grey);
  transition: var(--transition);
}
.search-result-item:hover { background: var(--grey-light); }
.search-result-item:last-child { border-bottom: none; }
.search-result-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--grey-light);
  flex-shrink: 0;
}
.search-result-info .name { font-weight: 600; font-size: 13px; }
.search-result-info .cat { font-size: 11px; color: var(--grey-dark); }
.search-result-info .price { font-size: 13px; color: var(--red); font-weight: 700; }

.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-cart {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-cart:hover { background: var(--red-dark); transform: translateY(-1px); }
.cart-count {
  background: var(--yellow);
  color: var(--text);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}

.btn-menu {
  display: none;
  background: none;
  border: 2px solid var(--grey);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 20px;
  color: var(--text);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--grey);
  padding: 16px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav ul li a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
}
.mobile-nav ul li a:hover { background: var(--red-light); color: var(--red); }

/* ── HERO BANNER ── */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, #E53935 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--yellow);
  color: var(--text);
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,193,7,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .num { font-size: 28px; font-weight: 900; color: var(--yellow); }
.stat .lbl { font-size: 12px; opacity: 0.8; }

/* ── SECTION ── */
.section { max-width: 1300px; margin: 0 auto; padding: 48px 20px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 2px;
  margin-left: 4px;
}
.view-all {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border: 2px solid var(--red);
  border-radius: 30px;
  transition: var(--transition);
}
.view-all:hover { background: var(--red); color: var(--white); }

/* ── CATEGORY GRID ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.category-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.category-card .icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}
.category-card .name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.category-card .count {
  font-size: 11px;
  color: var(--grey-dark);
  margin-top: 4px;
}

/* ── PRODUCT GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red-light);
}
.product-img-wrap {
  position: relative;
  padding-top: 70%;
  background: var(--grey-light);
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa, var(--grey-light));
  color: var(--grey-dark);
  gap: 4px;
}
.product-placeholder .emoji { font-size: 30px; }
.product-placeholder .sku-label { font-size: 9px; color: var(--grey-dark); }

.product-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--yellow);
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-info {
  padding: 10px 11px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* category label only (not SKU) */
.product-cat-label { font-size: 10px; color: var(--red); font-weight: 600; }
/* hide SKU on cards everywhere */
.product-sku { display: none; }

.size-selector { display: flex; gap: 4px; flex-wrap: wrap; }
.size-btn {
  padding: 3px 8px;
  border: 1.5px solid var(--grey);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.size-btn:hover, .size-btn.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.price {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price .currency { font-size: 11px; }

.qty-add {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--grey);
  border-radius: 6px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-display { font-size: 12px; font-weight: 700; min-width: 16px; text-align: center; }
.btn-add-cart {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-add-cart:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-add-cart.added { background: #2E7D32; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--red) 0%, #E53935 100%);
  color: var(--white);
  padding: 40px 20px;
}
.page-header-inner { max-width: 1300px; margin: 0 auto; }
.breadcrumb { font-size: 13px; opacity: 0.8; margin-bottom: 12px; }
.breadcrumb a { color: var(--white); opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { margin: 0 8px; }
.page-header h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.page-header p { opacity: 0.85; font-size: 15px; margin-top: 6px; }

/* ── FILTERS BAR ── */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey);
  padding: 10px 20px;
  position: sticky;
  top: 0;          /* stick to very top of viewport */
  z-index: 500;    /* above page content, below header */
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.filters-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label { font-size: 12px; font-weight: 700; color: var(--grey-dark); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-btn {
  padding: 5px 12px;
  border: 2px solid var(--grey);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--red); background: var(--red); color: var(--white); }
.results-count { margin-left: auto; font-size: 12px; color: var(--grey-dark); white-space: nowrap; }

/* Scrollable category chips on mobile */
@media (max-width: 768px) {
  .filters-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .filters-inner::-webkit-scrollbar { height: 3px; }
  .filter-label { flex-shrink: 0; }
  .results-count { flex-shrink: 0; }
  #category-filters { flex-wrap: nowrap; }
}

/* ── CART DRAWER ── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}
.cart-overlay.open { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cart-close {
  background: var(--grey-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-close:hover { background: var(--red-light); color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-dark);
}
.cart-empty .icon { font-size: 60px; margin-bottom: 16px; }
.cart-empty p { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cart-empty small { font-size: 13px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey);
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--grey-light);
  flex-shrink: 0;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-size { font-size: 11px; color: var(--grey-dark); margin-bottom: 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--red); }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item-qty .qty-btn { width: 26px; height: 26px; font-size: 14px; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--grey-dark);
  font-size: 18px;
  padding: 4px;
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--red); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--grey);
  background: var(--grey-light);
}
.cart-summary { margin-bottom: 16px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
.cart-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding-top: 10px;
  border-top: 2px solid var(--grey);
  margin-top: 8px;
}
.cart-row.total .amount { color: var(--red); }
.btn-checkout {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-checkout:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-continue-shopping {
  width: 100%;
  background: none;
  border: 2px solid var(--grey);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: var(--transition);
}
.btn-continue-shopping:hover { border-color: var(--red); color: var(--red); }

/* ── CHECKOUT PAGE ── */
.checkout-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-light); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--red); }

.order-summary-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.order-summary-box h3 {
  background: var(--red);
  color: var(--white);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
}
.order-items { padding: 16px 20px; max-height: 320px; overflow-y: auto; }
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey);
  gap: 12px;
}
.order-item:last-child { border-bottom: none; }
.order-item-info .name { font-size: 13px; font-weight: 600; }
.order-item-info .size { font-size: 11px; color: var(--grey-dark); }
.order-item-info .qty { font-size: 12px; color: var(--grey-dark); }
.order-item-price { font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; }
.order-totals {
  padding: 16px 20px;
  background: var(--grey-light);
  border-top: 2px solid var(--grey);
}
.order-total-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.order-total-row.grand { font-size: 17px; font-weight: 800; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--grey); }
.order-total-row.grand .amount { color: var(--red); }

/* ── CONFIRMATION PAGE ── */
.confirm-wrap {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 20px;
}
.confirm-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
}
.confirm-icon {
  width: 80px;
  height: 80px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
}
.confirm-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: #2E7D32; }
.confirm-card .order-id { font-size: 22px; font-weight: 900; color: var(--red); margin: 12px 0; }
.confirm-card p { color: var(--text-light); font-size: 15px; margin-bottom: 8px; }
.confirm-details {
  background: var(--grey-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}
.confirm-details h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.confirm-detail-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.confirm-detail-row span:last-child { font-weight: 600; }

/* ── UPSELL / CROSS-SELL ── */
.upsell-section {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
  border-top: 2px solid var(--yellow);
  padding: 32px 20px;
}
.upsell-inner { max-width: 1300px; margin: 0 auto; }
.upsell-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.upsell-title span { color: var(--red); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #212121;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #2E7D32; }
.toast.error { background: var(--red); }

/* ── FOOTER ── */
footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 56px 20px 24px;
  margin-top: 48px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .brand-name { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-contact { font-size: 13px; line-height: 2; }
.footer-contact div { margin-bottom: 2px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.7px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 12px; transition: var(--transition); color: rgba(255,255,255,0.65); }
.footer-col ul li a:hover { color: var(--yellow); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; }

/* Social icons */
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.social-icon:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

/* Payment badges */
.payment-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ── ADMIN DASHBOARD ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: #1e1e2e;
  color: rgba(255,255,255,0.85);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  flex-shrink: 0;
}
.admin-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-logo .brand { font-size: 18px; font-weight: 800; color: var(--white); }
.admin-logo .sub { font-size: 11px; color: var(--yellow); }
.admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
  transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(211,47,47,0.25);
  color: var(--white);
}
.admin-nav a .badge {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px;
  background: #f0f2f5;
  min-height: 100vh;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-topbar h1 { font-size: 24px; font-weight: 800; }
.admin-topbar p { font-size: 13px; color: var(--grey-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-icon.red { background: #FFEBEE; }
.stat-icon.yellow { background: #FFFDE7; }
.stat-icon.green { background: #E8F5E9; }
.stat-icon.blue { background: #E3F2FD; }
.stat-info .value { font-size: 26px; font-weight: 900; }
.stat-info .label { font-size: 12px; color: var(--grey-dark); margin-top: 2px; }
.stat-info .change { font-size: 12px; color: #2E7D32; font-weight: 600; margin-top: 4px; }

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-header h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--grey-light);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--grey); font-size: 13px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--grey-light); }
.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-badge.new { background: #E3F2FD; color: #1565C0; }
.status-badge.confirmed { background: #E8F5E9; color: #2E7D32; }
.status-badge.processing { background: #FFFDE7; color: #F57F17; }
.status-badge.delivered { background: #F3E5F5; color: #6A1B9A; }
.status-badge.cancelled { background: #FFEBEE; color: var(--red-dark); }

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px;
}
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--grey-light);
  border-radius: var(--radius-sm);
  border: 2px solid var(--grey);
}
.toggle-info .name { font-size: 14px; font-weight: 600; }
.toggle-info .desc { font-size: 12px; color: var(--grey-dark); }
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--grey);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--red); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .footer-grid-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .btn-menu { display: flex; }
  .search-bar { max-width: none; flex: 1; }
  .hero { padding: 40px 20px; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .footer-grid-main { grid-template-columns: 1fr; gap: 28px; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
}
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .logo-text .tagline { display: none; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 20px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
}
