:root{
  /* Base palette */
  --bg: #FFF8F0;             /* warm cream */
  --surface: #FFFFFF;         /* pure white */
  --text: #1F2937;            /* slate-800 */
  --muted: #6B7280;           /* slate-500 */

  /* Brand & accents */
  --brand: #2E7D32;           /* fresh herb green (AA contrast on white) */
  --brand-contrast: #FFFFFF;
  --brand-600: #27632A;       /* hover/active */
  --accent: #FF8A4C;          /* apricot */
  --accent-ink: #662E12;

  /* UI */
  --ring: rgba(46, 125, 50, .18); /* green-ish focus ring */
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --radius: 16px;

  /* Badges & chips */
  --badge-bg: #FFF0E7;        /* soft apricot tint */
  --badge-ink: #7A3419;
}

/* Body & wrappers (unchanged except colors) */
body{
  margin:0; background: var(--bg); color: var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.45;
}
.wrap{ max-width: 1140px; margin:0 auto; padding:16px; }

/* Header / footer with subtle separators */
.site-header{
  position: sticky; top:0; z-index:20;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #F1E8DE;
}
.site-header .wrap{ display:flex; align-items:center; gap:16px; }
.brand{
  text-decoration:none; color: var(--brand); font-weight:800; letter-spacing:.2px;
}
.brand:hover{ opacity:.9; }
.nav{ margin-left:auto; display:flex; gap:18px; }
.nav a{ color: var(--text); text-decoration:none; opacity:.82; font-weight:600; }
.nav a:hover{ opacity:1; color: var(--brand); }

.site-main .wrap{ padding-top: 20px; padding-bottom: 40px; }
.page-title{ margin: 8px 0 16px; font-size: clamp(22px,3vw,32px); font-weight:800; }

.site-footer{
  border-top: 1px solid #F1E8DE; background:#FFFCF7;
}
.site-footer .wrap{ text-align:center; color: var(--muted); }
.site-footer a{ color: var(--brand); }

/* Grid stays the same */
.cards-grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card tweaks for premium feel */
.card{
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateY(6px);
  opacity:.25;
  transition: transform .6s cubic-bezier(.2,.6,.2,1), opacity .6s ease, box-shadow .2s ease;
}
.card.is-visible{ transform: translateY(0); opacity:1; }
.card:hover{ box-shadow: 0 16px 40px rgba(17,24,39,.10); }

/* Media: rounded top corners & gentle overlay to make text badges pop */
.card-media{ position:relative; aspect-ratio: 16/9; background:#F7EFE7; overflow:hidden; }
.card-media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform: scale(1.01);
  transition: transform .6s ease;
}
.card:hover .card-media img{ transform: scale(1.03); }

/* Price badge with appetizing accent */
.price-badge{
  position:absolute; right:12px; top:12px;
  background: var(--accent); color:#fff;
  padding:7px 12px; border-radius:9999px; font-weight:700;
  box-shadow: 0 4px 16px rgba(255,138,76,.35);
  font-variant-numeric: tabular-nums;
}

/* Body content */
.card-body{ padding: 14px; }
.card-title{ margin: 4px 0; font-size: 18px; font-weight:800; letter-spacing:.2px; }
.card-subtle{ color: var(--muted); margin: 0 0 8px; }

/* Details panel with soft divider */
.details{
  overflow:hidden;
  transition: max-height .35s ease;
  border-top: 1px dashed #F1E8DE;
  padding-top: 8px; margin-top: 8px;
}
.details .desc{ margin: 6px 0 8px; }
.details .meta{ color: var(--muted); margin: 0 0 6px; }

/* Controls */
.qty-row{ display:flex; align-items:center; gap:10px; margin-top: 10px; }
.qty-input{
  width:76px; text-align:center; padding:8px 10px;
  border:1px solid #E6DCCE; border-radius:12px; background:#FFFDF9; font-size:16px;
  outline: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02) inset;
}
.qty-input:focus{ border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }

/* Buttons */
.btn{
  border:0; border-radius: 9999px; padding: 10px 16px; cursor:pointer; font-weight:700;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}
.btn:active{ transform: translateY(1px) scale(.98); }

