/* ==========================================================================
   Mabeani Coffee — stylesheet
   Warm "cream & espresso" design: cream pages, white cards, espresso text,
   a rust accent taken from the logo, a deep-espresso footer.
   Type: Fraunces (headings) + Inter (text).

   Contents
     1. Tokens + base          6. Home sections
     2. Layout helpers         7. Inner pages (story, visit, contact, privacy)
     3. Buttons + forms        8. Footer
     4. Header + navigation    9. Menu, gallery, cart, checkout, accounts
     5. Motion                10. Staff dashboard + responsive touches
   ========================================================================== */

/* ---------- 1. Tokens + base ---------- */
:root {
  --color-bg:          #FBF7F1;   /* page */
  --color-bg-raised:   #FFFFFF;   /* pop-ups */
  --color-bg-glass:    #FFFFFF;   /* cards */
  --color-bg-soft:     #F5EDE0;   /* tinted panels */
  --color-border:      #E6DAC8;
  --color-text:        #2B1D14;
  --color-text-soft:   #5A4838;
  --color-text-faint:  #7B6857;
  --color-heading:     #1E130C;

  --color-brown:        #9E4520;  /* rust accent (from the logo) */
  --color-brown-bright: #A24A21;
  --color-green:        #3E7A58;
  --color-green-bright: #2F6B4A;

  --color-dark:           #2A1B12;  /* footer, dashboard sidebar */
  --color-on-dark:        #EADFCF;
  --color-on-dark-soft:   #C9B9A3;
  --color-accent-on-dark: #E3955F;

  --shadow-soft: 0 2px 12px rgba(60, 38, 18, 0.06);
  --shadow-card: 0 10px 28px -16px rgba(60, 38, 18, 0.30);
  --shadow-lift: 0 18px 36px -18px rgba(60, 38, 18, 0.38);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; font-size: 106.25%; }   /* 17px base: comfortable to read on phones */

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; color: var(--color-text-soft); max-width: 64ch; }
a { color: var(--color-brown); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #7C3516; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }
small { font-size: 0.875rem; }
code { background: var(--color-bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.muted { color: var(--color-text-faint); }

/* keyboard users: always see where they are */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-brown);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--color-dark); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- 2. Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(40px, 6vw, 72px) 0; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: 12px 0 clamp(48px, 7vw, 88px); }
.section-tint { background: var(--color-bg-soft); }
.center-cta { text-align: center; margin: 32px 0 0; max-width: none; }

.eyebrow, .section-kicker {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-bright);
}

.page-header { padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 2vw, 20px); }
.page-header h1 { margin-bottom: 14px; }
.lead { font-size: 1.12rem; color: var(--color-text-soft); max-width: 56ch; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform 0.2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

.panel {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-card);
}
.panel h2 { font-size: 1.3rem; margin-bottom: 14px; }
.panel-soft { background: var(--color-bg-soft); box-shadow: none; }

.empty-state {
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--color-text-faint);
  background: rgba(255, 255, 255, 0.6);
}
.empty-state p { margin: 0 auto; }

.notice-banner {
  background: #FBEFE3; border: 1px solid #EBCFB3; color: #6B3A1A;
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; max-width: 70ch;
}

