/* ============================================================
   ARCHISAS KITCHEN — Solid Red & White Design System
   Fonts: Playfair Display + Plus Jakarta Sans
   Features: Dark mode, animations, 100% responsive
   NO GRADIENTS — solid colors only
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS — LIGHT MODE
============================================================ */
:root {
  --red:         #D62B1F;
  --red-dark:    #B02218;
  --red-light:   #E8392C;
  --red-pale:    #FFF0EE;
  --red-border:  #FACCC8;

  --bg:          #FAFAFA;
  --bg-alt:      #F4F2F2;
  --surface:     #FFFFFF;
  --border:      #EBEBEB;
  --border-md:   #DCDCDC;

  --text:        #1A1212;
  --text-2:      #3D3030;
  --text-muted:  #8C7E7E;

  --success:     #1A7F3C;
  --warning:     #A35A00;
  --danger:      #CC2222;
  --info:        #1A4FBB;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.09);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.11);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);

  --nav-h:     66px;
  --sidebar-w: 250px;
  --ease:      cubic-bezier(0.4,0,0.2,1);
  --spring:    cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================================
   DARK MODE TOKENS
============================================================ */
[data-theme="dark"] {
  --bg:        #100C0C;
  --bg-alt:    #1C1414;
  --surface:   #221818;
  --border:    #2E2020;
  --border-md: #3A2828;

  --text:      #F5EDEA;
  --text-2:    #D4B8B5;
  --text-muted:#8A6C6C;

  --red-pale:  #2A1210;
  --red-border:#5A1F1A;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.45);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.55);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.65);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up  { animation: fadeUp  0.5s var(--ease) both; }
.anim-fade-in  { animation: fadeIn  0.4s var(--ease) both; }
.anim-scale-in { animation: scaleIn 0.4s var(--spring) both; }

.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }
.delay-5 { animation-delay: 0.30s; }
.delay-6 { animation-delay: 0.36s; }

/* ============================================================
   DARK MODE TOGGLE
============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 3px;
}
.theme-track {
  width: 42px; height: 23px;
  background: var(--border-md);
  border-radius: var(--r-full);
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
[data-theme="dark"] .theme-track { background: var(--red); }
.theme-thumb {
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.3s var(--spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
}
[data-theme="dark"] .theme-thumb { transform: translateX(19px); }

/* ============================================================
   NAVIGATION
============================================================ */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 500;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  transition: background 0.35s, border-color 0.35s;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.nav-brand-icon {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--spring);
}
.nav-brand:hover .nav-brand-icon { transform: rotate(-8deg) scale(1.08); }
.nav-brand .brand-red { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-md);
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--red); background: var(--red-pale); }

.btn-nav {
  background: var(--red);
  color: #fff;
  padding: 0.42rem 1.1rem;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.btn-nav:hover { background: var(--red-dark); transform: translateY(-1px); }

.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff;
  font-size: 0.55rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  animation: pulse 2.5s infinite;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow-md);
  z-index: 490;
  animation: slideDown 0.25s var(--ease);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.72rem 1rem;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: all 0.2s;
}
.nav-mobile a:hover { background: var(--red-pale); color: var(--red); }
.nav-mobile-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem 0.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1.3;
  user-select: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--red); color: #fff; border-color: var(--red);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(214,43,31,0.35);
}

.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover:not(:disabled) { opacity: 0.82; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border-md);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--red); color: var(--red); background: var(--red-pale);
}

.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-alt); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #aa1b1b; transform: translateY(-1px); }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }

.btn-sm  { padding: 0.38rem 0.95rem; font-size: 0.75rem; }
.btn-lg  { padding: 0.75rem 2rem;   font-size: 0.9rem; }
.btn-xs  { padding: 0.25rem 0.65rem; font-size: 0.7rem; }
.w-full  { width: 100%; }

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }
.section   { padding: 3.5rem 0; }
.page-main { flex: 1; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--red); border-radius: 2px; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.section-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.5rem; }

