/* TASTIGO takeout site: sampled brand palette from the logo (orange #f96405,
   black #1e1a19, averaged from 30k px of the artwork). One loud element (the
   cart bar), black app bar like the logo wordmark. Plus Jakarta Sans. */
:root {
  --brand: #f96405;         /* sampled logo orange: CTAs, cart bar, stepper plus */
  --brand-dark: #cc5204;    /* pressed states: sampled orange darkened 18% */
  --brand-soft: #feece1;    /* tint: sampled orange at 12% over white */
  --ink: #1e1a19;           /* sampled logo black */
  --quiet: #6B7280;
  --bg: #F2F4F5;
  --card: #FFFFFF;
  --line: #ECEEF0;
  --edge: #DDE1E6;         /* inputs, steppers */
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 400 15.5px/1.55 "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; }
button, input, select { font: inherit; color: inherit; }
input, select { border-radius: 10px; }

/* green app bar */
.appbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--card); padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.appbar-brand { grid-column: 2; justify-self: center; display: block; }
.appbar-logo { height: 44px; width: auto; display: block; }

.wrap { max-width: 600px; margin: 0 auto; padding: 14px 14px 90px; }

/* restaurant header card */
.rest { background: var(--card); border-radius: 14px; padding: 20px 18px 16px; }
.rest h1 { font-size: 26px; margin: 0 0 2px; }
.rest-tag { margin: 0; color: var(--quiet); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600;
}