/* ---------- 3. Buttons + forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-brown); color: #FFFFFF; box-shadow: 0 10px 20px -12px rgba(158, 69, 32, 0.75); }
.btn-primary:hover { background: #86391A; color: #FFFFFF; box-shadow: 0 14px 24px -12px rgba(158, 69, 32, 0.85); }
.btn-ghost { background: #FFFFFF; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-brown); color: var(--color-brown); }
.btn-light { background: #FFFFFF; color: var(--color-dark); }
.btn-light:hover { background: var(--color-bg-soft); color: var(--color-dark); }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; border-color: #FFFFFF; }
.btn-danger { background: #FFFFFF; color: #B3392B; border-color: #E8B7B0; }
.btn-danger:hover { background: #B3392B; color: #FFFFFF; border-color: #B3392B; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.95rem; font-weight: 600; color: var(--color-text); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-text);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-brown); box-shadow: 0 0 0 3px rgba(158, 69, 32, 0.16);
}
.field input[disabled] { background: var(--color-bg-soft); color: var(--color-text-faint); cursor: not-allowed; }
.field-hint { display: block; margin-top: 6px; color: var(--color-text-faint); font-size: 0.875rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 4. Header + navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  max-width: var(--max-width); margin: 0 auto; padding: 8px 24px;
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 60px; height: 60px; object-fit: contain; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 15px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--color-text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: var(--color-bg-soft); color: var(--color-brown); }
.nav-links a.active { background: var(--color-bg-soft); color: var(--color-brown); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--color-border); background: #FFFFFF; color: var(--color-text);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover, .icon-btn.active { background: var(--color-bg-soft); border-color: var(--color-brown); color: var(--color-brown); }
.account-btn.is-signed-in { background: var(--color-green-bright); border-color: var(--color-green-bright); color: #FFFFFF; }
.account-btn.is-signed-in:hover { background: var(--color-green); color: #FFFFFF; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--color-border); border-radius: 50%; background: #FFFFFF; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { min-height: 68px; }
  .brand img { width: 52px; height: 52px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 24px 18px;
    background: #FFFFFF; border-bottom: 1px solid var(--color-border);
    box-shadow: 0 22px 30px -20px rgba(60, 38, 18, 0.45);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; border-radius: 12px; }
}
@media (max-width: 420px) {
  .nav { padding: 6px 16px; gap: 10px; }
  .icon-btn, .nav-toggle { width: 42px; height: 42px; }
  .nav-actions { gap: 6px; }
}

/* ---------- 5. Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 74, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(47, 107, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 107, 74, 0); } }

/* ---------- 6. Home sections ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-copy > * { animation: fadeUp 0.7s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }

.open-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; padding: 7px 14px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--color-border);
  font-size: 0.9rem; font-weight: 600; color: var(--color-text-soft); max-width: none;
}
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #A89988; }
.open-status.is-open { color: var(--color-green-bright); }
.open-status.is-open .dot { background: var(--color-green-bright); animation: pulseDot 2.2s infinite; }

.hero-media { position: relative; margin: 0; animation: fadeIn 0.9s var(--ease) 0.12s both; }
.hero-media > img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 26px; box-shadow: var(--shadow-lift);
}
.hero-fallback { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 26px; background: var(--color-bg-soft); border: 1px solid var(--color-border); }
.hero-fallback img { width: 56%; height: auto; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; max-width: calc(100% - 36px);
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-card);
  font-size: 0.875rem; color: var(--color-text-soft);
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--color-heading); }

.facts { padding: 0 0 clamp(36px, 5vw, 64px); }
.facts-grid {
  list-style: none; margin: 0; padding: 22px 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 22px; box-shadow: var(--shadow-card);
}
.facts-grid li { display: flex; gap: 14px; align-items: flex-start; }
.facts-grid svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--color-brown); margin-top: 2px; }
.facts-grid strong { display: block; font-size: 1rem; color: var(--color-heading); line-height: 1.3; }
.facts-grid span { display: block; font-size: 0.9rem; color: var(--color-text-soft); line-height: 1.45; }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.fav-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); color: var(--color-text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--color-text); }
.fav-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--color-bg-soft); overflow: hidden; }
.fav-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.fav-card:hover .fav-photo img { transform: scale(1.04); }
.fav-photo .fav-logo { width: 100px; height: 100px; object-fit: contain; mix-blend-mode: multiply; opacity: 0.8; }
.fav-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.fav-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-green-bright); }
.fav-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fav-row strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--color-heading); line-height: 1.25; }
.price { font-weight: 700; color: var(--color-brown); white-space: nowrap; }
.fav-desc { font-size: 0.9rem; color: var(--color-text-soft); line-height: 1.5; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-soft); }
.steps h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; font-size: 0.95rem; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-brown); color: #FFFFFF; font-weight: 700; font-family: var(--font-display);
}

.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.teaser-tile { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--color-bg-soft); box-shadow: var(--shadow-soft); }
.teaser-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.teaser-tile:hover img { transform: scale(1.06); }

.visit-band { background: #3A2518; color: var(--color-on-dark); padding: clamp(44px, 6vw, 72px) 0; }
.visit-band h2 { color: #FFFFFF; }
.visit-band p { color: var(--color-on-dark-soft); }
.visit-band .eyebrow { color: var(--color-accent-on-dark); }
.visit-band-grid { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.band-hours { list-style: none; margin: 0; padding: 0; max-width: 360px; }
.band-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: var(--color-on-dark); font-size: 0.95rem; }
.band-actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-band-grid { grid-template-columns: 1fr; }
  .band-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 560px) {
  .facts-grid { grid-template-columns: 1fr; padding: 20px; }
  .hero-cta .btn { flex: 1 1 140px; }
  .hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .fav-grid { grid-template-columns: 1fr; }
  .fav-photo { aspect-ratio: 16 / 10; }
}

/* ---------- 7. Inner pages ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-copy p { max-width: 58ch; }
.split-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; max-width: none; }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lift); }

.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.serve-card { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-soft); }
.serve-card h3 { margin-bottom: 6px; }
.serve-card p { margin: 0; font-size: 0.95rem; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.contact-info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.contact-info-list li:last-child { border-bottom: 0; }
.contact-info-list svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--color-brown); margin-top: 2px; }
.contact-info-list strong { display: block; color: var(--color-heading); font-size: 0.95rem; }
.contact-info-list span { display: block; color: var(--color-text-soft); line-height: 1.55; }

.visit-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.visit-grid .panel h2 { margin-top: 22px; }
.visit-grid .open-status + h2 { margin-top: 20px; }
.visit-address { color: var(--color-text); font-size: 1.05rem; line-height: 1.6; max-width: none; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 0.98rem; }
.hours-table th { font-weight: 500; color: var(--color-text-soft); }
.hours-table td { text-align: right; font-weight: 600; color: var(--color-heading); }
.phone-link { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; max-width: none; }
.map-frame { min-height: 420px; border-radius: 22px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-card); background: var(--color-bg-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.5em; color: var(--color-text-soft); }
.prose p { max-width: none; }

@media (max-width: 960px) {
  .split, .contact-grid, .visit-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .map-frame, .map-frame iframe { min-height: 340px; }
}
@media (max-width: 560px) {
  .serve-grid { grid-template-columns: 1fr; }
}

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--color-dark); color: var(--color-on-dark); padding: clamp(44px, 6vw, 64px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.5fr 1.5fr; gap: 36px; }
.site-footer h4 { margin: 0 0 14px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; color: var(--color-on-dark-soft); font-size: 0.95rem; line-height: 1.5; }
.site-footer p { color: var(--color-on-dark-soft); font-size: 0.95rem; max-width: 30ch; margin-bottom: 8px; }
.site-footer a { color: var(--color-on-dark); }
.site-footer a:hover { color: var(--color-accent-on-dark); }
.footer-logo { width: 84px; height: 84px; padding: 5px; margin-bottom: 14px; background: #FFFFFF; border-radius: 18px; object-fit: contain; }
.footer-est { color: var(--color-on-dark-soft); }
.footer-hours li { display: flex; justify-content: space-between; gap: 14px; }
.footer-hours li span:last-child { color: var(--color-on-dark); white-space: nowrap; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem; color: var(--color-on-dark-soft);
}
.footer-links a + a { margin-left: 20px; }
.site-footer .footer-disclaimer { margin: 14px auto 0; text-align: center; max-width: none; font-size: 0.875rem; color: var(--color-on-dark); }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer p { max-width: none; }
}


/* ---------- 9. Menu, gallery, cart, checkout, accounts (components) ---------- */

