/* =========================================================
   KKŌPi.Tea — Plain HTML/CSS aesthetic
   Palette pulled from the mood board:
     Espresso #33261B  |  Latte #DFCEC0  |  Cream #FAF4ED
     Orange  #FF7A1A  |  Black  #121212
   Fonts: Playfair Display (display), DM Sans (body), Space Mono (mono)
========================================================= */
:root {
  --espresso: #33261B;
  --espresso-2: #4A382A;
  --latte: #DFCEC0;
  --cream: #FAF4ED;
  --cream-2: #F1E7DB;
  --orange: #FF7A1A;
  --orange-dark: #E5660A;
  --ink: #1C140D;
  --muted: #7A6B5E;
  --line: #E0D2C2;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(51, 38, 27, 0.06);
  --shadow-md: 0 12px 32px rgba(51, 38, 27, 0.10);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ Navigation ============ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--espresso);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand-mark {
  background: var(--espresso);
  color: var(--cream);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 18px;
  margin-right: 6px;
}
.brand-rest { font-style: italic; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--espresso-2);
  position: relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--orange-dark); }
.nav-links a.active { color: var(--espresso); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--orange);
}

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--espresso); color: var(--cream);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px;
  margin-left: 4px;
}

/* ============ Layout helpers ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 56px 32px 80px; }
.page-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-dark);
  margin: 0 0 12px;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  color: var(--espresso);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--orange-dark); font-weight: 600; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--espresso);
  margin: 0 0 28px;
}
.mono { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.small { font-size: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--espresso); color: var(--cream);
}
.btn-primary:hover { background: var(--orange); }
.btn-ghost {
  background: transparent; color: var(--espresso);
  border-color: var(--espresso);
}
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }
.btn.block { width: 100%; margin-top: 14px; }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  max-width: 1180px; margin: 0 auto;
  padding: 80px 32px 60px;
  align-items: center;
}
.hero-text .hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display); font-size: 32px; color: var(--espresso);
}
.hero-stats span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.hero-art {
  position: relative; height: 460px;
  background:
    radial-gradient(circle at 60% 40%, #fff 0%, transparent 60%),
    var(--latte);
  border-radius: 280px 280px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cup {
  position: absolute; border-radius: 50% 50% 12px 12px / 35% 35% 12px 12px;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1), 0 12px 30px rgba(51,38,27,0.18);
}
.cup-1 {
  width: 200px; height: 240px;
  background: linear-gradient(180deg, #3A2A1D 0%, #5A3F2A 60%, #6E4E33 100%);
  left: 50%; top: 38%; transform: translateX(-50%);
  z-index: 3;
}
.cup-1::before {
  content: ""; position: absolute; top: 14px; left: 14px; right: 14px;
  height: 28px; background: #EDD9C2; border-radius: 50%;
}
.cup-2 {
  width: 130px; height: 170px;
  background: linear-gradient(180deg, #C97B3E 0%, #E69556 100%);
  left: 12%; top: 52%;
  z-index: 2;
}
.cup-2::before {
  content: ""; position: absolute; top: 10px; left: 10px; right: 10px;
  height: 18px; background: #FFEED9; border-radius: 50%;
}
.cup-3 {
  width: 120px; height: 160px;
  background: linear-gradient(180deg, #97B47A 0%, #B8D199 100%);
  right: 10%; top: 55%;
  z-index: 2;
}
.cup-3::before {
  content: ""; position: absolute; top: 10px; left: 10px; right: 10px;
  height: 18px; background: #EAF3DA; border-radius: 50%;
}
.bean {
  position: absolute; width: 30px; height: 42px;
  background: var(--espresso); border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1);
}
.bean::after {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%;
  width: 2px; background: rgba(255,255,255,0.12); border-radius: 2px;
}
.bean-1 { top: 12%; left: 22%; transform: rotate(-30deg); }
.bean-2 { top: 18%; right: 18%; transform: rotate(25deg); }

/* ============ Featured cards ============ */
.featured { max-width: 1180px; margin: 40px auto; padding: 0 32px; }
.card-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--cream-2);
  display: block;
}
.feat-card h3 { margin: 6px 0 6px; font-family: var(--font-display); font-size: 22px; color: var(--espresso); }
.feat-card p { margin: 0; color: var(--muted); font-size: 14px; }
.price-tag {
  display: inline-block; margin-top: 14px;
  background: var(--cream-2); color: var(--espresso);
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px;
}