/* search box + category circles (delivery-app home style) */
.search {
  position: sticky; top: 65px; z-index: 4;
  width: 100%; margin: 12px 0 2px; padding: 12px 14px;
  font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--edge); border-radius: 12px;
}
.search:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.rings {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 12px 2px 4px; scrollbar-width: none; cursor: grab;
}
.rings.dragging { cursor: grabbing; }
.rings::-webkit-scrollbar { display: none; }
.ring { flex: none; width: 76px; text-align: center; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ring.active .ring-img { border-color: var(--brand-dark); box-shadow: 0 0 0 3px var(--brand-soft); }
.ring.active .ring-name { color: var(--ink); font-weight: 700; }
.ring.all .ring-img { background: var(--brand-soft); }
.ring-img {
  display: block; width: 64px; height: 64px; margin: 0 auto 6px;
  border-radius: 50%; overflow: hidden; border: 2px solid var(--brand); background: var(--card);
}
.ring-img img { width: 100%; height: 100%; object-fit: cover; }
.ring-letter { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; color: var(--brand); }
.ring-name {
  display: block; font-size: 12px; color: var(--quiet);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ring:active .ring-img { border-color: var(--brand-dark); }

/* popular tiles */
.popular h2 { margin: 18px 0 8px; }
.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
.p-card { display: block; background: var(--card); border-radius: 14px; overflow: hidden; }
.p-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.p-noimg {
  display: flex; align-items: center; justify-content: center; height: 110px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 28px;
}
.p-name {
  display: block; padding: 8px 10px 0; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-price { display: block; padding: 2px 10px 10px; font-size: 14px; font-weight: 700; color: var(--brand-dark); }

/* floating chat bubbles, kept clear of the sticky cart bar */
.chat-fab {
  position: fixed; right: 16px; bottom: 88px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.chat-fab.wa { background: #25D366; }
.chat-fab.tg { background: #229ED9; }
.chat-fab.tg + .chat-fab, .chat-fab.wa + .chat-fab { bottom: 144px; }

/* one-shot highlight when a popular tile reveals its dish */
.dish.pulse { animation: pulse 1.2s ease 2; }
@keyframes pulse { 0%, 100% { background: transparent; } 40% { background: var(--brand-soft); } }
@media (prefers-reduced-motion: reduce) { .dish.pulse { animation: none; background: var(--brand-soft); } }
.cat-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 2px; }
.cat-tools form { display: flex; gap: 6px; margin: 0; }
.cat-tools input { padding: 6px 10px; border: 1px solid var(--edge); border-radius: 8px; font: inherit; font-size: 13px; min-width: 200px; }

.pop-tag { color: var(--brand-dark); font-style: normal; font-size: 12px; margin-left: 6px; }

/* dish rows: text left, photo + button right */
.menu-section { background: var(--card); border-radius: 14px; padding: 6px 18px 8px; margin-top: 12px; }
.menu-section summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; }
.menu-section summary::-webkit-details-marker { display: none; }
.menu-section summary h2 { font-size: 18px; margin: 16px 0 2px; }
.cat-n { color: var(--quiet); font-size: 13px; }
.menu-section summary::after { content: '+'; margin-left: auto; color: var(--quiet); font-size: 20px; line-height: 1; padding-left: 12px; }
.menu-section[open] summary::after { content: '\2212'; }
.dish {
  display: grid; grid-template-columns: 1fr 96px; gap: 14px;
  align-items: start; border-top: 1px solid var(--line); padding: 14px 0;
}
.menu-section .dish:first-of-type { border-top: 0; }
.dish-name { margin: 0; font-weight: 700; font-size: 15.5px; }
.dish-desc { margin: 3px 0 0; color: var(--quiet); font-size: 13.5px; max-width: 38ch; }
.dish-price { margin: 8px 0 0; font-weight: 700; font-size: 15px; }
.dish-side { position: relative; padding-bottom: 14px; }
.dish-thumb { width: 96px; height: 76px; object-fit: cover; border-radius: 10px; }
.dish-thumb.noimg { background: var(--bg); color: var(--quiet); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 26px; }

/* one plus button until a qty exists; then a Grab-style stepper */
.qty {
  position: absolute; right: 6px; bottom: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.step {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 600; line-height: 1;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 17, 17, .18);
}
.step.plus { display: inline-flex; }
.dish.has-qty .step.minus { display: inline-flex; background: var(--card); color: var(--brand-dark); }
.qty input {
  display: none; width: 26px; text-align: center; border: 0; background: none;
  font-weight: 700; font-size: 15px; appearance: textfield; -moz-appearance: textfield;
}
.dish.has-qty .qty input { display: inline-block; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step:active { background: var(--brand-dark); }
.dish.has-qty .step.minus:active { background: var(--brand-soft); }

.step:focus-visible, .btn:focus-visible, .cat:focus-visible, .link:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* the loud element: sticky green cart bar */
.cartbar {
  position: sticky; bottom: 12px; margin-top: 20px;
  display: flex; align-items: stretch;
  background: var(--brand); border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 17, 17, .22);
}
.cartbtn {
  flex: 1; border: 0; background: none; color: #fff; cursor: pointer;
  padding: 15px 18px; text-align: left; font-weight: 700; font-size: 16px;
}
.carttotal { color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; padding-right: 18px; }
.cartbar.off { background: #B9C2C9; }
@media (prefers-reduced-motion: no-preference) { .cartbar, .step { transition: background-color 120ms; } }

/* shared bits */
.quiet { color: var(--quiet); font-size: 14px; }
.empty { color: var(--quiet); padding: 20px 4px; }
.link { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.flash { background: var(--brand-soft); border: 1px solid rgba(249, 100, 5, .35); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.warn { background: #FFF6DC; border: 1px solid #E8CC70; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #6B5200; }

/* checkout */
.back { margin: 4px 0 0; font-size: 14px; }
.checkout { margin-top: 12px; }
.checkout h1 { font-size: 24px; margin: 14px 0 12px; }
.summary { background: var(--card); border-radius: 14px; padding: 4px 18px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 15px;
}
.summary .row:last-of-type { border-bottom: 0; }
.total strong { font-size: 20px; font-weight: 800; }
.tip-row label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tip-row select { padding: 8px 10px; border: 1px solid var(--edge); background: var(--card); }
.pending { background: var(--bg); border-radius: 10px; padding: 14px; font-size: 14px; }
.desc { color: #3D3A35; max-width: 62ch; }
.quiet.center { text-align: center; font-size: 13px; }

.fields { display: grid; gap: 12px; margin: 16px 0 4px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .fields label.wide { grid-column: 1 / -1; } }
.fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.fields input { padding: 12px; border: 1px solid var(--edge); background: var(--card); }

.btn {
  display: inline-block; background: var(--brand); color: #fff;
  border: 0; border-radius: 12px; padding: 14px 24px;
  font-weight: 700; font-size: 15.5px; cursor: pointer;
}
.btn.wide { display: block; width: 100%; text-align: center; margin-top: 8px; }
.btn.danger { background: #C2372C; }
.btn.off, .btn:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: no-preference) { .btn, .mini { transition: background-color 120ms; } }

/* admin */
h2 { font-size: 18px; margin: 26px 0 4px; }
.admin-form {
  background: var(--card); border-radius: 14px; padding: 16px;
  display: grid; gap: 12px; margin: 10px 0 6px;
}
.admin-form > label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.admin-form input:not([type=checkbox]), .admin-form select {
  padding: 9px 10px; border: 1px solid var(--edge); background: var(--card);
}
.admin-form input[type=file] { border: 0; padding: 0; background: none; }
.admin-form .row2 { display: grid; gap: 12px; }
@media (min-width: 620px) { .admin-form .row2 { grid-template-columns: 1fr 1.4fr; } }
.admin-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.admin-imgs { display: flex; gap: 10px; }
.admin-img img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.admin-img span { font-size: 12px; }
.admin-cat { border-bottom: 1px solid var(--line); padding: 8px 0; }
.admin-cat > summary { cursor: pointer; font-size: 16px; padding: 6px 0; }
.admin-item { border-bottom: 1px solid var(--line); padding: 10px 0 10px 14px; }
.admin-item summary { cursor: pointer; font-size: 15px; }
.hidden-tag { color: var(--brand-dark); font-style: normal; font-size: 13px; margin-left: 6px; }

table.orders { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: 14px; }
.orders th { text-align: left; font-size: 12px; color: var(--quiet); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.orders td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.orders { overflow: hidden; }
.mini {
  margin-top: 4px; border: 1px solid var(--edge); background: var(--card); border-radius: 8px;
  padding: 3px 10px; font-size: 13px; cursor: pointer;
}
.mini:hover { border-color: var(--brand); color: var(--brand-dark); }
.mini.danger { border-color: #C2372C; color: #C2372C; }
.mini.danger:hover { background: #C2372C; color: #fff; }

.foot { border-top: 1px solid var(--line); margin-top: 40px; background: var(--card); }
.foot p { max-width: 600px; margin: 0 auto; padding: 22px 16px; font-size: 13.5px; color: var(--quiet); }

/* payment method chooser */
.paymethods { display: grid; gap: 10px; margin: 16px 0; }
.pm button { width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line, #e6e2dd); border-radius: 12px; cursor: pointer; text-align: left; font: inherit; }
.pm button:hover:not(:disabled) { border-color: var(--brand, #f96405); }
.pm-title { font-weight: 600; }
.pm-note { color: var(--muted, #6b6660); font-size: .85rem; }
.pm.off button { opacity: .55; cursor: not-allowed; }
.pm-min { font-size: .78rem; color: var(--brand, #f96405); }

/* rating line */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; text-decoration: none; color: var(--ink); }
.stars { color: #f5a623; letter-spacing: 1px; }
.rating strong { font-size: 15px; }
.rating-more { margin: 4px 0 0; font-size: 12.5px; color: var(--quiet); }

/* about teaser card */
.about-teaser { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; margin-top: 12px; background: var(--card); border-radius: 14px; padding: 12px; }
.about-teaser img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; display: block; }
.about-teaser h2 { margin: 0 0 4px; font-size: 16px; }
.about-teaser p { margin: 0 0 6px; font-size: 13.5px; color: var(--quiet); }
.teaser-link { font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* about page */
.about { background: var(--card); border-radius: 14px; padding: 14px; }
.about-hero { width: 100%; height: auto; border-radius: 12px; display: block; margin-bottom: 16px; }
.about h1 { font-size: 25px; line-height: 1.22; margin: 0 0 10px; }
.about-ramen { float: right; width: 40%; max-width: 240px; height: auto; border-radius: 10px; margin: 4px 0 8px 12px; }
.about p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.about-lead { font-weight: 600; }
.about-meta { font-size: 13px; color: var(--quiet); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; clear: both; margin: 6px 0 16px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.foot .copyright { font-size: 12px; margin-top: 6px; }
@media (min-width: 560px) { .about-teaser { grid-template-columns: 180px 1fr; } .about-teaser img { width: 180px; height: 118px; } }