/* ---- card grid (menu items / gallery) ---------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.category-label {
  font-family: var(--font-display);
  color: var(--color-brown);
  font-size: 1.25rem;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.menu-category-block { margin-top: 44px; }
.menu-category-block:first-child { margin-top: 8px; }
.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 720px) { .menu-list { grid-template-columns: 1fr; } }

.item-card {
  display: flex;
  gap: 16px;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.item-card:hover { transform: translateY(-3px); border-color: var(--color-brown); }
.item-card .thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #F6ECDD, #EAD9C2);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint);
  overflow: hidden;
  position: relative;
}
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.item-card .thumb svg { width: 30px; height: 30px; opacity: 0.5; }
.item-card .body { flex: 1; min-width: 0; }
.item-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item-card h3 { font-size: 1.02rem; margin-bottom: 2px; color: var(--color-heading); }
.item-card .price { font-family: var(--font-display); color: var(--color-brown-bright); font-weight: 600; white-space: nowrap; font-size: 0.98rem; }
.item-card .desc { font-size: 0.95rem; margin: 4px 0 0; }

/* ---- gallery + lightbox ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-thumb {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, #F6ECDD, #EAD9C2);
  padding: 0;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint);
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-thumb:hover { transform: translateY(-3px); border-color: var(--color-brown); }
.gallery-thumb-empty { cursor: default; }
.gallery-thumb-empty:hover { transform: none; border-color: var(--color-border); }

.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 20, 12, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-image { max-width: 88vw; max-height: 84vh; border-radius: var(--radius-sm); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  cursor: pointer;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 22px; right: 22px; width: 42px; height: 42px; font-size: 1.6rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 640px) { .lightbox-nav { width: 40px; height: 40px; } .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } }

/* ==========================================================================
   Menu filter bar (menu.php)
   ========================================================================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.filter-btn {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--color-text); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--color-brown-bright), var(--color-brown));
  color: #FFFFFF;
  border-color: transparent;
}
.menu-category-block { transition: opacity 0.15s ease; }
.menu-category-block.hidden { display: none; }

/* ==========================================================================
   Admin dashboard
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--color-dark);
  border-right: 1px solid var(--color-border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-brand {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-size: 1.15rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-brand span { color: var(--color-text-faint); font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; }
.admin-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 1.01rem;
  font-weight: 500;
}
.admin-nav-link:hover { background: var(--color-bg-glass); color: var(--color-heading); }
.admin-nav-link.active { background: rgba(158,69,32,0.15); color: var(--color-brown-bright); font-weight: 600; }
.admin-logout {
  margin-top: auto;
  padding: 10px 14px;
  color: var(--color-brown-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.99rem;
}
.admin-logout:hover { text-decoration: underline; }

.admin-main { padding: 36px; max-width: 1040px; }
.admin-main h1 { margin-bottom: 4px; }
.admin-topline { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.admin-topline p { margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .num { font-family: var(--font-display); font-size: 2rem; color: var(--color-heading); display: block; }
.stat-card .label { font-size: 0.92rem; color: var(--color-text-soft); }

.admin-section { margin-bottom: 56px; }
.admin-section h2 { font-size: 1.4rem; margin-bottom: 18px; }

.flash {
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  margin-bottom: 22px;
  font-size: 0.99rem;
  font-weight: 600;
}
.flash-success { background: rgba(62,122,88,0.15); border: 1px solid var(--color-green); color: var(--color-green-bright); }
.flash-error { background: rgba(158,69,32,0.15); border: 1px solid var(--color-brown); color: var(--color-brown-bright); }

.admin-form-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row-3 { grid-template-columns: 1fr; } }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.99rem; }
.data-table th {
  text-align: left; padding: 10px 12px; color: var(--color-text-faint);
  font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.data-table tr:hover td { background: rgba(158, 69, 32, 0.05); }
.data-table .muted { color: var(--color-text-faint); font-size: 0.92rem; }

.pill-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 700; background: rgba(62,122,88,0.18); color: var(--color-green-bright);
}

.icon-btn-sm {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-text-soft); padding: 6px 12px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.icon-btn-sm:hover { border-color: var(--color-brown); color: var(--color-brown-bright); }
.icon-btn-sm.danger:hover { border-color: #c0554a; color: #B3392B; }

/* Login page */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 380px;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.login-card .brand-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-family: var(--font-display); font-size: 1.2rem; color: var(--color-heading); }
.login-card .brand-mark svg { width: 30px; height: 30px; }

