/* ============================================================
   Overripe — stylesheet
   ============================================================ */

/* Emynam Crew is a licensed font (Alit Design). Put the web-licensed
   file at frontend/fonts/emynam-crew.woff2. Until it exists, the
   browser falls back to the serif below without breaking the page. */
@font-face {
  font-family: 'Emynam Crew';
  src: url('fonts/emynam-crew.woff2') format('woff2');
  font-display: swap;
}

:root {
  --banana-cream: #FFFFFF;
  --ink: #000000;
  --gold: #E3A72F;
  --gold-deep: #C98A1B;
  --crust: #000000;
  --caramel: #3A3A3A; /* neutral charcoal, used for buttons and links */
  --paper: #FFFFFF;
  --line: rgba(0, 0, 0, 0.18);
  --line-soft: rgba(0, 0, 0, 0.08);

  /* Brand green from the logo. Header and primary actions use it. */
  --sage: #628662;
  --sage-deep: #4C6B4C;
  --on-sage: #FFFCF3;

  --font-brand: 'Emynam Crew', 'Fraunces', serif;
  --font-display: 'Fraunces', serif;
  --font-body: 'Karla', sans-serif;
  --font-receipt: 'Space Mono', monospace;

  /* One spacing scale, used everywhere, so the page has a steady rhythm
     instead of a different gap at every join. */
  --s1: 6px;
  --s2: 12px;
  --s3: 20px;
  --s4: 32px;
  --s5: 52px;
  --s6: 84px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--banana-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--caramel); }

/* Visible keyboard focus everywhere — never remove this. */
:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 3px;
}

/* The hidden attribute must beat any display rule below, or modals open
   and never close. */
[hidden] { display: none !important; }

/* ---------- Header ---------- */

.site-header {
  background: var(--sage);
  color: var(--on-sage);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* The mark sits before the name as one lockup. */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--on-sage);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

/* The logo file is the wordmark itself, so it is sized by height and
   never stretched. Its background matches the header green exactly. */
.wordmark img,
.wordmark svg {
  height: 58px;
  width: auto;
  display: block;
  flex: none;
}

.header-actions { display: flex; gap: 10px; align-items: center; }

.header-link-btn {
  font-family: var(--font-body);
  font-weight: 700;
  background: none;
  border: 1px solid rgba(255, 252, 243, 0.55);
  color: var(--on-sage);
  border-radius: 999px;
  padding: 10px 17px;
  cursor: pointer;
  font-size: 0.92rem;
  min-height: 42px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.header-link-btn:hover { border-color: var(--on-sage); background: rgba(255, 252, 243, 0.14); }

.cart-toggle {
  font-family: var(--font-body);
  font-weight: 700;
  background: var(--paper);
  color: var(--sage-deep);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.cart-toggle:hover { background: var(--banana-cream); }

.cart-count {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero ---------- */

.hero { padding: var(--s6) 24px var(--s5); }

.hero-kicker {
  font-style: italic;
  color: var(--crust);
  margin: 0 0 var(--s3);
  font-size: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s3);
  max-width: 13ch;
}

.hero-sub {
  max-width: 50ch;
  font-size: 1.12rem;
  color: var(--crust);
  margin: 0;
}

/* ---------- Sections ---------- */

.section { padding: var(--s5) 24px; border-top: 1px solid var(--line); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s1);
}

.section-intro {
  color: var(--crust);
  margin: 0 0 var(--s4);
  max-width: 58ch;
}

/* ---------- Flavor cards ---------- */

.flavor-grid { display: grid; gap: var(--s3); }

.flavor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
}

/* The photo is the selling point, so it gets real estate. A missing photo
   falls back to the gold field rather than a broken-image icon, because
   these are CSS backgrounds. */
.flavor-photo {
  background-color: var(--gold);
  background-size: cover;
  background-position: center;
  min-height: 210px;
}

/* Real photos are in place, so the "add photo" prompt stays off. Delete
   this rule if you ever want the filename hint back while swapping images. */
.flavor-photo-placeholder { display: none; }