/* ============================================================
   HERO — solid dark background, NO gradients
============================================================ */
.hero {
  background: #1A0E0E;
  padding: 5rem 1.75rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Dot pattern — solid color dots, no gradient */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: none;
  background-color: transparent;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(214,43,31,0.15);
  border: 1px solid rgba(214,43,31,0.35);
  color: #FFAA99;
  padding: 0.38rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.77rem; font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: #FF6B5B; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.55); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn-hero-ghost {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.65rem 1.6rem;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }

/* Features strip — solid red */
.features-strip {
  background: var(--red);
  padding: 0.9rem 1.75rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.feature-item {
  display: flex; align-items: center; gap: 0.45rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem; font-weight: 500;
}

/* ============================================================
   CATEGORY TABS
============================================================ */
.cat-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.44rem 1rem;
  border: 1.5px solid var(--border-md);
  background: var(--surface);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  border-radius: var(--r-full);
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.tab-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-pale); }
.tab-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ============================================================
   MENU CARDS
============================================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.35rem;
}
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.28s;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-border);
}
.menu-card-img-wrap { position: relative; overflow: hidden; flex-shrink: 0; }
.menu-card-img {
  width: 100%; height: 190px; object-fit: cover;
  background: var(--border);
  transition: transform 0.5s var(--ease);
}
.menu-card:hover .menu-card-img { transform: scale(1.06); }
.menu-card-cat {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: var(--red); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem; border-radius: var(--r-full);
}
.menu-card-body { padding: 1.15rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.menu-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 0.35rem;
}
.menu-card-desc {
  font-size: 0.81rem; color: var(--text-muted);
  line-height: 1.55; margin-bottom: 1rem; flex: 1;
}
.menu-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.menu-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem; font-weight: 700; color: var(--red);
}