/* Order status badges */
.status-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; }
.status-processing { background: rgba(158,69,32,0.18); color: var(--color-brown-bright); }
.status-shipped     { background: rgba(62,122,88,0.18); color: var(--color-green-bright); }
.status-delivered   { background: rgba(62,122,88,0.30); color: #1F6B43; }
.status-cancelled   { background: rgba(120, 100, 80, 0.14); color: var(--color-text-faint); }

/* Inventory low-stock highlight */
.data-table tr.low-stock td { background: rgba(193,80,63,0.08); }
.low-stock-tag { color: #B3392B; font-weight: 700; font-size: 0.92rem; }

/* Select dropdowns, matching the .field input look */
.field select {
  width: 100%;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.status-select {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.93rem;
}

/* ---- item-card is a <button> now (for the quick-view click target) ---- */
.item-card {
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}

/* ---- quick-view modal (menu.php) ---- */
.quickview-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 20, 12, 0.62);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease;
}
.quickview-overlay.open { opacity: 1; visibility: visible; }
.quickview-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.quickview-thumb {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, #F6ECDD, #EAD9C2);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint);
  margin-bottom: 18px;
  position: relative;
}
.quickview-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.quickview-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  color: var(--color-heading); border-radius: 999px;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   SHOPPING CART — nav badge, Add buttons, toast, cart page, checkout,
   order confirmation, admin order table
   ========================================================================== */

/* ---- cart icon + count badge in the nav ---- */
.cart-btn { position: relative; }
.cart-btn.active { border-color: var(--color-brown); color: var(--color-brown-bright); }
.cart-count {
  position: absolute; top: -9px; right: -9px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px;
  background: var(--color-brown-bright);
  color: #FFFFFF;
  font-size: 0.92rem; font-weight: 700; line-height: 24px; text-align: center;
}
.cart-count.is-empty { display: none; }

/* ---- toast (small pop-up message) ---- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 24px);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-green);
  color: var(--color-heading);
  padding: 12px 22px; border-radius: 999px;
  font-size: 0.99rem; font-weight: 500;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.toast-error { border-color: var(--color-brown); }

/* ---- menu cards: the card itself is a box; the photo/text area is the
        "open details" button, with the Add button beside it ---- */
.item-card { align-items: center; cursor: default; padding: 12px 14px; }
.item-open {
  flex: 1; min-width: 0;
  display: flex; gap: 16px; align-items: center;
  background: none; border: none; padding: 0;
  color: inherit; font-family: inherit; text-align: left; cursor: pointer;
}
.item-open .body { display: block; flex: 1; min-width: 0; }
.item-open .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item-open h3 { font-size: 1.02rem; margin: 0 0 2px; color: var(--color-heading); }
.item-open .price { font-family: var(--font-display); color: var(--color-brown-bright); font-weight: 600; white-space: nowrap; font-size: 0.98rem; }
.item-open .desc { display: block; font-size: 0.95rem; margin: 4px 0 0; color: var(--color-text-soft); }
.item-open .thumb {
  width: 88px; height: 88px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #F6ECDD, #EAD9C2);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint); overflow: hidden; position: relative;
}
.item-open .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.item-open .thumb svg { width: 30px; height: 30px; opacity: 0.5; }

.add-form { flex-shrink: 0; }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--color-brown-bright), var(--color-brown));
  color: #FFFFFF; border: none; cursor: pointer;
  padding: 10px 16px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.add-btn svg { width: 19px; height: 19px; }