.flavor-body {
  padding: var(--s3) var(--s4) var(--s3) var(--s3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flavor-body h3 {
  font-family: var(--font-display);
  margin: 0 0 2px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.flavor-subtitle {
  color: var(--caramel);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.flavor-desc {
  color: var(--crust);
  font-size: 0.96rem;
  margin: 0 0 var(--s3);
  max-width: 44ch;
}

.flavor-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.flavor-controls select {
  font-family: var(--font-receipt);
  font-size: 0.92rem;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--banana-cream);
  color: var(--ink);
  flex: 1;
  min-width: 190px;
  min-height: 46px;
}

.flavor-add-btn {
  background: var(--caramel);
  color: var(--paper);
  border: none;
  border-radius: 7px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
  transition: background 0.15s ease;
}
.flavor-add-btn:hover { background: var(--gold-deep); }

.flavor-availability {
  font-family: var(--font-receipt);
  font-size: 0.78rem;
  color: var(--crust);
  margin: 0 0 var(--s2);
}
.flavor-availability.is-limited { color: var(--caramel); font-weight: 700; }

/* ---------- This week (if the weekly menu is enabled) ---------- */

.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: var(--s2); }

.week-day {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
}
.week-day.is-today { border-color: var(--gold-deep); border-width: 2px; padding: 14px 15px; }

.week-day-name {
  font-family: var(--font-receipt);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.week-day-today-tag { color: var(--gold-deep); font-size: 0.7rem; letter-spacing: 0; }

.week-day ul { margin: 0; padding: 0; list-style: none; }
.week-day li { font-size: 0.88rem; padding: 3px 0; color: var(--crust); }
.week-day li::before { content: "· "; color: var(--gold-deep); }
.week-day .week-day-none { font-style: italic; opacity: 0.7; }

/* ---------- Reviews ---------- */

.review-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
}

.review-stars { color: var(--gold-deep); letter-spacing: 3px; margin: 0 0 var(--s2); font-size: 0.95rem; }

.review-quote {
  margin: 0 0 var(--s3);
  font-size: 1rem;
  flex: 1;
}

.review-author { font-family: var(--font-receipt); font-size: 0.82rem; color: var(--crust); }

/* ---------- Contact ---------- */

.contact-block { display: flex; flex-direction: column; gap: var(--s1); font-size: 1.04rem; }
.contact-block a { font-weight: 700; }

/* ---------- Receipt rows, buttons ---------- */

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-receipt);
  font-size: 0.92rem;
  padding: 6px 0;
  gap: var(--s2);
}

.ticket-total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px dashed var(--line);
  margin-top: var(--s1);
  padding-top: 14px;
}

.btn-primary {
  width: 100%;
  margin-top: var(--s3);
  background: var(--sage);
  color: var(--paper);
  border: none;
  border-radius: 7px;
  padding: 15px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  min-height: 50px;
  transition: background 0.15s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--sage-deep); }
.btn-primary:disabled { background: var(--line); color: var(--crust); cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  margin-top: var(--s3);
  background: none;
  color: var(--crust);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  min-height: 46px;
}
.btn-secondary:hover { border-color: var(--crust); }

.link-btn {
  background: none;
  border: none;
  color: var(--caramel);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px;
}

/* ---------- Cart drawer ---------- */

.overlay { position: fixed; inset: 0; background: rgba(58, 42, 24, 0.45); z-index: 20; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(410px, 100%);
  background: var(--paper);
  z-index: 30;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 28px rgba(58, 42, 24, 0.16);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-inner { display: flex; flex-direction: column; height: 100%; padding: var(--s3); }

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s3);
}
.cart-drawer-header h2 { font-family: var(--font-display); margin: 0; font-size: 1.4rem; font-weight: 600; }

.cart-drawer-header button,
.modal-header button {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  line-height: 1;
  border-radius: 6px;
}
.cart-drawer-header button:hover,
.modal-header button:hover { background: var(--banana-cream); }

.cart-items { flex: 1; overflow-y: auto; }
.cart-empty { color: var(--crust); font-style: italic; }

.cart-line { padding: var(--s2) 0; border-bottom: 1px dashed var(--line); }
.cart-line-top { display: flex; justify-content: space-between; gap: var(--s2); font-family: var(--font-receipt); font-size: 0.9rem; }
.cart-line-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

.cart-line-controls button {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: var(--banana-cream);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}
.cart-line-controls button:hover { border-color: var(--crust); }

.cart-line-remove {
  background: none;
  border: none;
  color: var(--caramel);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.84rem;
  text-decoration: underline;
  margin-left: auto;
  padding: 4px;
}

.cart-summary { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Modals ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 24, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 20px;
}

.modal {
  background: var(--paper);
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: var(--s4);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(58, 42, 24, 0.22);
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.modal-header h2 { font-family: var(--font-display); margin: 0; font-size: 1.5rem; font-weight: 600; }

#checkoutForm label,
#historyForm label,
#signInForm label,
#registerForm label,
#forgotForm label,
#resetForm label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: var(--s3) 0 var(--s1);
}

.modal input,
.modal select {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--banana-cream);
  color: var(--ink);
  min-height: 48px;
}

.field-hint { font-size: 0.84rem; color: var(--crust); margin: var(--s1) 0 0; }

.form-error {
  background: #F7DCD3;
  color: #93391C;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 0.9rem;
  margin-top: var(--s3);
}

.form-success {
  background: #DFEFD8;
  color: #35612D;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 0.9rem;
  margin-top: var(--s3);
}