/* ============================================================
   FORMS
============================================================ */
.form-box {
  max-width: 460px; margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  animation: scaleIn 0.4s var(--spring);
}
.form-icon {
  width: 46px; height: 46px;
  background: var(--red);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.35rem;
}
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 700;
  margin-bottom: 0.25rem; letter-spacing: -0.01em;
}
.form-sub { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 0.38rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.68rem 0.95rem;
  border: 1.5px solid var(--border-md);
  background: var(--bg-alt);
  font-size: 0.9rem; color: var(--text);
  border-radius: var(--r-md); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(214,43,31,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[type="checkbox"] { width: auto; accent-color: var(--red); cursor: pointer; }

.form-footer { text-align: center; margin-top: 1.1rem; font-size: 0.84rem; color: var(--text-muted); }
.form-footer a { color: var(--red); font-weight: 600; }
.form-divider {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.77rem; color: var(--text-muted); margin: 1.1rem 0;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-md);
}

/* ============================================================
   ALERTS
============================================================ */
.alert {
  padding: 0.78rem 1rem; margin-bottom: 1rem;
  border-radius: var(--r-md); font-size: 0.85rem;
  display: flex; align-items: flex-start; gap: 0.55rem;
  line-height: 1.5; animation: fadeUp 0.3s var(--ease);
}
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

[data-theme="dark"] .alert-error   { background: #2D1515; border-color: #7F1D1D; color: #FCA5A5; }
[data-theme="dark"] .alert-success { background: #0D2618; border-color: #166534; color: #86EFAC; }
[data-theme="dark"] .alert-info    { background: #0D1F3C; border-color: #1E3A6E; color: #93C5FD; }
[data-theme="dark"] .alert-warning { background: #2D1F08; border-color: #92400E; color: #FCD34D; }

/* ============================================================
   STATUS BADGES
============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.75rem; border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-pending    { background: #FEF3C7; color: #92400E; }
.badge-accepted   { background: #DBEAFE; color: #1E40AF; }
.badge-cooking    { background: #FFEDD5; color: #C2410C; }
.badge-dispatched { background: #D1FAE5; color: #065F46; }
.badge-delivered  { background: #DCFCE7; color: #14532D; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }

[data-theme="dark"] .badge-pending    { background: #2D2008; color: #FCD34D; }
[data-theme="dark"] .badge-accepted   { background: #0D1F3C; color: #93C5FD; }
[data-theme="dark"] .badge-cooking    { background: #2D1A08; color: #FDBA74; }
[data-theme="dark"] .badge-dispatched { background: #0A2018; color: #6EE7B7; }
[data-theme="dark"] .badge-delivered  { background: #0D2618; color: #86EFAC; }
[data-theme="dark"] .badge-cancelled  { background: #2D1515; color: #FCA5A5; }

/* ============================================================
   CART SIDEBAR
============================================================ */
.cart-drawer {
  position: fixed; right: 0; top: var(--nav-h); bottom: 0;
  width: 370px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  z-index: 400; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.cart-drawer-head h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; }
.cart-close-btn {
  background: var(--bg-alt); border: 1px solid var(--border);
  width: 30px; height: 30px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 0.95rem;
  transition: all 0.2s;
}
.cart-close-btn:hover { background: var(--red-pale); color: var(--red); border-color: var(--red-border); }
.cart-body { flex: 1; overflow-y: auto; padding: 0.75rem 1.4rem; }
.cart-item {
  display: flex; gap: 0.7rem; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.cart-item-name { font-size: 0.87rem; font-weight: 500; flex: 1; }
.cart-qty { display: flex; align-items: center; gap: 0.35rem; }
.qty-btn {
  width: 27px; height: 27px;
  border: 1.5px solid var(--border-md);
  background: var(--bg-alt); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); color: var(--text);
  font-size: 1rem; font-weight: 500; line-height: 1;
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.1); }
.cart-item-price {
  font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 700;
  color: var(--red); min-width: 52px; text-align: right; flex-shrink: 0;
}
.cart-foot {
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'Playfair Display', serif; font-size: 1.18rem; font-weight: 700;
  margin-bottom: 1rem;
}
.cart-total-row span:last-child { color: var(--red); }

/* ============================================================
   CUSTOMER ORDERS
============================================================ */
.orders-stack { display: flex; flex-direction: column; gap: 1rem; }
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.4rem;
  display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap;
  transition: box-shadow 0.22s, transform 0.22s;
  box-shadow: var(--shadow-xs);
}
.order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.order-num {
  font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--red); white-space: nowrap; min-width: 68px;
}
.order-body { flex: 1; min-width: 170px; }
.order-date { font-size: 0.77rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.order-items-text { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.35rem; }
.order-price {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--text); flex-shrink: 0;
}

/* ============================================================
   CART PAGE
============================================================ */
.cart-page-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.75rem; align-items: start; }
.cart-table-head, .cart-table-row {
  display: grid; gap: 1rem; padding: 0.85rem 1.25rem;
  grid-template-columns: 76px 1fr 120px 100px 36px;
  align-items: center;
}
.cart-table-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.cart-table-row { border-bottom: 1px solid var(--border); }
.cart-table-row:last-child { border-bottom: none; }

/* ============================================================
   TOAST
============================================================ */
#toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--text); color: var(--surface);
  padding: 0.75rem 1.3rem; font-size: 0.83rem; font-weight: 500;
  border-radius: var(--r-full); opacity: 0;
  transition: opacity 0.28s, transform 0.28s;
  pointer-events: none; z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  max-width: calc(100vw - 3rem);
}
#toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   ADMIN LAYOUT
============================================================ */
.admin-wrap { display: flex; min-height: calc(100vh - var(--nav-h)); }