/* ============ Band ============ */
.band {
  background: var(--espresso); color: var(--cream);
  margin: 80px 0 0;
  border-top: 1px solid var(--espresso-2);
  border-bottom: 1px solid var(--espresso-2);
}
.band-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 32px;
  text-align: center;
}
.band .mono { color: var(--latte); margin: 0; letter-spacing: 0.15em; }

/* ============ Testimonials ============ */
.testimonials { max-width: 1180px; margin: 80px auto; padding: 0 32px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-grid blockquote {
  margin: 0; padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.t-grid blockquote p {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.45;
  color: var(--espresso); margin: 0 0 14px;
}
.t-grid footer { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ============ Menu page ============ */
.menu-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line);
  font-size: 13px; color: var(--espresso);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  font-family: var(--font-body);
}
.chip:hover { border-color: var(--espresso); }
.chip.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.search {
  padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 14px;
  min-width: 240px; background: #fff;
  color: var(--ink);
}
.search:focus { outline: none; border-color: var(--orange); }

.menu-category { margin-bottom: 56px; }
.menu-cat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 20px;
}
.menu-cat-head h2 {
  font-family: var(--font-display); font-size: 32px; color: var(--espresso); margin: 0;
}
.menu-cat-head .note {
  font-family: var(--font-mono); font-size: 12px; color: var(--orange-dark);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.menu-subgroup-title {
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; color: var(--espresso-2); margin: 16px 0 12px;
}
.menu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.menu-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, transform .2s ease;
}
.menu-item:hover { border-color: var(--espresso); transform: translateY(-2px); }
.menu-item h3 {
  margin: 0; font-family: var(--font-display); font-size: 20px;
  color: var(--espresso);
}
.price-row { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.price-pill {
  background: var(--cream-2); color: var(--espresso);
  padding: 3px 10px; border-radius: 999px;
}
.add-row { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.add-btn {
  flex: 1; padding: 10px 8px; border-radius: 10px;
  background: var(--espresso); color: var(--cream);
  border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  transition: background .2s ease;
}
.add-btn:hover { background: var(--orange); }
.add-btn.size-jumbo { background: var(--orange); }
.add-btn.size-jumbo:hover { background: var(--orange-dark); }

/* Toast */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--espresso); color: var(--cream);
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Floating cart FAB */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--orange); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, transform .2s ease;
}
.fab:hover { background: var(--orange-dark); transform: translateY(-2px); }
.fab span {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px;
}