.secure-note { font-size: 0.84rem; color: var(--crust); text-align: center; margin-top: var(--s2); }

.checkout-who {
  font-family: var(--font-receipt);
  font-size: 0.86rem;
  background: var(--banana-cream);
  border-radius: 7px;
  padding: 11px 13px;
  margin: 0;
  color: var(--crust);
}

.account-subhead {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: var(--s4) 0 var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

.saved-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-receipt);
  font-size: 0.86rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 13px;
  margin-bottom: 8px;
}

/* ---------- Loyalty + order history ---------- */

.loyalty-banner {
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 var(--s2);
  font-size: 0.93rem;
}
.loyalty-banner strong { font-family: var(--font-receipt); }

.history-order {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.history-order-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-receipt);
  font-weight: 700;
  margin-bottom: 4px;
  gap: var(--s2);
}
.history-order-items { color: var(--crust); }

/* ---------- Footer ---------- */

.site-footer {
  padding: var(--s4) 24px var(--s5);
  color: var(--crust);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: var(--s3);
}

/* ---------- Admin ---------- */

.admin-wrap { max-width: 1000px; margin: 0 auto; padding: var(--s4) 24px; }
.admin-login { max-width: 360px; margin: var(--s6) auto; text-align: center; padding: 0 24px; }
.admin-login input {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: var(--s3) 0;
  font-family: var(--font-body);
  min-height: 48px;
  background: var(--paper);
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: var(--s3); }
.admin-table th,
.admin-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-family: var(--font-receipt); font-size: 0.76rem; color: var(--crust); font-weight: 700; }

/* ============================================================
   Mobile — most customers arrive on a phone
   ============================================================ */

@media (max-width: 720px) {
  body { font-size: 16px; }

  .wrap { padding: 0 18px; }
  .hero { padding: var(--s5) 18px var(--s4); }
  .section { padding: var(--s4) 18px; }

  .header-row { padding-top: 12px; padding-bottom: 12px; }
  .wordmark { font-size: 1.15rem; }
  .wordmark img, .wordmark svg { height: 46px; }
  .header-link-btn, .cart-toggle { padding: 9px 14px; font-size: 0.88rem; }

  /* Photo on top, full width, so the food is the first thing seen. */
  .flavor-card { grid-template-columns: 1fr; }
  .flavor-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .flavor-body { padding: var(--s3) var(--s3) var(--s4); }

  .flavor-controls select { min-width: 0; width: 100%; flex: 1 1 100%; }
  .flavor-add-btn { width: 100%; }

  .modal { padding: var(--s3); border-radius: 10px; max-height: 92vh; }
  .modal-overlay { padding: 12px; align-items: flex-start; padding-top: 24px; }

  .cart-drawer-inner { padding: var(--s3) 18px; }

  .review-grid { grid-template-columns: 1fr; }

  /* Tables don't fit a phone — let this one scroll instead of overflowing. */
  .admin-wrap { overflow-x: auto; }
}

@media (max-width: 400px) {
  .header-actions { gap: 7px; }
  .header-link-btn, .cart-toggle { padding: 9px 12px; font-size: 0.84rem; }
  .wordmark { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-drawer { transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Added: hero logo, price and cream cheese controls, boxes
   ============================================================ */

/* The logo keeps its own green background, so it sits in a green tile
   that reads as a sticker on the white page. */
.hero-logo {
  display: block;
  width: min(300px, 78%);
  height: auto;
  border-radius: 14px;
  margin: 0 0 var(--s3);
}

.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: var(--s1);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  min-height: 44px;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--sage);
  margin: 0;
  flex: none;
}
.check-note { color: var(--crust); font-size: 0.88rem; }

.flavor-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: var(--s1) 0 0;
  width: 100%;
}

/* Build-your-own and mini boxes */
.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s3);
}
.fulfillment { border: none; padding: 0; margin: var(--s3) 0 var(--s1); }
.fulfillment legend { font-weight: 700; font-size: 0.9rem; padding: 0; margin-bottom: var(--s1); }
.fulfillment .check-row { min-height: 44px; }
.box-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--s3);
}
.box-card h3 { font-family: var(--font-display); margin: 0 0 var(--s1); }
.box-builder { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); }
.box-builder select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  min-height: 46px;
  width: 100%;
}
.slot-grid {
  display: grid;
  gap: var(--s1);
  margin-top: var(--s1);
}
.slot {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: var(--s1) 0;
  border-bottom: 1px dashed var(--line);
}
.slot select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  min-height: 42px;
  min-width: 0;
}
.slot-num {
  font-family: var(--font-receipt);
  font-weight: 700;
  color: var(--sage-deep);
}
.box-builder .flavor-add-btn { margin-top: var(--s1); }

.cart-line-detail {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--crust);
}