.add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(158,69,32,0.5); }
.add-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
@media (max-width: 480px) {
  .item-card { flex-wrap: wrap; }
  .add-form { width: 100%; }
  .add-btn { width: 100%; justify-content: center; }
}

/* ---- quick-view popup: title row + add-to-cart row ---- */
.qv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qv-add { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-bg-glass); overflow: hidden;
}
.qty-stepper button {
  width: 38px; height: 42px; background: none; border: none;
  color: var(--color-text); font-size: 1.15rem; cursor: pointer;
}
.qty-stepper button:hover { color: var(--color-brown-bright); }
.qty-stepper input {
  width: 42px; text-align: center; background: none; border: none;
  color: var(--color-heading); font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

/* ---- cart + checkout layout ---- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-alert {
  border-radius: var(--radius-sm); padding: 13px 18px; margin-bottom: 22px; font-size: 1.01rem; font-weight: 500;
}
.cart-alert a { color: inherit; text-decoration: underline; margin-left: 6px; }
.cart-alert-success { background: rgba(62,122,88,0.15); border: 1px solid var(--color-green); color: var(--color-green-bright); }
.cart-alert-error   { background: rgba(158,69,32,0.15); border: 1px solid var(--color-brown); color: var(--color-brown-bright); }

.cart-lines { display: grid; gap: 14px; }
.cart-line {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center;
  background: var(--color-bg-glass); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 14px 18px;
}
.cart-line .thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #F6ECDD, #EAD9C2);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint); overflow: hidden; position: relative;
}
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cart-line .thumb svg { width: 30px; height: 30px; opacity: 0.55; }
.cart-line .info h3 { font-size: 1.05rem; margin: 0 0 2px; color: var(--color-heading); }
.cart-line .info .cat { display: block; font-size: 0.92rem; color: var(--color-green-bright); }
.cart-line .info .unit { display: block; font-size: 0.93rem; color: var(--color-text-faint); margin-top: 2px; }
.cart-line .controls { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-total { font-family: var(--font-display); color: var(--color-brown-bright); font-weight: 600; font-size: 1.1rem; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line .thumb { width: 64px; height: 64px; }
  .cart-line .controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.qty-form {
  display: inline-flex; align-items: center;
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-glass);
}
.qty-form button {
  width: 34px; height: 34px; background: none; border: none;
  color: var(--color-text); font-size: 1.1rem; cursor: pointer;
}
.qty-form button:hover:not(:disabled) { color: var(--color-brown-bright); }
.qty-form button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-num { min-width: 28px; text-align: center; font-weight: 600; color: var(--color-heading); }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--color-text-faint); font-family: var(--font-body); font-size: 0.92rem; text-decoration: underline;
}
.link-btn:hover { color: var(--color-brown-bright); }

.summary-card, .checkout-card {
  background: var(--color-bg-glass); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 26px;
}
.summary-card { position: sticky; top: 92px; }
@media (max-width: 900px) { .summary-card { position: static; } }
.summary-card h2, .checkout-card h2 { font-size: 1.25rem; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--color-text-soft); }
.sum-row.total {
  border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 16px;
  color: var(--color-heading); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.summary-card .fine, .fine { font-size: 0.92rem; color: var(--color-text-faint); margin: 14px 0 18px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 10px; }
.summary-items { list-style: none; margin: 0 0 6px; padding: 0; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 1.01rem; color: var(--color-text-soft); }

.empty-state {
  text-align: center; padding: 64px 20px;
  background: var(--color-bg-glass); border: 1px dashed var(--color-border); border-radius: var(--radius);
}
.empty-state svg { width: 48px; height: 48px; color: var(--color-text-faint); margin-bottom: 8px; }
.empty-state p { margin: 0 auto 22px; }

/* ---- checkout form bits ---- */
.optional { color: var(--color-text-faint); font-weight: 400; }
.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option-card { display: block; cursor: pointer; position: relative; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span {
  display: block; padding: 14px 16px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-glass);
  transition: border-color 0.15s, background 0.15s;
}
.option-card strong { display: block; color: var(--color-heading); }
.option-card small { color: var(--color-text-faint); }
.option-card input:checked + span { border-color: var(--color-brown); background: rgba(158,69,32,0.10); }
.option-card input:focus-visible + span { outline: 2px solid var(--color-green-bright); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkout-card .btn { margin-right: 8px; }

/* ---- order confirmation ---- */
.success-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--color-bg-glass); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 44px 34px;
}
.success-card p { margin-left: auto; margin-right: auto; }
.success-icon {
  width: 64px; height: 64px; border-radius: 999px; margin: 0 auto 16px;
  background: rgba(62,122,88,0.18); border: 1px solid var(--color-green);
  display: flex; align-items: center; justify-content: center; color: var(--color-green-bright);
}
.success-icon svg { width: 30px; height: 30px; }
.order-ref {
  display: inline-block; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-brown-bright);
  border: 1.5px dashed var(--color-brown); border-radius: 999px; padding: 6px 22px; margin: 6px 0 14px;
}
.receipt { width: 100%; border-collapse: collapse; margin: 22px 0 8px; text-align: left; }
.receipt td { padding: 10px 0; border-bottom: 1px solid var(--color-border); color: var(--color-text-soft); }
.receipt td:last-child { text-align: right; }
.receipt-total td { color: var(--color-heading); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; border-bottom: none; }