/* ============ Cart page ============ */
.cart-layout {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-line {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
}
.cart-line h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; color: var(--espresso); }
.cart-line p { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.qty {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-2); padding: 4px; border-radius: 999px;
}
.qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: #fff; cursor: pointer;
  font-weight: 700; color: var(--espresso);
}
.qty button:hover { background: var(--espresso); color: var(--cream); }
.qty span { font-family: var(--font-mono); min-width: 22px; text-align: center; }
.line-price { font-family: var(--font-mono); font-weight: 700; color: var(--espresso); }
.remove-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; padding: 0 6px;
}
.remove-btn:hover { color: var(--orange-dark); }
.empty-cart {
  text-align: center; padding: 60px 20px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.empty-cart a { color: var(--orange-dark); font-weight: 600; }

.cart-summary {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 100px;
}
.cart-summary h2 {
  font-family: var(--font-display); font-size: 26px; color: var(--espresso);
  margin: 0 0 18px;
}
.cart-summary label {
  display: block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.cart-summary input,
.cart-summary textarea {
  width: 100%; margin-top: 6px;
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 14px;
  background: var(--cream); color: var(--ink);
  resize: vertical;
}
.cart-summary input:focus, .cart-summary textarea:focus {
  outline: none; border-color: var(--orange);
}
.totals {
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 14px;
}
.totals div { display: flex; justify-content: space-between; }
.totals .big {
  font-family: var(--font-display); font-size: 22px;
  color: var(--espresso); font-weight: 700;
  border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px;
}
.order-msg { margin-top: 12px; font-size: 14px; min-height: 1em; }
.order-msg.ok { color: #2E7D32; }
.order-msg.err { color: #C62828; }

/* ============ About ============ */
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  margin-bottom: 60px;
}
.about-grid article {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.about-grid h2 {
  font-family: var(--font-display); font-size: 24px;
  color: var(--espresso); margin: 0 0 10px;
}
.about-grid p { margin: 0; color: var(--muted); }
.values { margin-top: 40px; }
.value-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value {
  background: var(--espresso); color: var(--cream);
  padding: 28px; border-radius: var(--radius);
}
.value-num {
  display: block; color: var(--orange); font-size: 14px; margin-bottom: 8px;
}
.value h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 22px; }
.value p { margin: 0; color: var(--latte); font-size: 14px; }

/* ============ Testimonials ============ */
.image-testimonials-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap; 
  margin-top: 2rem;
}

.testimonial-card {
  background-color: #EAE6D7; 
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  box-sizing: border-box;
}

.t-avatar {
  display: block;
  margin: 0 auto 16px auto; 
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.t-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.t-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #222;
  margin: 4px 0 24px 0;
}

.t-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111;
  margin: 0;
}

.testimonials .section-title {
  text-align: center;
  margin-top: 5rem;
}

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.testimonial-card:hover {
  transform: translateY(-8px); 
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); 
}
/* ============ Contact ============ */
/*.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px;
  align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 24px;
}
.info-block {
  background: var(--cream-2); border: 1px solid var(--line);
  padding: 20px; border-radius: var(--radius);
}
.info-block p { margin: 0; color: var(--espresso); font-size: 15px; line-height: 1.5; }
.info-block .mono { margin-bottom: 6px; color: var(--orange-dark); }
.contact-form {
  background: #fff; border: 1px solid var(--line);
  padding: 28px; border-radius: var(--radius);
}
.contact-form label {
  display: block; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%; margin-top: 6px;
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 14px;
  background: var(--cream);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange);
}

/* --- Demo Reel Section --- */
.demo-reel {
  margin: 4rem 0;
  text-align: center;
}

.demo-reel .section-desc {
  margin-bottom: 2rem;
  color: #555; 
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #000;
  
  
  aspect-ratio: 16 / 9; 
}