/* Phone: boxes and slots stack, and the checkbox stays easy to tap. */
@media (max-width: 720px) {
  .hero-logo { width: min(240px, 80%); }
  .box-card { padding: var(--s3); }
  .slot { grid-template-columns: 24px 1fr; }
  .slot .check-row { grid-column: 2; }
}

/* ============================================================
   Cover: full-width photo, logo, and menu panel (Canva layout)
   ============================================================ */

.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #3A2A18; /* shows until the photo is added */
  /* A light dark wash keeps the logo and the cream panel readable. */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    var(--cover-photo, none);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--on-sage);
}

.cover-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 22px 24px;
  flex-wrap: wrap;
}
.cover-top .wordmark { color: #FFFFFF; font-size: 3rem; }
.cover-top .header-link-btn {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.15);
}
.cover-top .header-link-btn:hover { background: rgba(0, 0, 0, 0.35); }

.cover-panel {
  margin-top: auto;
  margin-bottom: auto;
  width: min(440px, 88vw);
  background: #F8F4EE;
  padding: 44px 36px 52px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.cover-btn,
.cover-link {
  font-family: 'Poppins', var(--font-body), sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  color: #3A3A3A;
  text-decoration: none;
  letter-spacing: 0.02em;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-btn {
  border: 1px solid #7A7A7A;
  transition: background 0.15s ease, color 0.15s ease;
}
.cover-btn:hover { background: #3A3A3A; color: #F8F4EE; }
.cover-link { min-height: 40px; }
.cover-link:hover { text-decoration: underline; }

/* Keep the cover's text legible and its buttons usable on a phone. */
@media (max-width: 720px) {
  .cover-top { padding: 16px; justify-content: center; }
  .cover-top .wordmark { font-size: 2.4rem; }
  .cover-panel { padding: 32px 22px 36px; gap: 16px; }
  .cover-btn { font-size: 1.05rem; }
}

/* ============================================================
   Whole-site background: the photo sits behind every section.
   Each content section sits on a white panel so text stays readable.
   ============================================================ */

html { background: #3A2A18; }

body {
  background: transparent;
  min-height: 100vh;
}

/* A fixed photo layer behind the whole page. It stays put while people
   scroll, so the photo covers every section. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section,
.hero,
.site-footer {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.section {
  max-width: 880px;
  margin: 24px auto;
}

/* The cover keeps its own photo and panel, so it doesn't get a card. */
.cover {
  margin-bottom: 0;
}

.site-footer {
  margin: 24px auto 32px;
  max-width: 880px;
  color: #000000;
}

/* Some phones don't support a fixed background; scroll it instead. */
@media (max-width: 720px) {
  .section { margin: 16px 12px; }
  .site-footer { margin: 16px 12px 24px; }
}

/* ============================================================
   Three pages: home (logo + menu), and inside pages with a nav bar
   ============================================================ */

.cover-center {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 16px 64px;
}

.cover-logo {
  display: block;
  width: min(440px, 80vw);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

.cover-center .cover-panel {
  margin: 0;
  width: min(440px, 88vw);
}

/* Inside pages: name on the left, page links in the middle, cart on the right. */
.page-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.page-nav a {
  color: var(--on-sage);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.page-nav a:hover { border-bottom-color: var(--on-sage); }

.page-main {
  padding: var(--s4) 0 var(--s5);
}

@media (max-width: 720px) {
  .cover-logo { width: min(340px, 84vw); }
  .cover-center { gap: 22px; padding: 16px 16px 48px; }
  .page-nav { gap: 14px; }
  .page-nav a { font-size: 0.92rem; }
  .site-header .header-row { justify-content: center; }
}

/* The home cover is see-through so the page photo shows behind it. */
.cover {
  background: none;
}

/* ============================================================
   Cart: a neutral banana icon instead of text
   ============================================================ */
.cart-toggle {
  background: #F8F4EE;
  color: #3A3A3A;
}
.cart-toggle:hover { background: #FFFFFF; }
.cart-icon {
  width: 30px;
  height: 30px;
  color: #6B6B6B;
  flex: none;
}

/* ============================================================
   Inside pages: the header sits on the photo, like the home page
   ============================================================ */
.site-header {
  background: transparent;
  border: 0;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}
.site-header .wordmark img {
  display: block;
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}
.site-header .header-link-btn {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.15);
}
.site-header .header-link-btn:hover { background: rgba(0, 0, 0, 0.35); }
.page-nav a {
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.page-nav a:hover { border-bottom-color: #FFFFFF; }

/* Neutral accents: the cart count badge and hover states, no orange. */
.cart-count { background: #E2DDD3; color: #3A3A3A; }
.flavor-add-btn:hover, .btn-primary:hover:not(:disabled) { background: #000000; }