/* Sidebar */
.admin-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: background 0.35s, border-color 0.35s;
}
.sidebar-brand {
  padding: 1.1rem 1.35rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-brand-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem; font-weight: 700;
}
.sidebar-brand-dot {
  width: 27px; height: 27px;
  background: var(--red); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; flex-shrink: 0;
}
.sidebar-brand-sub {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 0.25rem;
}
.sidebar-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.8rem 1.35rem 0.25rem;
  flex-shrink: 0;
}
.sidebar-nav {
  display: flex; flex-direction: column;
  padding: 0.3rem 0.8rem; gap: 0.08rem; flex-shrink: 0;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.9rem; color: var(--text-muted);
  font-size: 0.84rem; font-weight: 500;
  border-radius: var(--r-lg);
  transition: all 0.2s; text-decoration: none;
  white-space: nowrap; width: 100%;
}
.sidebar-nav a .nav-icon { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav a:hover  { color: var(--red); background: var(--red-pale); }
.sidebar-nav a.active { color: var(--red); background: var(--red-pale); font-weight: 600; }

.sidebar-theme {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-theme span { font-size: 0.79rem; font-weight: 500; color: var(--text-muted); }

.sidebar-footer {
  display: flex; flex-direction: column;
  padding: 0.4rem 0.8rem 0.9rem;
  flex-shrink: 0;
}
.sidebar-footer a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.9rem; border-radius: var(--r-lg);
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s; text-decoration: none;
}
.sidebar-footer a:hover { background: var(--bg-alt); color: var(--text); }

/* Sidebar body — wraps nav + theme + footer */
.sidebar-body {
  display: flex; flex-direction: column; flex: 1; overflow-y: auto;
}

/* Mobile chevron */
.sidebar-chevron {
  display: none;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: 0.75rem; color: var(--text-muted);
  transition: transform 0.28s; flex-shrink: 0; cursor: pointer;
}
.sidebar-chevron.open { transform: rotate(180deg); }

/* Admin main */
.admin-main {
  flex: 1; padding: 2rem 2rem 3rem;
  min-width: 0; overflow-x: hidden;
}
.admin-page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
  padding-bottom: 1.35rem; border-bottom: 1px solid var(--border);
}
.admin-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
.admin-page-sub { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.2rem; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.3rem;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-icon {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 0.8rem;
  background: var(--red-pale);
}
.stat-card.stat-accent .stat-icon { background: var(--red); color: #fff; }
.stat-val {
  font-family: 'Playfair Display', serif; font-size: 1.95rem;
  font-weight: 700; line-height: 1; margin-bottom: 0.18rem;
}
.stat-card.stat-accent .stat-val { color: var(--red); }
.stat-lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }

/* Table */
.tbl-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; overflow-x: auto;
  box-shadow: var(--shadow-xs);
}
table { width: 100%; border-collapse: collapse; min-width: 480px; }
thead { background: var(--bg-alt); }
th {
  padding: 0.8rem 1rem; text-align: left;
  font-size: 0.69rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid var(--border);  white-space: nowrap;
}
td {
  padding: 0.82rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.86rem; vertical-align: middle; transition: background 0.15s;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--red-pale); }
[data-theme="dark"] tr:hover td { background: rgba(214,43,31,0.06); }
td img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-md); }
.tbl-actions { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }

/* Admin order cards */
.admin-order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.3rem 1.4rem;
  margin-bottom: 0.85rem;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  box-shadow: var(--shadow-xs);
}
.admin-order-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-md); }
.admin-order-grid {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 1.25rem; align-items: start;
}
.admin-order-id {
  font-family: 'Playfair Display', serif; font-size: 1.18rem;
  font-weight: 700; color: var(--red); margin-bottom: 0.2rem;
}
.admin-order-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.12rem; }
.admin-order-contact { font-size: 0.77rem; color: var(--text-muted); }
.admin-order-time { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.2rem; }
.admin-order-items-text { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }
.admin-order-addr { font-size: 0.77rem; color: var(--text-muted); margin-top: 0.3rem; }
.admin-order-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.admin-order-total { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; }
.status-form { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.status-form select {
  padding: 0.4rem 0.7rem; border: 1.5px solid var(--border-md);
  border-radius: var(--r-full); font-size: 0.79rem; font-weight: 500;
  background: var(--bg-alt); color: var(--text);
  cursor: pointer; outline: none; transition: border-color 0.2s;
}
.status-form select:focus { border-color: var(--red); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.52);
  z-index: 600; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 100%; max-width: 510px;
  max-height: 92vh; overflow-y: auto; padding: 1.85rem;
  box-shadow: var(--shadow-lg); animation: scaleIn 0.3s var(--spring);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.4rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border);
}
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; }
.modal-close-btn {
  background: var(--bg-alt); border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 0.95rem; transition: all 0.2s;
}
.modal-close-btn:hover { background: var(--red-pale); color: var(--red); border-color: var(--red-border); }