.video-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

    /* ── Contact-specific styles ── */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 32px;
      align-items: start;
    }
    .contact-info { display: flex; flex-direction: column; gap: 20px; }
    .info-block {
      background: #fff;
      border: 1px solid var(--line);
      padding: 22px 24px;
      border-radius: var(--radius);
      transition: box-shadow .2s ease;
    }
    .info-block:hover { box-shadow: var(--shadow-md); }
    .info-block .info-label {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--orange-dark);
      margin: 0 0 8px;
    }
    .info-block p {
      margin: 0;
      font-size: 15px;
      color: var(--espresso);
      line-height: 1.55;
      font-weight: 500;
    }
    .info-block a { color: var(--espresso); }
    .info-block a:hover { color: var(--orange-dark); }

    .info-icon {
      font-size: 22px;
      margin-bottom: 10px;
      display: block;
    }

    .socials-row {
      display: flex; gap: 12px; margin-top: 8px;
    }
    .social-pill {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--cream-2); border: 1px solid var(--line);
      padding: 8px 14px; border-radius: 999px;
      font-size: 14px; color: var(--espresso); font-weight: 600;
      transition: background .2s, color .2s;
    }
    .social-pill:hover { background: var(--espresso); color: var(--cream); }
    .social-pill svg { width: 16px; height: 16px; }

    /* Contact Form */
    .contact-form-wrap {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 32px;
    }
    .contact-form-wrap h2 {
      font-family: var(--font-display);
      font-size: 26px; color: var(--espresso);
      margin: 0 0 24px;
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .field {
      display: flex; flex-direction: column; gap: 6px;
      margin-bottom: 16px;
    }
    .field label {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }
    .field input,
    .field select,
    .field textarea {
      padding: 12px 14px;
      border-radius: 10px;
      border: 1.5px solid var(--line);
      font-family: var(--font-body);
      font-size: 14px;
      background: var(--cream);
      color: var(--ink);
      transition: border-color .2s;
      resize: vertical;
    }
    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      outline: none;
      border-color: var(--orange);
      background: #fff;
    }
    .submit-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
    #contact-msg {
      font-size: 14px; min-height: 1.4em;
      flex: 1;
    }
    #contact-msg.ok { color: #2E7D32; }
    #contact-msg.err { color: #C62828; }


        /* ── Admin-specific ── */
    body { background: var(--cream-2); }

    /* Login Gate */
    .login-gate {
      min-height: 100vh;
      display: flex; align-items: center; justify-content: center;
    }
    .login-box {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 40px 36px;
      width: 100%; max-width: 380px;
      box-shadow: var(--shadow-md);
      text-align: center;
    }
    .login-box .brand { display: inline-flex; margin-bottom: 24px; }
    .login-box h2 {
      font-family: var(--font-display); font-size: 24px;
      color: var(--espresso); margin: 0 0 20px;
    }
    .login-field {
      display: flex; flex-direction: column; gap: 6px;
      margin-bottom: 14px; text-align: left;
    }
    .login-field label {
      font-family: var(--font-mono); font-size: 11px;
      text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
    }
    .login-field input {
      padding: 12px 14px; border-radius: 10px;
      border: 1.5px solid var(--line);
      font-family: var(--font-body); font-size: 14px;
      background: var(--cream); color: var(--ink);
    }
    .login-field input:focus { outline: none; border-color: var(--orange); }
    #login-err { color: #C62828; font-size: 13px; margin-top: 10px; min-height: 1em; }

    /* Dashboard shell */
    .admin-shell { display: none; }
    .admin-topbar {
      background: var(--espresso); color: var(--cream);
      padding: 14px 32px;
      display: flex; align-items: center; justify-content: space-between;
      position: sticky; top: 0; z-index: 50;
    }
    .admin-topbar .brand { color: var(--cream); }
    .admin-topbar .brand-mark { background: var(--orange); color: #fff; }
    .admin-topbar span { font-family: var(--font-mono); font-size: 13px; color: var(--latte); }
    #logout-btn {
      background: transparent; border: 1.5px solid var(--latte);
      color: var(--latte); padding: 7px 16px; border-radius: 999px;
      font-size: 13px; cursor: pointer; font-family: var(--font-body);
      transition: background .2s, color .2s;
    }
    #logout-btn:hover { background: var(--latte); color: var(--espresso); }

    .admin-body { max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; }

    /* Stats row */
    .stats-row {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
      margin-bottom: 40px;
    }
    .stat-card {
      background: #fff; border: 1px solid var(--line);
      border-radius: var(--radius); padding: 22px 24px;
    }
    .stat-card .stat-label {
      font-family: var(--font-mono); font-size: 11px;
      text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--muted); margin: 0 0 8px;
    }
    .stat-card .stat-val {
      font-family: var(--font-display); font-size: 32px;
      color: var(--espresso); font-weight: 700;
    }
    .stat-card .stat-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

    /* Tabs */
    .admin-tabs {
      display: flex; gap: 0; border-bottom: 2px solid var(--line);
      margin-bottom: 28px;
    }
    .tab-btn {
      background: none; border: none; cursor: pointer;
      font-family: var(--font-body); font-size: 15px; font-weight: 600;
      color: var(--muted); padding: 12px 24px;
      border-bottom: 2px solid transparent; margin-bottom: -2px;
      transition: color .2s;
    }
    .tab-btn.active { color: var(--espresso); border-bottom-color: var(--orange); }
    .tab-btn:hover { color: var(--espresso); }

    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* Table */
    .admin-table-wrap {
      background: #fff; border: 1px solid var(--line);
      border-radius: var(--radius); overflow: hidden;
    }
    .table-toolbar {
      padding: 16px 20px; border-bottom: 1px solid var(--line);
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    }
    .table-toolbar h3 {
      font-family: var(--font-display); font-size: 20px;
      color: var(--espresso); margin: 0; flex: 1;
    }
    .table-toolbar .badge {
      background: var(--cream-2); color: var(--espresso);
      padding: 3px 10px; border-radius: 999px;
      font-family: var(--font-mono); font-size: 12px;
    }
    #order-search, #msg-search {
      padding: 8px 12px; border-radius: 8px;
      border: 1.5px solid var(--line); font-size: 13px;
      font-family: var(--font-body); background: var(--cream);
    }
    #order-search:focus, #msg-search:focus { outline: none; border-color: var(--orange); }
    .refresh-btn {
      background: var(--cream-2); border: 1px solid var(--line);
      padding: 8px 14px; border-radius: 8px; cursor: pointer;
      font-size: 13px; font-family: var(--font-body);
      transition: background .2s;
    }
    .refresh-btn:hover { background: var(--latte); }

    table {
      width: 100%; border-collapse: collapse; font-size: 14px;
    }
    thead th {
      background: var(--cream-2);
      font-family: var(--font-mono); font-size: 11px;
      text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--muted); padding: 10px 16px;
      text-align: left; border-bottom: 1px solid var(--line);
    }
    tbody td {
      padding: 14px 16px; border-bottom: 1px solid var(--cream-2);
      vertical-align: top;
    }
    tbody tr:last-child td { border-bottom: none; }
    tbody tr:hover td { background: var(--cream); }

    .status-pill {
      display: inline-block; padding: 3px 10px; border-radius: 999px;
      font-family: var(--font-mono); font-size: 11px; font-weight: 700;
      text-transform: uppercase;
    }
    .status-pending { background: #FFF3CD; color: #856404; }
    .status-done { background: #D1FAE5; color: #065F46; }
    .status-cancelled { background: #FEE2E2; color: #991B1B; }

    .items-list { margin: 0; padding: 0; list-style: none; }
    .items-list li { color: var(--muted); font-size: 13px; }

    .status-select {
      padding: 4px 8px; border-radius: 6px;
      border: 1.5px solid var(--line);
      font-family: var(--font-mono); font-size: 12px;
      background: var(--cream); cursor: pointer;
    }
    .status-select:focus { outline: none; border-color: var(--orange); }

    /* Subject tag for messages */
    .subject-tag {
      display: inline-block; padding: 2px 8px; border-radius: 6px;
      background: var(--cream-2); border: 1px solid var(--line);
      font-family: var(--font-mono); font-size: 11px; color: var(--espresso);
    }

    .msg-text { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 380px; }

    .empty-row td { text-align: center; color: var(--muted); padding: 48px; }

    
/* ============ Footer ============ */
.footer {
  background: var(--espresso); color: var(--latte);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

.footer-main-logo {
  width: 50px;         
  height: auto;
  object-fit: contain;
}

.footer .mono { color: var(--latte); margin: 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--latte); }
.footer-links a:hover { color: var(--orange); }

.loading { text-align: center; padding: 40px; }

.footer-details {
  display: flex;
  align-items: center; 
  gap: 1.5rem;         
}

.footer-main-logo {
  width: 100px;       
  height: auto;
  object-fit: contain;
  flex-shrink: 0;    
}

.footer-text-group p {
  margin: 4px 0;
}

.loading { text-align: center; padding: 40px; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; }
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero-art { height: 320px; }
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Nav: brand on top, links wrap below as a centred pill row */
  .nav {
    flex-wrap: wrap;
    padding: 14px 16px 10px;
    gap: 0;
  }
  .brand {
    font-size: 20px;
  }
  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    padding: 10px 0 4px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-links a {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cream-2);
    color: var(--espresso-2);
    white-space: nowrap;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--espresso);
    color: var(--cream);
  }
  .nav-links a.active::after { display: none; } /* hide underline in pill mode */

  /* Rest of 560px overrides */
  .card-row { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .container { padding: 32px 20px 60px; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 24px; }
}
@media (max-width: 900px) {
      .contact-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
    }
@media (max-width: 900px) {
      .stats-row { grid-template-columns: repeat(2, 1fr); }
      .admin-body { padding: 24px 16px 60px; }
      .admin-topbar { padding: 14px 16px; }
    }
    @media (max-width: 560px) {
      .stats-row { grid-template-columns: 1fr 1fr; }
      table { font-size: 12px; }
      thead th, tbody td { padding: 10px 10px; }
    }
    