:root {
  --red: #e52b35;
  --red-dark: #a90f1d;
  --yellow: #f9c928;
  --cream: #f7f0df;
  --paper: #fffaf0;
  --ink: #2f211c;
  --muted: #77665c;
  --green: #268b50;
  --line: rgba(93, 52, 31, .15);
  --raised: inset 0 2px 0 rgba(255,255,255,.72), inset 0 -3px 0 rgba(86,31,19,.1), 0 14px 30px rgba(63,24,14,.14);
  --pressed: inset 0 2px 7px rgba(93,27,17,.24), 0 1px 0 rgba(255,255,255,.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,255,255,.8), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(111,72,44,.025) 0 1px, transparent 1px 4px),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto minmax(260px, 620px) auto; align-items: center; gap: 28px;
  min-height: 84px; padding: 14px max(24px, calc((100vw - 1180px)/2));
  border-bottom: 1px solid rgba(88,25,15,.22);
  background: linear-gradient(rgba(255,255,255,.08), transparent 42%), linear-gradient(135deg,#f13b45,var(--red));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -3px 0 rgba(91,7,14,.16), 0 8px 24px rgba(85,9,16,.2);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-size: 24px; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.brand b { color: var(--yellow); }
.brand-icon {
  display: grid; width: 45px; height: 45px; place-items: center; border: 2px solid rgba(100,31,10,.15); border-radius: 14px;
  background: linear-gradient(145deg,#fffef9,#f2e7cf); box-shadow: inset 0 2px 0 white, inset 0 -3px 0 rgba(108,56,21,.15), 0 5px 12px rgba(82,8,12,.25); font-size: 24px;
}
.search { display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid rgba(92,17,18,.26); border-radius: 15px; background: var(--paper); box-shadow: var(--pressed); color: var(--muted); }
.search > span { transform: rotate(-15deg); font-size: 24px; font-weight: 800; }
.search input { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.admin-button, .primary-button, .summary > button {
  border: 1px solid rgba(111,67,3,.35); border-radius: 14px; background: linear-gradient(#ffdc52,var(--yellow));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.58), inset 0 -3px 0 rgba(132,80,4,.2), 0 7px 12px rgba(76,14,8,.22);
  color: #3d2a08; font-weight: 800;
}
.admin-button { min-height: 48px; padding: 0 18px; white-space: nowrap; }
.admin-button:hover, .primary-button:hover, .summary > button:hover { transform: translateY(-1px); filter: brightness(1.03); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; min-height: 500px; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 64px;
  padding: 62px max(24px, calc((100vw - 1180px)/2)) 76px;
  background: radial-gradient(circle at 80% 30%, rgba(255,211,51,.27), transparent 22rem), linear-gradient(135deg,#4b070e,#900f1b 50%,#d92633);
  box-shadow: inset 0 -9px 20px rgba(58,5,9,.2); color: white;
}
.hero::after { position: absolute; z-index: -1; width: 620px; height: 620px; right: -350px; bottom: -450px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.hero-copy { max-width: 660px; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.09); color: #ffe8d0; font-size: 13px; font-weight: 700; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #5ce691; box-shadow: 0 0 0 4px rgba(92,230,145,.13); }
.hero h1 { max-width: 720px; margin: 20px 0 18px; font-size: clamp(44px,5vw,76px); font-weight: 900; letter-spacing: -.065em; line-height: .95; text-wrap: balance; }
.hero h1 span { color: var(--yellow); text-shadow: 0 3px 0 rgba(72,35,0,.22); }
.hero-copy > p { max-width: 610px; margin: 0; color: #f5dad1; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.primary-button { display: inline-flex; min-height: 54px; align-items: center; gap: 24px; padding: 0 22px; }
.delivery { display: flex; flex-direction: column; padding-left: 19px; border-left: 1px solid rgba(255,255,255,.22); }
.delivery small { margin-top: 2px; color: #f5cfc6; }
.hero-product {
  position: relative; width: min(100%,390px); justify-self: end; overflow: hidden;
  border: 1px solid rgba(255,255,255,.22); border-radius: 34px; background: radial-gradient(circle at 55% 36%,rgba(255,255,255,.18),transparent 10rem), linear-gradient(145deg,#f44b54,#b91523);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -8px 0 rgba(83,5,12,.17), 0 28px 60px rgba(38,0,3,.36); transform: rotate(1.5deg);
}
.special-tag, .badge { position: absolute; z-index: 2; border: 1px solid rgba(89,50,0,.22); border-radius: 999px; background: #fff0ae; color: #71450a; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.special-tag { top: 18px; left: 18px; padding: 8px 12px; background: var(--yellow); font-size: 12px; }
.burger-display { display: grid; min-height: 290px; place-items: center; font-size: 150px; filter: drop-shadow(0 19px 14px rgba(48,0,3,.34)); transform: rotate(-4deg); }
.burger-display img { width: 100%; height: 290px; object-fit: cover; filter: none; transform: rotate(4deg) scale(1.08); }
.hero-product-footer { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px 23px; border-top: 1px solid rgba(255,255,255,.16); background: rgba(75,2,8,.19); }
.hero-product-footer > div { display: flex; flex-direction: column; gap: 4px; }
.hero-product-footer small { color: #ffd9cf; font-weight: 700; }
.hero-product-footer strong { font-size: 23px; }
.hero-product-footer button, .add {
  display: grid; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(107,63,0,.35); border-radius: 14px;
  background: linear-gradient(#ffdc51,var(--yellow)); box-shadow: inset 0 2px 0 rgba(255,255,255,.58), inset 0 -3px 0 rgba(132,80,4,.2), 0 7px 13px rgba(64,0,4,.25); font-size: 26px;
}
.rating {
  position: absolute; right: max(24px, calc((100vw - 1180px)/2 + 320px)); bottom: 40px;
  display: grid; grid-template-columns: auto auto; gap: 0 7px; padding: 12px 17px; border: 1px solid rgba(111,69,14,.24); border-radius: 16px;
  background: linear-gradient(145deg,#fffef8,#efe5d0); box-shadow: var(--raised); color: var(--ink); transform: rotate(-2deg);
}
.rating span { grid-row: 1/3; align-self: center; color: #e7a800; font-size: 27px; }
.rating small { color: var(--muted); font-size: 10px; }

.menu { max-width: 1180px; margin: auto; padding: 70px 24px 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 27px; }
.section-heading > div > span, .cart-modal header > div > span { color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2, .cart-modal h2 { margin: 5px 0 0; font-size: clamp(30px,4vw,44px); letter-spacing: -.045em; line-height: 1.05; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.categories { display: flex; gap: 10px; overflow-x: auto; padding: 6px 4px 18px; }
.categories button {
  display: inline-flex; min-height: 46px; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid rgba(103,70,47,.17); border-radius: 14px;
  background: linear-gradient(145deg,#fffdf6,#ebe1ce); box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -2px 0 rgba(78,45,26,.09), 0 6px 12px rgba(68,42,24,.1);
  color: #66544a; font-size: 13px; font-weight: 750; white-space: nowrap;
}
.categories button.active { border-color: #a81522; background: linear-gradient(#f13e48,var(--red)); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(96,5,14,.22), 0 8px 15px rgba(130,18,28,.2); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 8px; }
.product-card { overflow: hidden; border: 1px solid rgba(104,68,42,.14); border-radius: 24px; background: linear-gradient(145deg,#fffdf8,#f1e8d7); box-shadow: var(--raised); transition: transform .18s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-image { position: relative; display: grid; min-height: 190px; place-items: center; border-bottom: 1px solid rgba(99,51,30,.09); background: radial-gradient(circle at 50% 35%,rgba(255,255,255,.9),transparent 7rem), linear-gradient(135deg,#f3d3ba,#f4c65c); box-shadow: inset 0 -6px 10px rgba(110,47,16,.06); }
.product-image > span:last-child { font-size: 88px; filter: drop-shadow(0 12px 9px rgba(77,31,11,.18)); }
.product-image > img { width: 100%; height: 190px; object-fit: cover; }
.badge { top: 13px; left: 13px; padding: 7px 9px; }
.product-copy { padding: 20px; }
.product-copy h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.025em; }
.product-copy > p { min-height: 43px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.product-footer > strong { color: var(--red-dark); font-size: 20px; }
.public-price { display: flex; flex-direction: column; }
.public-price strong { color: var(--red-dark); font-size: 20px; }
.public-price small { color: var(--muted); font-size: 11px; text-decoration: line-through; }
.add { width: 43px; height: 43px; border-color: #a0121f; background: linear-gradient(#f3424c,var(--red)); color: white; font-size: 23px; }
.quantity { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #eadfcd; box-shadow: var(--pressed); }
.quantity button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(109,15,22,.34); border-radius: 9px; background: linear-gradient(#ef3c47,#d21f2b); color: white; font-weight: 800; }
.quantity span { min-width: 27px; text-align: center; font-size: 13px; font-weight: 850; }
.empty { padding: 50px; border: 1px dashed rgba(97,62,40,.25); border-radius: 24px; background: rgba(255,250,239,.65); text-align: center; }
.empty > span { font-size: 44px; }
.empty h3 { margin: 10px 0 4px; }
.empty p { margin: 0; color: var(--muted); }
.setup-notice { padding: 18px 20px; border: 1px solid rgba(135,79,4,.24); border-radius: 17px; background: linear-gradient(145deg,#fff3bd,#f0d573); box-shadow: var(--raised); color: #5d410b; line-height: 1.6; }
.setup-notice strong { display: block; }
.setup-notice code { padding: 2px 5px; border-radius: 5px; background: rgba(91,51,0,.1); }
.empty-page { display: grid; min-height: 100vh; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.empty-page > span { font-size: 80px; }
.empty-page h1 { margin: 16px 0 5px; font-size: clamp(34px,6vw,58px); letter-spacing: -.05em; }
.empty-page p { margin: 0 0 24px; color: var(--muted); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(24px,calc((100vw - 1180px)/2)); border-top: 1px solid rgba(77,34,22,.25); background: #3e0b10; color: #f1d8d2; font-size: 12px; }
footer .brand { font-size: 18px; }
footer .brand-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }

.cart-bar {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: grid; width: min(calc(100% - 30px),710px); grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 11px 12px;
  border: 1px solid rgba(77,9,14,.5); border-radius: 20px; background: linear-gradient(rgba(255,255,255,.08),transparent 35%),#b41623;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.16), inset 0 -4px 0 rgba(64,1,7,.2), 0 16px 45px rgba(61,11,10,.35); color: white;
}
.cart-count { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: var(--yellow); color: #482e04; font-weight: 900; }
.cart-bar > div { display: flex; flex-direction: column; }
.cart-bar > div small { color: #f5cac6; }
.cart-bar > button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.12); color: white; font-weight: 800; }

.overlay { position: fixed; z-index: 80; inset: 0; display: flex; justify-content: flex-end; padding: 18px; background: rgba(35,12,8,.54); backdrop-filter: blur(5px); }
.cart-modal { display: flex; width: min(100%,460px); flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: 0 30px 80px rgba(37,8,4,.4); }
.cart-modal header { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-modal header > button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg,#fffdf7,#e8ddca); box-shadow: var(--raised); font-size: 24px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-emoji { display: grid; width: 49px; height: 49px; place-items: center; border-radius: 15px; background: linear-gradient(145deg,#f5dec0,#eac163); box-shadow: var(--raised); font-size: 25px; }
.cart-item > div:nth-child(2) { display: flex; flex-direction: column; }
.cart-item small { color: var(--muted); }
.summary { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: rgba(236,224,202,.46); }
.summary p { display: flex; justify-content: space-between; margin: 0 0 9px; color: var(--muted); }
.summary p strong { color: var(--ink); }
.summary .free { color: var(--green); }
.summary .total { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.summary .total strong { color: var(--red-dark); font-size: 20px; }
.summary > button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 18px; }
.notice { position: fixed; z-index: 100; top: 98px; left: 50%; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 13px; background: #36221b; box-shadow: 0 12px 28px rgba(43,18,10,.3); color: white; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%,-12px); transition: .18s ease; }
.notice.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .topbar { grid-template-columns: auto 1fr; }
  .admin-button { display: none; }
  .hero { grid-template-columns: 1fr .75fr; gap: 30px; }
  .rating { display: none; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .topbar { position: relative; grid-template-columns: 1fr; gap: 14px; padding: 13px 16px; }
  .search input { height: 44px; }
  .hero { grid-template-columns: 1fr; padding: 43px 18px 55px; }
  .hero h1 { font-size: 47px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button { justify-content: space-between; }
  .delivery { padding: 0; border: 0; }
  .hero-product { width: 100%; transform: none; }
  .burger-display { min-height: 225px; font-size: 125px; }
  .menu { padding: 50px 14px 100px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .categories { margin-right: -14px; }
  .product-grid { gap: 11px; }
  .product-card { border-radius: 18px; }
  .product-image { min-height: 128px; }
  .product-image > span:last-child { font-size: 61px; }
  .product-image > img { height: 128px; }
  .product-copy { padding: 13px; }
  .product-copy h3 { font-size: 16px; }
  .product-copy > p { display: -webkit-box; min-height: 53px; overflow: hidden; font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .product-footer > strong { font-size: 15px; }
  .add { width: 37px; height: 37px; border-radius: 11px; }
  .quantity { gap: 1px; padding: 3px; }
  .quantity button { width: 25px; height: 28px; }
  .quantity span { min-width: 19px; font-size: 11px; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 18px 100px; }
  .cart-bar { bottom: 10px; width: calc(100% - 20px); }
  .overlay { align-items: flex-end; padding: 0; }
  .cart-modal { width: 100%; max-height: 90vh; border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