.btn.-primary{
  background: var(--brand); color: var(--brand-contrast);
  box-shadow: 0 6px 20px rgba(46,125,50,.25);
}
.btn.-primary:hover{ background: var(--brand-600); }

/* PayPal-specific style */
.btn.-primary[data-checkout] {
  background: #0070ba; /* PayPal blue */
  color: white;
  box-shadow: 0 6px 20px rgba(0, 112, 186, 0.25);
}

.btn.-primary[data-checkout]:hover {
  background: #005c99; /* slightly darker blue */
}

.btn.-primary[data-checkout]:active {
  background: #004a80; /* even darker for press */
}

.btn.-ghost{
  background:#FFF3E9; color:#5C2A12; border:1px solid #FFE2CF;
}
.btn.-ghost:hover{ background:#FFE9D8; }

.link-toggle{
  background:transparent; border:0; color: var(--brand); padding: 10px 0; cursor:pointer; font-weight:700;
}

/* Floating cart */
/* Floating cart (base = green) */
.fab{
  position: fixed; right: 16px; bottom: 16px;
  display:inline-flex; gap:8px; align-items:center;
  background: var(--brand); /* green when empty (disabled) */
  color: var(--brand-contrast);
  padding: 12px 16px; border-radius: 9999px; text-decoration:none;
  box-shadow: 0 10px 30px rgba(46,125,50,.25);
  transition: background .2s ease, opacity .2s ease, filter .2s ease, transform .08s ease, box-shadow .2s ease;
}

/* Disabled state (empty cart) */
.fab.-disabled{
  opacity: .55;
  pointer-events: none;
  filter: grayscale(0.2);
}

/* ✅ Active (cart has items): apricot orange */
.fab.-active {
  background: var(--accent); /* orange */
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,138,76,.35);
}

