/* ==========================================================================
   Cardápio — visual refinado
   ========================================================================== */
:root {
  --red: #B71C2B;
  --red-dark: #8C1220;
  --red-soft: #FCEEEF;
  --cream: #FAF7F3;
  --ink: #1E1916;
  --muted: #6F655D;
  --line: #ECE5DC;
  --gold: #C98A1E;
  --gold-soft: #FBF2E1;
  --basil: #1F7A4D;
  --basil-soft: #E6F3EC;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 25, 22, .05);
  --shadow: 0 2px 6px rgba(30, 25, 22, .05), 0 12px 32px rgba(30, 25, 22, .08);
}
body { background: var(--cream); }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Cabeçalho da loja ---------- */
.cover {
  height: 210px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 163, 61, .35), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(0, 0, 0, .35), transparent 60%),
    linear-gradient(120deg, #3B0D12 0%, #7E1420 45%, #B71C2B 100%);
  background-size: cover; background-position: center;
  position: relative;
}
.cover::after { /* textura sutil */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px);
  background-size: 18px 18px;
}
.cover.has-img::after { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }

.store-card {
  position: relative; margin-top: -64px; z-index: 2;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem; display: flex; gap: 1.25rem; align-items: center;
}
.store-logo {
  width: 88px; height: 88px; border-radius: 50%; flex: 0 0 88px; object-fit: cover;
  margin-top: -52px; border: 4px solid #fff; box-shadow: var(--shadow); background: #fff; align-self: flex-start;
}
.store-main { flex: 1; min-width: 0; }
.store h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -.015em; }
.tagline { margin: .2rem 0 .65rem; color: var(--muted); }
.store-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--muted); }
.store-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.store-meta li + li::before { content: '•'; color: #CFC5BA; margin-right: .65rem; }
.store-meta .open { color: var(--basil); font-weight: 700; }
.store-meta .closed { color: var(--red); font-weight: 700; }
.my-order {
  align-self: center; display: inline-flex; gap: .4rem; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.my-order:hover { border-color: var(--red); color: var(--red); }

.closed-banner {
  margin-top: 1rem; background: var(--gold-soft); color: #6B4A08; border: 1px solid #F0DDB5;
  padding: .85rem 1.1rem; border-radius: 14px; font-size: .95rem;
}

/* ---------- Banner meio a meio ---------- */
.half-promo {
  margin-top: 1rem; width: 100%; border: 0; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(100deg, #FFF 0%, #FFF 55%, var(--gold-soft) 100%);
  border: 1px solid var(--line); border-radius: 20px; padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.half-promo:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.hp-art {
  width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(183, 28, 43, .25);
}
.hp-half { position: absolute; top: 0; bottom: 0; width: 50%; background: url(/img/pizza.svg) center / 200% 100%; }
.hp-half.l { left: 0; background-position: left center; }
.hp-half.r { right: 0; background-position: right center; filter: hue-rotate(-25deg) saturate(1.25) brightness(.92); }
.hp-art::after { content: ''; position: absolute; left: calc(50% - 1.5px); top: 0; bottom: 0; width: 3px; background: #fff; }
.hp-text { flex: 1; display: grid; gap: .1rem; }
.hp-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gold); }
.hp-text strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.hp-text span:last-child { color: var(--muted); font-size: .92rem; }
.hp-cta {
  background: var(--red); color: #fff; font-weight: 700; padding: .75rem 1.15rem; border-radius: 999px;
  white-space: nowrap; font-size: .92rem;
}
.half-promo:hover .hp-cta { background: var(--red-dark); }

/* ---------- Abas de categorias ---------- */
.tabs-nav {
  position: sticky; top: 0; z-index: 20; margin-top: 1.25rem;
  background: rgba(250, 247, 243, .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.tabs-inner { display: flex; align-items: center; gap: 1.25rem; }
.search {
  display: flex; align-items: center; gap: .5rem; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 .85rem; color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(183, 28, 43, .12); }
.search svg { width: 18px; height: 18px; flex: 0 0 18px; }
.search input { border: 0; outline: 0; padding: .6rem 0; width: 200px; background: transparent; color: var(--ink); }
.tabs { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; border: 0; background: none; padding: 1rem 0 .95rem;
  font-weight: 600; font-size: .93rem; color: var(--muted); white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--red); }
.tabs button.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red);
}

/* ---------- Seções e produtos ---------- */
.menu { padding-top: .5rem; padding-bottom: 8rem; }
.section { padding-top: 1.75rem; scroll-margin-top: 64px; }
.section-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1rem; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.section-head .half-tag { font-size: .78rem; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.product {
  display: flex; gap: 1rem; align-items: stretch; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; cursor: pointer; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.product:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.p-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.p-flag { font-size: .72rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .15rem; }
.p-info h3 { font-size: 1.02rem; font-weight: 700; }
.p-info p {
  margin: .3rem 0 .75rem; color: var(--muted); font-size: .88rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-bottom { margin-top: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--ink); font-size: .98rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.half-tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600;
  color: var(--red); background: var(--red-soft); padding: .18rem .5rem; border-radius: 999px;
}
.half-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1.5px solid currentColor; }
.p-img { width: 116px; height: 116px; flex: 0 0 116px; border-radius: 14px; overflow: hidden; position: relative; background: var(--gold-soft); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-add {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--red); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.8rem; background: linear-gradient(145deg, #FBF2E1, #F3E1C4); }

/* destaques em carrossel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.feat {
  scroll-snap-align: start; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  overflow: hidden; padding: 0; cursor: pointer; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.feat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feat .f-img { height: 150px; background: var(--gold-soft); position: relative; }
.feat .f-img img { width: 100%; height: 100%; object-fit: cover; }
.feat .f-body { padding: .8rem .9rem 1rem; display: grid; gap: .2rem; }
.feat h3 { font-size: .98rem; }
.feat .price { font-size: .92rem; }

.site-footer { padding-bottom: 8rem; color: var(--muted); font-size: .88rem; text-align: center; line-height: 1.8; }
.site-footer a { color: var(--red); font-weight: 600; }

/* ---------- Barra da sacola ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100vw - 2rem), 560px); z-index: 30;
  display: flex; align-items: center; gap: .9rem;
  background: var(--red); color: #fff; border: 0; border-radius: 16px; padding: .8rem 1.1rem;
  font-weight: 600; font-size: 1rem; box-shadow: 0 12px 30px rgba(140, 18, 32, .35);
  animation: barIn .3s cubic-bezier(.2, .9, .3, 1.2);
}
.cart-bar:hover { background: var(--red-dark); }
.cb-bag { position: relative; width: 28px; height: 28px; }
.cb-bag svg { width: 28px; height: 28px; }
.cart-count {
  position: absolute; top: -6px; right: -8px; background: #fff; color: var(--red); border-radius: 999px;
  min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; padding: 0 .3rem;
}
.cb-label { flex: 1; text-align: center; }
.cart-bar.bump { animation: bump .4s; }
@keyframes barIn { from { transform: translate(-50%, 140%); } }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.05); } }

/* ---------- Botões redondos ---------- */
.round-btn {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 1rem; display: grid; place-items: center; color: var(--ink);
}
.round-btn:hover { background: var(--cream); }

/* ---------- Modal do produto / montador ---------- */
.pm { width: min(96vw, 960px); max-height: min(92vh, 760px); overflow: hidden; }
.pm-shell { display: grid; grid-template-columns: 1fr 1.05fr; height: min(92vh, 760px); }
.pm-visual {
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, var(--gold-soft) 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 2rem;
  position: relative; overflow: hidden;
}
.pm-visual.photo { padding: 0; }
.pm-visual.photo > img, .pm-visual.photo > .ph { width: 100%; height: 100%; object-fit: cover; font-size: 6rem; }
.pm-panel { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.pm-head { display: flex; align-items: flex-start; gap: .75rem; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.pm-title { flex: 1; min-width: 0; }
.pm-title h2 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.pm-title p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.pm-scroll { flex: 1; overflow-y: auto; padding: 0 0 1rem; scroll-behavior: smooth; }
.pm-foot { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: #fff; }
.add-btn { flex: 1; justify-content: space-between; border-radius: 12px; padding: .9rem 1.2rem; font-size: 1rem; }
.add-btn.hint { background: #EDE7E0; color: var(--muted); justify-content: center; }
.add-btn.hint:hover { background: #E4DCD2; }

/* desenho da pizza */
.pz {
  --size: min(300px, 70%);
  width: var(--size); aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(110, 50, 10, .25), 0 0 0 8px rgba(255, 255, 255, .7);
  background: #fff;
}
.pz-half {
  position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; border: 0; padding: 0; background: none; cursor: pointer;
}
.pz-half.l { left: 0; }
.pz-half.r { right: 0; }
.pz-half img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; transition: transform .35s; }
.pz-half.l img { left: 0; }
.pz-half.r img { right: 0; }
.pz-half:hover img { transform: scale(1.04); }
.pz-half.whole { width: 100%; }
.pz-half.whole img { width: 100%; left: 0; }
.pz-half.whole .pz-empty { padding: 0; }
.pz-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #FFF8EC, #FFF8EC 10px, #FBEBD0 10px, #FBEBD0 20px);
  color: var(--gold); font-weight: 700; font-size: .85rem;
}
.pz-empty b { display: block; font-size: 2rem; line-height: 1; margin-bottom: .2rem; }
.pz-half.l .pz-empty { padding-left: 20%; }
.pz-half.r .pz-empty { padding-right: 20%; }
.pz-split .pz-cut { position: absolute; top: 0; bottom: 0; left: calc(50% - 2px); width: 4px; background: #fff; pointer-events: none; }
.pz-pulse .pz-half.r .pz-empty { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { filter: brightness(.94); } }
.pz-labels { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.pz-labels span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem;
  font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.pz-labels span.empty-lbl { color: var(--muted); font-weight: 500; border-style: dashed; }
.pz-note { font-size: .82rem; color: var(--muted); text-align: center; max-width: 320px; margin: 0; }

/* passos */
.step { padding: 1rem 1.25rem .25rem; }
.step + .step { border-top: 8px solid var(--cream); }
.step-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: 0 0 28px;
}
.step.done .step-num { background: var(--basil); }
.step-head h3 { font-size: 1.02rem; flex: 1; }
.step-head h3 small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.req { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .55rem; border-radius: 6px; background: var(--ink); color: #fff; }
.step.done .req { background: var(--basil-soft); color: var(--basil); }
.step.shake { animation: shake .45s; }
.step.shake .req { background: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .6rem; }
.choice {
  border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: .85rem .75rem; text-align: center;
  display: grid; gap: .15rem; justify-items: center; transition: border-color .15s, background .15s, transform .1s;
}
.choice:hover { border-color: #D9CDBF; }
.choice:active { transform: scale(.98); }
.choice.sel { border-color: var(--red); background: var(--red-soft); }
.choice strong { font-size: 1rem; }
.choice small { color: var(--muted); font-size: .78rem; }
.choice .c-price { font-weight: 700; font-size: .88rem; color: var(--ink); margin-top: .2rem; }
.choice .c-ico { width: 46px; height: 46px; margin-bottom: .25rem; }
.size-dot { width: var(--d); height: var(--d); border-radius: 50%; background: url(/img/pizza.svg) center / cover; margin: 0 auto .35rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

.slots { display: grid; gap: .6rem; }
.slot {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: .7rem .85rem;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: #D9CDBF; }
.slot.empty { border-style: dashed; border-color: #E2C9A0; background: #FFFCF6; }
.slot.empty:hover { border-color: var(--gold); }
.slot-thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 52px; position: relative; background: var(--gold-soft); }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-thumb.half-l { clip-path: inset(0 50% 0 0); }
.slot-thumb.half-r { clip-path: inset(0 0 0 50%); }
.slot-thumb.plus { display: grid; place-items: center; font-size: 1.6rem; color: var(--gold); background: #FFF3DC; clip-path: none; }
.slot-main { flex: 1; min-width: 0; }
.slot-main small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.slot-main strong { font-size: 1rem; }
.slot.empty .slot-main strong { color: var(--gold); }
.slot-act { font-size: .85rem; font-weight: 600; color: var(--red); white-space: nowrap; }

.opt { display: flex; align-items: center; gap: .75rem; border: 2px solid var(--line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; margin-bottom: .5rem; }
.opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.opt input { accent-color: var(--red); width: 18px; height: 18px; }
.opt span { flex: 1; }
.note-area { width: 100%; border: 1px solid #DCCDBB; border-radius: 12px; padding: .75rem .85rem; resize: vertical; min-height: 76px; outline: none; }
.note-area:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(183, 28, 43, .12); }

/* lista de sabores */
.picker-search { margin: 1rem 1.25rem .5rem; }
.picker-search input { width: 100%; }
.flavor-list { list-style: none; margin: 0; padding: 0 .75rem; }
.flavor {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; border: 0; background: none;
  padding: .75rem .5rem; border-radius: 12px; border-bottom: 1px solid var(--line);
}
.flavor:hover { background: var(--cream); }
.flavor.sel { background: var(--red-soft); }
.flavor .f-thumb { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; flex: 0 0 60px; background: var(--gold-soft); }
.flavor .f-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flavor .f-main { flex: 1; min-width: 0; }
.flavor .f-main strong { display: block; }
.flavor .f-main small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .82rem; }
.flavor .f-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.flavor .f-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 24px; display: grid; place-items: center; color: #fff; font-size: .8rem; }
.flavor.sel .f-check { background: var(--red); border-color: var(--red); }
.flavor-cat { list-style: none; padding: 1rem .5rem .35rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* stepper */
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: transparent; width: 42px; height: 46px; font-size: 1.3rem; color: var(--red); font-weight: 700; }
.stepper button:hover { background: var(--red-soft); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm { border-radius: 10px; }
.stepper.sm button { width: 32px; height: 32px; font-size: 1.05rem; }

/* ---------- Gaveta da sacola ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(100vw, 460px);
  border-radius: 22px 0 0 22px; display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slideIn .25s ease-out; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-store { margin: 0 0 .75rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); background: #fff; }

.cart-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cart-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.ci-thumb { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; flex: 0 0 54px; background: var(--gold-soft); position: relative; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-thumb .ph { font-size: 1.6rem; }
.ci-thumb.split::after { content: ''; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: #fff; }
.ci-thumb .h { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; }
.ci-thumb .h.l { left: 0; } .ci-thumb .h.r { right: 0; }
.ci-thumb .h img { position: absolute; width: 200%; max-width: none; height: 100%; }
.ci-thumb .h.l img { left: 0; } .ci-thumb .h.r img { right: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-info h4 { margin: 0; font-size: .96rem; }
.ci-halves { margin: .15rem 0 0; padding: 0; list-style: none; font-size: .85rem; }
.ci-opt, .ci-note { font-size: .82rem; color: var(--muted); }
.ci-note { font-style: italic; }
.ci-price { font-weight: 700; margin-top: .3rem; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.link-btn { border: 0; background: none; color: var(--red); font-weight: 600; padding: 1rem 0; }

.totals { display: grid; gap: .3rem; margin-bottom: .85rem; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.15rem; font-weight: 800; margin-top: .25rem; }
.min-warn { margin: 0 0 .75rem; font-size: .85rem; color: var(--red-dark); background: var(--red-soft); padding: .55rem .8rem; border-radius: 10px; }
#drawerAction { border-radius: 12px; padding: .95rem; font-size: 1rem; }

.sec-title { font-size: 1rem; margin: .75rem 0 .75rem; }
.sec-title small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: block; text-align: center; padding: .75rem .5rem; border: 2px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: .92rem; cursor: pointer; background: #fff;
}
.seg input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.seg input:focus-visible + span { outline: 3px solid rgba(183, 28, 43, .4); }
.pickup-info { background: var(--basil-soft); color: #165C39; padding: .8rem; border-radius: 12px; font-size: .92rem; margin: 0 0 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .pm { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .pm-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100dvh; }
  .pm-visual { padding: 1rem 1rem .9rem; gap: .65rem; }
  .pm-visual.photo { height: 200px; }
  .pz { --size: 168px; box-shadow: 0 10px 24px rgba(110, 50, 10, .22), 0 0 0 5px rgba(255, 255, 255, .7); }
  .pz-note { display: none; }
  .pm-head { padding: .9rem 1rem .75rem; }
  .pm-title h2 { font-size: 1.25rem; }
  .pm-title p { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .step { padding: .9rem 1rem .2rem; }
  .pm-foot { padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom)); }
  .pm-visual.compact .pz { --size: 110px; }
  .pm-visual.compact .pz-labels { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1rem; }
  .cover { height: 150px; }
  .store-card { flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1rem 1.1rem 1.1rem; margin-top: -48px; }
  .store-logo { width: 72px; height: 72px; flex-basis: 72px; margin-top: -48px; }
  .store-meta { gap: .3rem .9rem; font-size: .84rem; }
  .store-meta li + li::before { display: none; }
  .my-order { position: absolute; top: .85rem; right: .85rem; padding: .4rem .75rem; font-size: .82rem; }
  .half-promo { flex-wrap: wrap; gap: .85rem; padding: 1rem; }
  .hp-art { width: 60px; height: 60px; flex-basis: 60px; }
  .hp-text { flex: 1 1 calc(100% - 80px); }
  .hp-cta { flex: 1 1 100%; text-align: center; padding: .85rem; }
  .tabs-inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: .6rem; }
  .search input { width: 100%; }
  .tabs { gap: 1.25rem; }
  .section { scroll-margin-top: 118px; }
  .product { padding: .85rem; }
  .p-img { width: 100px; height: 100px; flex-basis: 100px; }
  .carousel { grid-auto-columns: 170px; }
  .feat .f-img { height: 120px; }
  .drawer { width: 100vw; border-radius: 0; }
}

/* ilustração padrão (produto sem foto) */
img.ill { object-fit: contain !important; padding: 8%; }
.feat .f-img img.ill { padding: 6%; }
