/* Restaurant-branded pages. --brand comes from the restaurant. */
body.store { background: #FBF8F3; --brand: #C8371D; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { filter: brightness(.92); }
.s-hero { background: var(--brand); color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; }
.s-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16), transparent 45%), repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px); }
.s-hero.slim { padding: 18px 0; }
.s-hero-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: end; }
.s-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: .2em; }
.s-tag { font-size: 1.1rem; opacity: .92; max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { background: rgba(255,255,255,.17); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 99px; font-size: .86rem; font-weight: 500; }
@media (max-width: 760px) { .s-hero-inner { grid-template-columns: 1fr; } .s-hero { padding: 30px 0; } }
.stampcard { background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); transform: rotate(-1.5deg); }
.stampcard p { margin: 10px 0 0; font-size: .86rem; color: var(--ink-2); }
.stamps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #D6CBBB; display: grid; place-items: center; font: 700 .7rem var(--mono); color: var(--brand); }
.stamps span.on { background: var(--brand); border-color: var(--brand); color: #fff; border-style: solid; }
.stamps span.gift { border-color: var(--brand); border-style: solid; }
.stampcard.mini { transform: none; box-shadow: none; border: 1px solid var(--line); margin: 22px 0; }

.cat-nav { position: sticky; top: 0; z-index: 5; background: rgba(251,248,243,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 14px; border-radius: 99px; color: var(--ink-2); }
.cat-nav a:hover { background: #EFE7DA; }

.s-main { display: grid; grid-template-columns: 1fr 340px; gap: 34px; padding-top: 26px; padding-bottom: 90px; align-items: start; }
.s-cat { scroll-margin-top: 70px; margin-bottom: 30px; }
.s-cat h2 { font-size: 1.6rem; margin-bottom: 14px; }
.s-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.s-item { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 16px; display: flex; gap: 12px; justify-content: space-between; transition: border-color .15s, box-shadow .15s; }
.s-item:hover { border-color: #D6CBBB; box-shadow: 0 6px 18px -12px rgba(0,0,0,.25); }
.s-item.in-cart { border-color: var(--brand); }
.s-item h3 { font: 700 1.02rem var(--body); letter-spacing: 0; margin: 0 0 4px; }
.s-item p { font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
.s-item-main { display: flex; flex-direction: column; flex: 1; }
.s-item-foot { margin-top: auto; display: flex; gap: 6px; align-items: center; }
.price { font: 600 .95rem var(--mono); margin-right: 4px; }
.add { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font: 700 1.2rem var(--body); cursor: pointer; flex: none; align-self: flex-end; }
.add.pop { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.22); } }
.s-item.soldout { opacity: .55; }
.so { font: 600 .72rem var(--mono); color: var(--muted); align-self: flex-end; text-transform: uppercase; }

.s-cart { position: sticky; top: 70px; }
.cart-inner { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; }
.cart-inner h2 { font-size: 1.4rem; }
.cart-lines { display: grid; gap: 10px; margin-bottom: 12px; }
.cl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.qty { display: flex; align-items: center; gap: 6px; background: #F4EEE4; border-radius: 99px; padding: 2px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-weight: 700; }
.qty span { min-width: 14px; text-align: center; font: 600 .85rem var(--mono); }
.ct { display: flex; justify-content: space-between; padding: 4px 0; font-size: .95rem; }
.ct.big { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.cart-totals { border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 14px; }
.cart-totals:empty { display: none; }
.cart-bar { display: none; }
@media (max-width: 900px) {
  .s-main { grid-template-columns: 1fr; }
  .s-cart { display: none; }
  .cart-bar:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #FBF8F3 35%); z-index: 10; }
  .cart-bar .btn { justify-content: space-between; border-radius: 14px; padding: 1em 1.2em; }
}
.sheet { border: 0; border-radius: 20px; padding: 0; width: min(520px, 94vw); max-height: 92vh; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.sheet::backdrop { background: rgba(26,23,20,.55); backdrop-filter: blur(2px); }
.sheet form { padding: 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 1.5rem; }
.seg.brand input:checked + span { background: var(--brand); border-color: var(--brand); }
.co-sum { background: #F8F3EB; border-radius: 12px; padding: 12px 14px; }
@media (max-width: 600px) { .sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; } }

.s-foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 110px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.seo-links { display: grid; gap: 4px; }
.seo-links a { color: var(--brand); font-weight: 600; }
.powered { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.powered .logo-mark { width: 20px; height: 20px; }

/* Order page */
.order-page { max-width: 560px; padding-top: 24px; padding-bottom: 70px; }
.back { text-decoration: none; font-weight: 600; color: var(--muted); display: inline-block; margin-bottom: 18px; }
.back.light { color: #fff; }
.order-card h1 { font-size: 2.4rem; }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--muted); font-weight: 500; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #D6CBBB; background: #FBF8F3; z-index: 1; }
.timeline li::after { content: ''; position: absolute; left: 12px; top: 18px; bottom: -2px; width: 2px; background: #E4DACB; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.done::after { background: var(--brand); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now::before { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.order-card .receipt { margin: 20px 0 30px; }

/* SEO page */
.seo-page { max-width: 760px; padding-top: 34px; padding-bottom: 60px; }
.seo-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.seo-page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.seo-page p { font-size: 1.05rem; color: var(--ink-2); }
.seo-page .lede { font-size: 1.2rem; }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }
.seo-cta { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.seo-cta p { margin: 0; }
