/* SNK Event Supply & Decor — Global Styles */

:root {
  --gold: #c8a951;
  --gold-light: #e2c87a;
  --gold-dark: #9a7e2f;
  --gold-pale: #f5edda;
  --navy: #111111;
  --navy-mid: #1c1c1c;
  --navy-light: #2e2e2e;
  --white: #ffffff;
  --off-white: #fafaf8;
  --cream: #f5f2ec;
  --gray: #888888;
  --light-gray: #f2f2f0;
  --border: #e8e6e0;
  --red: #d94040;
  --green: #2a9d5c;
  --orange: #e07820;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ── NAVBAR ── */
.navbar {
  background: #111111;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #222222;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.navbar-logo .logo-icon {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900; color: #111111;
  letter-spacing: 0.02em;
}
.navbar-logo .logo-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.navbar-logo .logo-sub {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Uploaded logo image — sits to the left of the company name text */
#navLogoImg {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
  display: none;
  border-radius: 4px;
  flex-shrink: 0;
}
/* Divider shown between logo image and company name text */
#navLogoImg + #navLogoText {
  padding-left: 0.75rem;
  margin-left: 0.75rem;
  border-left: 1.5px solid rgba(255,255,255,0.18);
}
@media (max-width: 768px) {
  #navLogoImg { height: 30px; max-width: 110px; }
  #navLogoImg + #navLogoText { padding-left: 0.5rem; margin-left: 0.5rem; }
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.navbar-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  position: relative;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.cart-btn:hover { background: var(--gold-light); }
.cart-count {
  background: var(--red);
  color: white;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.cart-count.hidden { display: none; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  background: #111111;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=1600&q=60') center/cover;
  opacity: 0.08;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(200,169,81,0.12);
  border: 1px solid rgba(200,169,81,0.4);
  color: var(--gold-light);
  padding: 0.35rem 1.1rem;
  border-radius: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--gold);
  color: #111111;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(200,169,81,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-green { background: var(--green); color: white; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ── SECTION ── */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: #777; max-width: 540px; margin: 0 auto; }
.gold-line {
  width: 40px; height: 2px;
  background: var(--gold);
  margin: 0.75rem auto;
  border-radius: 0;
}

/* ── CATEGORY CARDS ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: white;
  border-radius: 4px;
  padding: 1.75rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  border: 1.5px solid var(--border);
  transition: all 0.22s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,81,0.15);
}
.cat-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.cat-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.25rem; }
.cat-card span { font-size: 0.78rem; color: #888; }

/* ── PRODUCT CARDS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e2e8f0;
}
.product-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f2ec, #ede8df);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  border-bottom: 1.5px solid var(--border);
}
.product-body { padding: 1rem; flex: 1; }
.product-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.product-body h3 { font-size: 0.98rem; margin-bottom: 0.3rem; line-height: 1.4; }
.product-body p { font-size: 0.8rem; color: #64748b; margin-bottom: 0; line-height: 1.55; }
.product-footer {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-top: 1.5px solid var(--border);
  background: #fafafa;
}
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.product-price span { font-size: 0.72rem; color: #94a3b8; font-weight: 400; }

.add-cart-btn {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
  width: 100%;
}
.add-cart-btn:hover:not(:disabled) { background: var(--gold); color: #111111; }
.add-cart-btn.added { background: #16a34a; color: white; }
.add-cart-btn:disabled { opacity: 0.9; cursor: not-allowed; }

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--gold);
  color: #111111;
  border-radius: 0;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.82rem; color: #777; }

/* ── FILTERS ── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  background: white;
  color: #555;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}
.filter-btn:hover { border-color: var(--gold); color: #111; }
.filter-btn.active {
  background: #111111;
  border-color: #111111;
  color: white;
}

/* ── CART TABLE ── */
.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) { .cart-wrapper { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #111111;
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cart-table th:first-child { border-radius: 8px 0 0 0; }
.cart-table th:last-child { border-radius: 0 8px 0 0; }
.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.cart-table tr:hover td { background: #fafafa; }

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qty-ctrl button {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-ctrl button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.qty-ctrl span { min-width: 28px; text-align: center; font-weight: 600; }

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.remove-btn:hover { background: #fef2f2; }

/* ── ORDER SUMMARY BOX ── */
.order-summary-box {
  background: white;
  border-radius: 4px;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
  position: sticky;
  top: 88px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.summary-row.total {
  border-top: 2px solid var(--gold);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.summary-row.deposit { color: var(--gold-dark); font-weight: 600; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.92rem;
  outline: none;
  transition: border 0.2s;
  background: white;
  color: var(--navy);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,81,0.1); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── CARD / BOX ── */
.card {
  background: white;
  border-radius: 4px;
  padding: 1.75rem;
  border: 1.5px solid var(--border);
}

/* ── ORDER CONFIRMATION ── */
.confirm-wrapper {
  max-width: 620px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.confirm-icon {
  width: 80px; height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}
.order-num-badge {
  background: var(--navy);
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 900;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  letter-spacing: 0.08em;
  display: inline-block;
  margin: 0.75rem 0 1.5rem;
}
.qr-container {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 2px solid var(--gold);
}
.bank-details {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}
.bank-details h4 { color: var(--gold); margin-bottom: 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.bank-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.bank-row:last-child { border: none; }
.bank-row strong { color: var(--gold-light); }

/* ── ADMIN ── */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar {
  background: #111111;
  padding: 1.5rem 1rem;
  color: white;
}
.admin-sidebar h3 { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}
.admin-nav li a:hover, .admin-nav li a.active { background: rgba(201,168,76,0.15); color: var(--gold); }

.admin-main { padding: 2rem; background: var(--off-white); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 900; color: var(--navy); }
.stat-card .stat-label { font-size: 0.78rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; }

.orders-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.orders-table th {
  padding: 0.75rem 1rem;
  background: #111111;
  color: white;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.orders-table td { padding: 0.9rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: #fafafa; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1d4ed8; }
.status-deposit_paid { background: #d1fae5; color: #065f46; }
.status-ready { background: #e0e7ff; color: #3730a3; }
.status-collected { background: #f0fdf4; color: #166534; }
.status-returned { background: #f1f5f9; color: #475569; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-banned { background: #1e1b4b; color: #c7d2fe; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex; align-items: center; gap: 0.5rem;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.info { border-left: 4px solid var(--gold); }

/* ── FOOTER ── */
.footer {
  background: #111111;
  color: #888;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer p { font-size: 0.85rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.4rem; }
.footer ul li a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.4rem;
  cursor: pointer; color: #94a3b8;
}

/* ── WHATSAPP BTN ── */
.whatsapp-btn {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}
.whatsapp-btn:hover { background: #1da851; }

/* ══════════════════════════════════════
   RESPONSIVE — Mobile-First Breakpoints
   ══════════════════════════════════════ */

/* ── Tablet & Mobile (≤ 768px) ── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar { padding: 0 1rem; height: 60px; }
  .navbar-links { display: none; }
  .hamburger { display: block; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #1a1a1a;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .navbar-links.open li a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  .navbar-logo .logo-text { font-size: 0.95rem; }
  .navbar-logo .logo-sub  { display: none; }
  .cart-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

  /* Hero */
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero p { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Sections */
  .section { padding: 2.5rem 1rem; }
  .section-header { margin-bottom: 1.75rem; }

  /* Page header */
  .page-header { padding: 1.75rem 1rem; }
  .page-header h1 { font-size: 1.5rem; }

  /* Category grid */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat-card { padding: 1.25rem 0.75rem; }

  /* Product grid — 2 columns on tablet, 1 on tiny phones */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-img, .product-img-placeholder { height: 150px; }
  .product-body { padding: 0.7rem; }
  .product-body h3 { font-size: 0.88rem; }
  .product-body p  { font-size: 0.75rem; }
  .product-footer  { padding: 0.6rem 0.7rem; flex-wrap: wrap; gap: 0.4rem; }
  .add-cart-btn    { font-size: 0.75rem; padding: 0.4rem 0.7rem; width: 100%; justify-content: center; }

  /* Filter bar — scrollable row */
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; }

  /* Cart page */
  .cart-wrapper { grid-template-columns: 1fr; gap: 1.25rem; }
  .order-summary-box { position: static; }

  /* Cart table — card layout on mobile */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: white;
  }
  .cart-table td {
    padding: 0.3rem 0;
    border: none;
    font-size: 0.85rem;
  }
  .cart-table td:before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.15rem;
  }
  .cart-table td[data-label=""]:before { display: none; }
  .cart-table td:last-child { text-align: right; border-top: 1px solid #f1f5f9; margin-top: 0.4rem; padding-top: 0.5rem; }

  /* Forms */
  .card { padding: 1.1rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Order confirmation */
  .confirm-wrapper { padding: 0 1rem; margin: 1.5rem auto; }
  .order-num-badge { font-size: 1.2rem; padding: 0.6rem 1.2rem; word-break: break-all; max-width: 100%; }
  .bank-details { padding: 1rem; }
  .bank-row { font-size: 0.82rem; flex-wrap: wrap; gap: 0.25rem; }

  /* Admin — stack layout */
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 1rem; }
  .admin-header { flex-wrap: wrap; gap: 0.5rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .admin-tab-btn { padding: 0.5rem 0.75rem; font-size: 0.78rem; }

  /* Admin orders table — horizontal scroll */
  .orders-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .orders-table { min-width: 640px; }

  /* Modals — full screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
  }

  /* Account tabs — scrollable */
  .tab-bar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; font-size: 0.82rem; padding: 0.6rem 0.9rem; }

  /* Toast — full width bottom */
  .toast { left: 1rem; right: 1rem; bottom: 1rem; border-radius: 10px; font-size: 0.85rem; }

  /* WhatsApp btn */
  .whatsapp-btn { width: 100%; justify-content: center; font-size: 0.9rem; }

  /* Buttons */
  .btn { font-size: 0.88rem; padding: 0.65rem 1.2rem; }
  .btn-sm { font-size: 0.78rem; padding: 0.4rem 0.75rem; }

  /* Steps */
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer { padding: 2rem 1rem 1rem; }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  /* Single column products */
  .product-grid { grid-template-columns: 1fr; }
  .product-img, .product-img-placeholder { height: 200px; }

  /* Category grid — 2 columns still ok */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Steps single column */
  .steps-grid { grid-template-columns: 1fr; }

  /* Stats single column */
  .stats-row { grid-template-columns: 1fr; }

  /* Navbar right — hide user area text, show icon only */
  #navUserArea span:not([style*="background"]) { display: none; }

  /* Bigger tap targets for qty controls */
  .qty-ctrl button { width: 36px; height: 36px; font-size: 1.1rem; }

  /* Order number smaller */
  .order-num-badge { font-size: 1rem; padding: 0.5rem 1rem; }

  /* Product detail page stacked */
  .pd-wrap { padding: 0.75rem 0.75rem 2rem; }
  .pd-name { font-size: 1.3rem; }
  .pd-price { font-size: 1.6rem; }
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { margin-bottom: 0.5rem; color: #475569; }
.empty-state p { color: #94a3b8; font-size: 0.9rem; }

/* ── SPINNER ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MISC ── */
.text-gold { color: var(--gold); }
.text-gray { color: #64748b; }
.divider { border: none; border-top: 1px solid #e2e8f0; margin: 1.5rem 0; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-hot { background: #fee2e2; color: #b91c1c; }

.page-header {
  background: #111111;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #222;
}
.page-header h1 { color: white; }
.page-header p { color: #888; margin-top: 0.5rem; font-size: 0.92rem; }

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  padding: 1.5rem;
}
.login-box {
  background: white;
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1.5px solid var(--border);
}
 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MISC ── */
.text-gold { color: var(--gold); }
.text-gray { color: #64748b; }
.divider { border: none; border-top: 1px solid #e2e8f0; margin: 1.5rem 0; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-hot { background: #fee2e2; color: #b91c1c; }

.page-header {
  background: #111111;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #222;
}
.page-header h1 { color: white; }
.page-header p { color: #888; margin-top: 0.5rem; font-size: 0.92rem; }

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  padding: 1.5rem;
}
.login-box {
  background: white;
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1.5px solid var(--border);
}