/* Two-col panel */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.4rem; box-shadow: var(--shadow-xs);
}
.panel-title {
  font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 700;
  margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border);
}
.inline-form { display: flex; gap: 0.45rem; align-items: center; }
.inline-form input {
  flex: 1; padding: 0.4rem 0.7rem; border: 1.5px solid var(--border-md);
  border-radius: var(--r-md); font-size: 0.875rem;
  background: var(--bg-alt); color: var(--text); outline: none; transition: border-color 0.2s;
}
.inline-form input:focus { border-color: var(--red); }

/* Empty state */
.empty-box {
  text-align: center; padding: 4.5rem 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
}
.empty-box-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.empty-box h3 {
  font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 0.45rem;
}
.empty-box p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.65rem; }

/* Utilities */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.text-red{color:var(--red)}.text-muted{color:var(--text-muted)}
.text-sm{font-size:.82rem}.text-xs{font-size:.73rem}
.fw-600{font-weight:600}.fw-700{font-weight:700}
.serif{font-family:'Playfair Display',serif}
.flex{display:flex}.items-center{align-items:center}
.justify-between{justify-content:space-between}
.gap-1{gap:.5rem}.gap-2{gap:1rem}
.hidden{display:none!important}

/* Site footer */
.site-footer {
  background: #1A0E0E; color: rgba(255,255,255,0.42);
  text-align: center; padding: 1.75rem 1.5rem;
  font-size: 0.78rem; letter-spacing: 0.05em;
}
.site-footer .footer-brand {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: rgba(255,255,255,0.78); margin-bottom: 0.35rem;
}

/* ============================================================
   RESPONSIVE — 1024px
============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .admin-main { padding: 1.65rem 1.5rem; }
  .cart-page-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — 768px
============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 3.5rem 1.25rem 3rem; }

  /* Menu */
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

  /* Cart drawer full width */
  .cart-drawer { width: 100%; }

  /* Features strip */
  .features-strip { gap: 1.25rem; }

  /* Order card stack */
  .order-card { flex-direction: column; gap: 0.75rem; }
  .order-price { align-self: flex-start; }

  /* Cart page */
  .cart-table-head { display: none; }
  .cart-table-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem; padding: 1rem 1rem;
  }
  .cart-row-img { grid-row: 1 / 3; }
  .cart-row-qty { grid-column: 2; }
  .cart-row-sub { grid-column: 2; font-size: 0.9rem; }
  .cart-row-del { position: absolute; right: 1rem; top: 1rem; }

  /* Admin sidebar — collapsible */
  .admin-wrap { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: relative;
    top: auto; border-right: none;
    border-bottom: 2px solid var(--border);
    overflow: visible;
  }
  .sidebar-brand { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
  .sidebar-brand-sub { display: none; }
  .sidebar-body { display: none; }
  .sidebar-body.open { display: flex; border-top: 1px solid var(--border); }
  .sidebar-label { display: none; }
  .sidebar-nav { padding: 0.55rem 0.8rem; gap: 0.08rem; }
  .sidebar-nav a { padding: 0.8rem 1rem; font-size: 0.88rem; }
  .sidebar-footer { padding: 0.35rem 0.8rem 0.8rem; }
  .sidebar-chevron { display: inline-flex; }

  .admin-main { padding: 1.2rem 1rem; }

  /* Admin order card */
  .admin-order-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .admin-order-right { align-items: flex-start; }
  .status-form { justify-content: flex-start; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-page-head { flex-direction: column; }
  .modal { padding: 1.4rem; }
  .form-box { margin: 1.5rem 1rem; padding: 1.65rem; }
  .section { padding: 2.5rem 0; }
}

/* ============================================================
   RESPONSIVE — 480px
============================================================ */
@media (max-width: 480px) {
  :root { --nav-h: 58px; }
  .container { padding: 0 1rem; }
  .menu-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cat-tabs { gap: 0.28rem; }
  .tab-btn { padding: 0.38rem 0.8rem; font-size: 0.73rem; }
  .btn { padding: 0.52rem 1.1rem; font-size: 0.78rem; }
  .btn-sm { padding: 0.32rem 0.75rem; font-size: 0.72rem; }
  .hero h1 { font-size: 2rem; }
  .features-strip { display: none; }
  .admin-main { padding: 1rem 0.85rem; }
  .tbl-wrap { border-radius: var(--r-lg); }
  td, th { padding: 0.7rem 0.75rem; }
}