.fab.-active:hover {
  background: var(--accent-dark, #e86e35); /* slightly darker orange */
  box-shadow: 0 12px 32px rgba(255,138,76,.45); /* slightly bigger shadow */
}

.fab.-active:active {
  background: var(--accent-darker, #d95a24); /* even darker for click */
  transform: translateY(1px) scale(.98);
}


#cart-count{ font-variant-numeric: tabular-nums; }

.opt-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space between each label */
    margin-top: 0.75rem;
  }
  .opt-item {
    display: flex;
    gap: 0.5rem; /* space between checkbox and text */
    align-items: flex-start;
  }
  .opt-item input {
    margin-top: 0.2rem; /* align checkbox with first line of text */
  }
  .opt-item span {
    line-height: 1.4;
  }

  /* --- Form layout --- */
.form-group { display: block; }
.label { display:block; font-weight:700; margin-bottom: 6px; }
.hint { margin-top: 6px; color: var(--muted); font-size: 0.925rem; }

/* Date input styling consistent with .input */
.input[type="date"] {
  appearance: none;
  width: 100%; max-width: 320px;
  background: #FFFDF9;
  border: 1px solid #E6DCCE;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px; color: var(--text);
  line-height: 1.2;
}
.input[type="date"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Checkbox row (replaces inline style="display:flex;gap:...") */
.checkrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}
.checkrow input[type="checkbox"] {
  /* better vertical alignment with first line of text */
  margin-top: 2px;
  accent-color: var(--brand);
}
.checkrow span { line-height: 1.45; }

/* Make all checkboxes the same size & color */
input[type="checkbox"] {
  accent-color: var(--brand); /* consistent green */
  width: 1.25rem;  /* bigger checkbox */
  height: 1.25rem;
  cursor: pointer;
}

/* Cart */
.cart-empty { color: var(--muted); }

.cart-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-row{
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-info{ min-width: 0; }
.cart-name{ font-weight: 700; }
.cart-meta{ color: var(--muted); font-size: 14px; }

.qty-controls{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Bigger +/-/× buttons for cart & menu, but not the Add button */
.qty-controls .btn[data-dec-item],
.qty-controls .btn[data-inc-item],
.qty-row .btn[data-dec],
.qty-row .btn[data-inc],
.btn[data-remove-item] {
  font-size: 1.5rem;      /* bigger symbol size */
  padding: 0.4em 0.6em;   /* more clickable area */
  line-height: 1;         /* keep symbols vertically centered */
}

/* Make the × remove button a little larger and bolder */
.btn[data-remove-item] {
  font-size: 1.75rem;
  font-weight: bold;
}

.qty-badge{
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-line-total{
  width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cart-total{
  text-align: right;
  margin-top: 12px;
  font-weight: 800;
}

/* Small screens: stack better */
@media (max-width: 520px){
  .cart-row{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info remove"
      "qty  total";
    row-gap: 8px;
  }
  .cart-info{ grid-area: info; }
  .qty-controls{ grid-area: qty; }
  .cart-line-total{ grid-area: total; justify-self: end; }
  .cart-row > [data-remove-item]{ grid-area: remove; justify-self: end; }
}


/* Inputs on the cart page */
.input{
  width:100%; max-width: 420px; padding: 10px 12px; border:1px solid #E6DCCE; border-radius: 12px; background:#FFFDF9;
}
.input:focus{ border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.space-y-2 > * + *{ margin-top: 8px; }
.mt-3{ margin-top: 12px; }

/* chips margin-top replacement for inline style */
.chips--mt{ margin-top: 6px; }

/* banner image class (replaces inline width/height/radius/margin) */
.img-banner{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: block;
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  .card, .details, .btn{ transition: none !important; }
}

/* Optional dark mode that still flatters food photos */
@media (prefers-color-scheme: dark){
  :root{
    --bg: #121212;
    --surface: #1A1A1A;
    --text: #E8EAED;
    --muted: #9AA0A6;
    --brand: #3FBF5B;
    --brand-600: #32A349;
    --accent: #FF9E66;
    --badge-bg: #2A221C;
    --badge-ink: #FFCCAC;
    --ring: rgba(63,191,91,.24);
    --shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .site-header, .site-footer{ background: #151515; border-color: #222; }
  .card-media{ background:#222; }
  .qty-input, .input{ background:#161616; border-color:#272727; color: var(--text); }
}


/* --- Buttons: hover/active + depth --- */
.btn {
  border: 0;
  border-radius: 9999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
  will-change: transform, box-shadow, background, color, opacity;

  /* NEW: base lift */
  box-shadow: 0 3px 6px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}

.btn:hover {
  filter: brightness(1.03);
  /* NEW: stronger lift on hover */
  box-shadow: 0 6px 12px rgba(0,0,0,.12), 0 3px 6px rgba(0,0,0,.08);
}

.btn:active {
  transform: translateY(1px) scale(.98);
  /* NEW: closer, tighter shadow when pressed */
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
}

/* Primary (green) with brand-tinted shadow */
.btn.-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  /* UPDATED: brand-tinted shadow on top of base */
  box-shadow: 0 6px 20px rgba(46,125,50,.25), 0 1px 2px rgba(0,0,0,.04);
}
.btn.-primary:hover {
  background: var(--brand-600);
  box-shadow: 0 10px 24px rgba(46,125,50,.30), 0 3px 6px rgba(0,0,0,.08);
}
.btn.-primary:active {
  background: #1f4a21; /* a touch darker on press */
}

/* Ghost (apricot) with soft colored shadow */
.btn.-ghost {
  background: #FFF3E9;
  color: #5C2A12;
  border: 1px solid #FFE2CF;
  /* NEW: warm shadow hint */
  box-shadow: 0 3px 6px rgba(255,138,76,.15), 0 1px 2px rgba(0,0,0,.04);
}
.btn.-ghost:hover { background: #FFE9D8; }
.btn.-ghost:active { background: #FFE0CA; }

/* Disabled / busy state */
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Loading spinner */
.btn.-loading {
  position: relative;
  pointer-events: none;
}
.btn.-loading::after {
  content: "";
  display: inline-block;
  width: 1em; height: 1em;
  margin-left: 8px;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Motion-friendly */
@media (prefers-reduced-motion: reduce){
  .btn { transition: none !important; }
  .btn.-loading::after { animation: none; }
}

.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  text-decoration: none;
}

.main-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}

.sub-title {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}