/* ---- admin: order table extras ---- */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.table-wrap { overflow-x: auto; }
.order-items { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; color: var(--color-text-soft); }
.order-items li { padding: 1px 0; }
.source-tag {
  display: inline-block; font-size: 0.9rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--color-border); color: var(--color-text-faint); margin-top: 4px;
}
.source-tag.web { border-color: var(--color-green); color: var(--color-green-bright); }
.order-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.order-filter a {
  text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 0.92rem;
  border: 1px solid var(--color-border); color: var(--color-text-soft); background: var(--color-bg-glass);
}
.order-filter a.active { border-color: var(--color-brown); color: var(--color-brown-bright); }

/* ==========================================================================
   Customer accounts: register / sign in / my account
   ========================================================================== */
.account-btn.is-signed-in { background: var(--color-green-bright); border-color: var(--color-green-bright); color: #FFFFFF; }
.account-btn.is-signed-in:hover { background: var(--color-green); }

.auth-card { max-width: 600px; margin: 0 auto; }
.auth-intro { color: var(--color-text-soft); margin-bottom: 20px; }
.auth-alt { margin: 22px 0 0; color: var(--color-text-soft); }
.auth-alt a, .account-note a { color: var(--color-brown); font-weight: 700; text-decoration: underline; }
.account-note { margin: 0 0 18px; }
.field-hint { display: block; margin-top: 6px; color: var(--color-text-faint); font-size: 0.92rem; }
.field input[disabled] { background: var(--color-bg-soft); color: var(--color-text-faint); cursor: not-allowed; }
.cart-alert div + div { margin-top: 4px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; cursor: pointer; color: var(--color-text-soft); line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--color-brown); }

.account-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
.account-side .checkout-card { margin-bottom: 24px; }
.account-main h2 { font-size: 1.4rem; margin-bottom: 16px; }

.order-card {
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.order-ref { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--color-heading); }
.order-meta { color: var(--color-text-faint); font-size: 0.95rem; }
.order-items { list-style: none; padding: 0; margin: 0 0 12px; color: var(--color-text-soft); }
.order-items li { padding: 3px 0; }
.order-total { display: flex; justify-content: space-between; border-top: 1px solid var(--color-border); padding-top: 12px; color: var(--color-text-soft); }
.order-total strong { color: var(--color-heading); }
.empty-orders { background: var(--color-bg-soft); border: 1px dashed var(--color-border); border-radius: var(--radius); padding: 24px; }


