:root {
  --pink: #F2578F; --pink-deep: #D63C76; --pink-pale: #FFF4F8; --pink-line: #F6D9E4;
  --ink: #1A1416; --ink-2: #6B5F64; --paper: #FFFFFF; --green: #1E9E5A; --red: #E0273C;
  --radius: 14px; --display: 'Anton', 'Arial Narrow', sans-serif; --body: 'Rubik', system-ui, sans-serif;
  --bar-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sheet { animation: none; } }
body { margin: 0; background: var(--pink-pale); color: var(--ink); font: 16px/1.45 var(--body); padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--pink); color: #fff; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.brand img { border-radius: 9px; background: #fff; flex: 0 0 auto; }
.brand strong { display: block; font-family: var(--display); font-size: 19px; line-height: 1.05; letter-spacing: .02em; white-space: nowrap; }
.brand small { display: block; font-size: 12px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-btn { position: relative; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.cart-btn .count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--pink); }

/* hero compact */
.hero { position: relative; margin: 10px 12px 0; border-radius: var(--radius); overflow: hidden; background: var(--pink); color: #fff; display: grid; grid-template-columns: 1fr 112px; min-height: 116px; }
.hero-img { grid-column: 2; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero::before { content: ''; position: absolute; left: calc(100% - 112px); top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, var(--pink), rgba(242,87,143,0)); z-index: 1; }
.hero-text { grid-column: 1; grid-row: 1; padding: 14px 6px 14px 14px; display: flex; flex-direction: column; justify-content: center; }
.promo { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; font-weight: 500; }
.promo b { flex: 0 0 auto; background: #fff; color: var(--pink-deep); font-family: var(--display); font-size: 24px; padding: 1px 9px; border-radius: 8px; letter-spacing: .01em; }
.pickup { display: flex; align-self: flex-start; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 9px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pickup svg { flex: 0 0 auto; }
.pickup span { white-space: nowrap; }
.pickup small { flex-basis: 100%; padding-left: 20px; font-size: 11.5px; font-weight: 500; opacity: .92; text-decoration: underline; text-underline-offset: 2px; }
.promo span { font-size: 15px; font-weight: 600; }
.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; margin: 8px 0 0; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(26,20,22,.22); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8CFFB8; }
.status.closed::before { background: #FFB4B4; }

.notice { margin: 12px; padding: 12px 14px; background: #fff; border-left: 4px solid var(--red); border-radius: 8px; font-size: 14px; }

/* categories */
.cats { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 15; display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; background: var(--pink-pale); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: 0 0 auto; padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1.5px solid var(--pink-line); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* list */
.menu { padding: 0 12px; }
.cat { scroll-margin-top: calc(122px + env(safe-area-inset-top)); margin-top: 34px; padding-top: 18px; border-top: 2px dashed var(--pink-line); }
.cat:first-child { margin-top: 8px; padding-top: 6px; border-top: 0; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 12px; padding-left: 12px; border-left: 5px solid var(--pink); }
.cat-head h2 { font-size: 24px; text-transform: uppercase; color: var(--ink); margin: 0; line-height: 1; }
.cat-head small { font-size: 12.5px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.item { display: grid; grid-template-columns: 1fr 92px; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 10px; cursor: pointer; min-height: 116px; }
.item:active { background: #fff8fb; }
.item-body { min-width: 0; display: flex; flex-direction: column; }
.item h3 { font-size: 17px; line-height: 1.12; text-transform: uppercase; letter-spacing: .02em; }
.item p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 8px; }
.price b { font-family: var(--display); font-size: 20px; color: var(--pink-deep); letter-spacing: .01em; line-height: 1; }
.price s { color: var(--ink-2); font-size: 12.5px; }
.pop { font-size: 10.5px; font-weight: 700; background: var(--pink); color: #fff; padding: 2px 7px; border-radius: 999px; }
.item-img { position: relative; width: 92px; height: 92px; border-radius: 11px; background: var(--pink-line); }
.item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.add { position: absolute; right: -6px; bottom: -6px; width: 40px; height: 40px; border: 3px solid #fff; border-radius: 50%; background: var(--ink); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.add:active { transform: scale(.94); }
.is-off { opacity: .55; pointer-events: none; }
.soldout { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; text-align: center; background: rgba(26,20,22,.75); color: #fff; padding: 3px; border-radius: 0 0 11px 11px; }

.foot { padding: 22px 16px 10px; font-size: 14px; color: var(--ink-2); }
.foot strong { color: var(--ink); font-size: 16px; }
.foot-links { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.foot-links a { padding: 10px 14px; min-height: 42px; display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--pink-line); border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink); }

/* cart bar */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; height: var(--bar-h); border: 0; border-radius: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; font-size: 17px; font-weight: 700; box-shadow: 0 8px 28px rgba(26,20,22,.28); }
.cart-bar-n { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 15px; }
.cart-bar-t { flex: 1; text-align: left; }
.cart-bar-sum { font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: .01em; }

/* sheets */
.sheet-bg { position: fixed; inset: 0; background: rgba(26,20,22,.55); z-index: 30; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: #fff; border-radius: 22px 22px 0 0; max-height: 94dvh; display: flex; flex-direction: column; box-shadow: 0 -8px 40px rgba(0,0,0,.2); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px; }
.sheet-head h2 { font-size: 24px; text-transform: uppercase; }
.x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pink-pale); font-size: 26px; line-height: 1; display: grid; place-items: center; }
.x.float { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 8px; flex: 1; }
.sheet-foot { display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pink-line); background: #fff; }
.sheet-foot > .primary { flex: 1; }
.primary { width: 100%; min-height: 54px; border: 0; background: var(--pink); color: #fff; padding: 0 16px; border-radius: 14px; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.primary:disabled { opacity: .5; cursor: default; }
.primary .sum-inline { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .01em; white-space: nowrap; }
.secondary { width: 100%; min-height: 48px; border: 1.5px solid var(--pink-line); background: #fff; border-radius: 12px; font-weight: 500; }

/* product sheet */
.p-img { margin: 0 -16px; height: 230px; background: var(--pink-line); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-head { padding: 14px 0 6px; }
.p-head h2 { font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.p-head .price { margin-top: 6px; padding: 0; }
.p-head .price b { font-size: 24px; }
.p-desc { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.opt-group { margin: 16px 0 2px; font-weight: 700; font-size: 14px; color: var(--ink); }
.opt-group small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 0; border-bottom: 1px solid var(--pink-line); cursor: pointer; }
.opt input { width: 24px; height: 24px; accent-color: var(--pink); flex: 0 0 auto; margin: 0; }
.opt span { flex: 1; font-size: 15.5px; }
.opt small { color: var(--ink-2); font-size: 14px; }

.qty { display: inline-flex; align-items: center; gap: 2px; }
.qty button { width: 44px; height: 44px; border: 1.5px solid var(--pink-line); background: #fff; border-radius: 10px; font-size: 22px; line-height: 1; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 17px; }
.qty.big button { width: 46px; height: 48px; } .qty.big span { min-width: 30px; }

/* cart */
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--pink-line); align-items: center; }
.line-name { font-weight: 500; font-size: 15.5px; }
.line-extras { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.line-price { font-weight: 700; text-align: right; }
.line .qty { grid-column: 1; margin-top: 2px; }
.empty { padding: 36px 0; text-align: center; color: var(--ink-2); }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum b { font-family: var(--display); font-size: 24px; color: var(--pink-deep); }
.save { font-size: 13px; color: var(--green); font-weight: 500; margin: 2px 0 8px; }
.cart-foot-col { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* checkout */
label.f { display: block; margin: 14px 0; font-size: 14px; font-weight: 500; }
label.f input, label.f textarea, label.f select { display: block; width: 100%; margin-top: 6px; padding: 14px; min-height: 50px; border: 1.5px solid var(--pink-line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
label.f input:focus, label.f textarea:focus { border-color: var(--pink); outline: none; }
.err { color: var(--red); font-size: 14px; margin: 8px 0 0; min-height: 1.2em; }
/* checkout: sectiuni numerotate (ca la un flux de finalizare clasic) */
.co-sec { background: #fff; border: 1.5px solid var(--pink-line); border-radius: 16px; padding: 12px 14px 4px; margin: 0 0 10px; }
.co-sec label.f { margin: 10px 0 8px; }
.co-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; margin-bottom: 10px; }
.co-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--pink-pale); color: var(--pink-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.co-n.ok { background: var(--green); color: #fff; }
.pickup-box { display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 8px; }
.pickup-box > svg { flex: 0 0 auto; margin-top: 2px; color: var(--pink); }
.pickup-box strong { display: block; font-size: 15px; line-height: 1.25; }
.pickup-box span { display: block; font-size: 13px; opacity: .85; margin-top: 3px; line-height: 1.35; }
.pickup-box small { display: block; font-size: 12.5px; color: #FFD0E1; margin-top: 6px; font-weight: 500; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.seg.three { grid-template-columns: 1fr 1fr 1fr; }
.seg button { min-height: 64px; padding: 10px 8px; border: 1.5px solid var(--pink-line); background: #fff; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; color: var(--ink); }
.seg button svg { width: 20px; height: 20px; margin-bottom: 2px; color: var(--pink-deep); }
.seg button b { font-size: 14px; font-weight: 700; line-height: 1.2; }
.seg button small { font-size: 11.5px; color: var(--ink-2); line-height: 1.2; }
.seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg button.on svg { color: var(--pink); }
.seg button.on small { color: #FFD0E1; }
.seg button:disabled { opacity: .45; }
.sched, .company { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.company { grid-template-columns: 1fr; }
.co-foot-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--ink); font-size: 14px; font-weight: 600; }

.toast { position: fixed; left: 50%; top: calc(126px + env(safe-area-inset-top)); transform: translateX(-50%) translateY(-10px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* order page */
.order-page { padding-bottom: 20px; }
.order { max-width: 560px; margin: 0 auto; padding: 12px 12px 40px; display: grid; gap: 12px; }
.code-card, .status-card, .loc-card, .items-card { background: #fff; border-radius: var(--radius); padding: 18px; }
.code-card { text-align: center; background: var(--pink); color: #fff; }
.code-card small { opacity: .9; }
.code { font-family: var(--display); font-size: 54px; letter-spacing: .06em; line-height: 1; margin: 6px 0 8px; }
.code-card p { margin: 0; font-size: 14px; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.step i { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pink-line); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.step.done { color: var(--ink); }
.step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.step.now { color: var(--ink); font-weight: 500; }
.step.now i { border-color: var(--pink); color: var(--pink); }
.step small { display: block; font-weight: 400; color: var(--ink-2); }
.eta { font-family: var(--display); font-size: 30px; color: var(--pink-deep); margin: 4px 0 12px; }
.rejected { color: var(--red); font-weight: 500; }
.back { display: block; text-align: center; padding: 14px; text-decoration: none; font-weight: 500; }
.items-card .line:last-child { border-bottom: 0; }

/* desktop */
@media (min-width: 760px) {
  body { padding-bottom: 40px; }
  .top { padding: 10px 24px; }
  .hero { max-width: 880px; margin: 16px auto 0; min-height: 150px; grid-template-columns: 1fr 260px; }
  .hero::before { left: calc(100% - 260px); }
  .hero-text { padding: 20px; }
  .promo { font-size: 15px; }
  .cats { max-width: 880px; margin: 0 auto; top: 64px; }
  .menu { max-width: 880px; margin: 0 auto; }
  .cat { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .cat-head { grid-column: 1 / -1; }
  .item-img { width: 104px; height: 104px; }
  .item { grid-template-columns: 1fr 104px; }
  .foot { max-width: 880px; margin: 0 auto; }
  .cart-bar { left: auto; right: 24px; width: 360px; }
  .sheet { left: auto; right: 24px; bottom: 24px; width: 440px; border-radius: 22px; max-height: 86vh; }
  .p-img { border-radius: 22px 22px 0 0; overflow: hidden; }
}

/* legal */
.legal-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pink-line); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.legal-links a { color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.legal-id { font-size: 12px; color: var(--ink-2); margin: 4px 0; line-height: 1.45; }
.legal-id a { color: inherit; }
.consent { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin: 6px 2px 0; }
.consent a { color: var(--pink-deep); }
.legal { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.legal h1 { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin: 8px 0 12px; line-height: 1.05; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.legal-nav a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--pink-line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.legal-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal article { background: #fff; border-radius: 16px; padding: 18px 18px 8px; font-size: 15px; line-height: 1.6; }
.legal article h2 { font-size: 17px; margin: 22px 0 8px; font-weight: 700; }
.legal article h2:first-of-type { margin-top: 8px; }
.legal article p, .legal article ul, .legal article ol { margin: 0 0 12px; }
.legal article ul, .legal article ol { padding-left: 20px; }
.legal article li { margin-bottom: 6px; }
.legal article a { color: var(--pink-deep); }
.legal article .muted { color: var(--ink-2); font-size: 13px; }
.legal article table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 14px; display: block; overflow-x: auto; }
.legal article th, .legal article td { border: 1px solid var(--pink-line); padding: 8px; text-align: left; vertical-align: top; }
.legal article th { background: var(--pink-pale); }
.legal article code { background: var(--pink-pale); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.legal .back { display: inline-block; margin-top: 18px; }
.legal-page .foot { max-width: 760px; margin: 0 auto; }