/* ---------- 10. Staff dashboard + finishing touches ---------- */
.admin-sidebar { background: var(--color-dark); border-right: none; }
.admin-brand { color: #FFFFFF; font-size: 1.1rem; line-height: 1.25; flex-wrap: wrap; }
.admin-brand span { color: var(--color-on-dark-soft); }
.admin-nav-link { color: var(--color-on-dark); }
.admin-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.admin-nav-link.active { background: rgba(227, 149, 95, 0.18); color: var(--color-accent-on-dark); }
.admin-logout { color: var(--color-accent-on-dark); }
.admin-form-card.narrow { max-width: 520px; }

.login-card .brand-mark { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.login-card .brand-mark img { width: 84px; height: 84px; object-fit: contain; }
.login-card .brand-mark span { font-family: var(--font-display); font-size: 1.35rem; color: var(--color-heading); }
.login-back { text-align: center; margin: 18px 0 0; max-width: none; }

.toast { background: var(--color-dark); color: #FFFFFF; }
.lightbox-close, .lightbox-nav { color: #FFFFFF; }
.quickview-close { background: rgba(60, 38, 18, 0.08); color: var(--color-heading); }
.qv-title { margin: 0; font-size: 1.35rem; }
.qv-price { font-size: 1.15rem; }
.qv-desc { margin-top: 10px; }
.qv-submit { flex: 1; }

.danger-zone { border-color: #EBC9C3; }
.danger-zone h2 { color: #B3392B; }

/* a few pages still print a white inline colour; make it readable on the light pages */
[style*="color:#fff"] { color: var(--color-heading) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the shopping-cart icon is drawn a little larger so it reads clearly on phones */
.cart-btn svg { width: 25px; height: 25px; }

/* ==========================================================================
   Menu v2: search, scrolling section buttons, choices, floating cart
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.no-scroll { overflow: hidden; }
.hidden { display: none !important; }

.menu-header { padding-bottom: 8px; }
.menu-tools {
  position: sticky; top: 76px; z-index: 40;
  background: rgba(251, 247, 241, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0 10px;
}
@media (max-width: 960px) { .menu-tools { top: 68px; } }
.menu-search {
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF; border: 1.5px solid var(--color-border); border-radius: 999px;
  padding: 0 16px; max-width: 520px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.menu-search:focus-within { border-color: var(--color-brown); box-shadow: 0 0 0 3px rgba(158, 69, 32, 0.15); }
.menu-search svg { width: 20px; height: 20px; color: var(--color-text-faint); flex-shrink: 0; }
.menu-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  padding: 12px 0; font-family: var(--font-body); font-size: 1rem; color: var(--color-text);
}
.menu-search input:focus-visible { outline: none; }

.menu-tools .filter-bar {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 12px 0 0;
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; padding-bottom: 6px;
}
.menu-tools .filter-bar::-webkit-scrollbar { height: 6px; }
.menu-tools .filter-bar::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 6px; }
.menu-tools .filter-btn {
  flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap;
  background: #FFFFFF; color: var(--color-text); border: 1.5px solid var(--color-border);
  padding: 9px 16px; font-size: 0.92rem; font-weight: 600; border-radius: 999px;
}
.menu-tools .filter-btn:hover { border-color: var(--color-brown); color: var(--color-brown); }
.menu-tools .filter-btn.active { background: var(--color-brown); border-color: var(--color-brown); color: #FFFFFF; }

.takeout-banner {
  display: flex; align-items: center; gap: 10px; max-width: none;
  margin: 18px 0 6px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #FBEFE3; border: 1px solid #EBCFB3; color: #6B3A1A; font-size: 0.95rem;
}
.takeout-banner svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-brown); }
.takeout-note { color: #6B3A1A; }

.category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; }
.category-head .category-label { border-bottom: 0; padding-bottom: 0; }
.category-count { color: var(--color-text-faint); font-size: 0.875rem; white-space: nowrap; }
.menu-category-block { scroll-margin-top: 190px; }

.item-card { padding: 12px 14px; }
.item-open .thumb { width: 96px; height: 96px; background: var(--color-bg-soft); }
.item-open .thumb .thumb-logo { position: static; width: 58px; height: 58px; object-fit: contain; opacity: 0.55; mix-blend-mode: multiply; }
.item-open .item-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; color: var(--color-heading); }
.item-open .price { font-family: var(--font-body); font-weight: 700; color: var(--color-brown); font-size: 1rem; }
.item-open .desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.9rem; line-height: 1.45; margin-top: 4px;
}
.choice-hint {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: rgba(47, 107, 74, 0.10); color: var(--color-green-bright); font-size: 0.8rem; font-weight: 600;
}
.add-btn { background: var(--color-brown); padding: 10px 16px; font-size: 0.95rem; }
.add-btn:hover { background: #86391A; }
.add-btn svg { width: 17px; height: 17px; }
.line-option { display: block; font-size: 0.9rem; color: var(--color-green-bright); font-weight: 600; }

/* popup */
.quickview-card { max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px; }
.quickview-thumb { aspect-ratio: 4 / 3; background: var(--color-bg-soft); }
.quickview-thumb.is-logo img, .quickview-thumb .thumb-logo { position: static; width: 110px; height: 110px; object-fit: contain; opacity: 0.6; mix-blend-mode: multiply; }
.qv-choices { border: 0; padding: 0; margin: 16px 0 4px; }
.qv-choices legend { font-weight: 700; font-size: 0.95rem; color: var(--color-heading); margin-bottom: 10px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { position: relative; cursor: pointer; }
.choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--color-border); background: #FFFFFF; font-size: 0.92rem; font-weight: 600; color: var(--color-text);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.choice-chip:hover span { border-color: var(--color-brown); }
.choice-chip input:checked + span { background: var(--color-brown); border-color: var(--color-brown); color: #FFFFFF; }
.choice-chip input:focus-visible + span { outline: 3px solid var(--color-brown); outline-offset: 2px; }
.qv-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.qv-actions .qv-submit { flex: 1; }

/* floating cart button (phones) */
.cart-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  display: none; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--color-dark); color: #FFFFFF; font-weight: 700; box-shadow: 0 14px 28px -12px rgba(30, 20, 12, 0.6);
}
.cart-fab:hover { color: #FFFFFF; background: #3A2518; }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab .cart-count { position: static; background: var(--color-accent-on-dark); color: var(--color-dark); }
.cart-fab.is-empty { display: none !important; }
@media (max-width: 760px) {
  .cart-fab { display: inline-flex; }
  .menu-body { padding-bottom: 96px; }
  .toast { bottom: 84px; }
}
@media (max-width: 560px) {
  .menu-tools { padding: 10px 0 8px; }
  .menu-search input { padding: 10px 0; font-size: 1rem; }
  .item-open .thumb { width: 80px; height: 80px; }
  .item-card { flex-wrap: nowrap; align-items: center; }
  .add-form { width: auto; }
  .add-btn { width: auto; padding: 9px 13px; }
  .add-btn svg { width: 15px; height: 15px; }
  .item-open .row { flex-direction: column; gap: 2px; }
  .menu-category-block { scroll-margin-top: 170px; }
}

/* gallery groups */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gallery-filter .filter-btn {
  background: #FFFFFF; color: var(--color-text); border: 1.5px solid var(--color-border);
  padding: 9px 16px; font-size: 0.92rem; font-weight: 600; border-radius: 999px; cursor: pointer;
}
.gallery-filter .filter-btn.active { background: var(--color-brown); border-color: var(--color-brown); color: #FFFFFF; }
.gallery-count { color: var(--color-text-faint); font-size: 0.9rem; margin: 0 0 14px; }
.lightbox-caption { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(90vw, 720px); text-align: center; color: #F3EEE3; font-size: 0.95rem; max-width: none; }
.qv-add { display: block; margin-top: 4px; }

/* ---- polish (real-menu update) ---- */
.quickview-close {
  z-index: 3; top: 10px; right: 10px; width: 40px; height: 40px;
  background: #FFFFFF; border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px -4px rgba(40, 24, 10, 0.45);
  display: inline-flex; align-items: center; justify-content: center;
}
.quickview-close:hover { background: var(--color-bg-soft); }
.toast {
  border-radius: 14px; width: max-content; max-width: min(420px, calc(100% - 32px));
  line-height: 1.4; padding: 12px 18px;
}
/* Desktop: show every menu section button at once (phones keep the sideways scroll) */
@media (min-width: 1024px) {
  .menu-tools .filter-bar { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .menu-tools .filter-btn { padding: 7px 14px; font-size: 0.9rem; }
}

/* search box and takeout note without icons */
.menu-search { padding: 0 18px; }
.takeout-banner { display: block; }
.cart-fab { gap: 10px; }
