/* ==========================================================================
   Sisi Doces — loja (mobile first)
   ========================================================================== */
:root {
  --teal: #34B9C7;
  --teal-600: #1FA0AE;
  --teal-700: #16808C;
  --teal-50: #E6F7F9;
  --pink: #F8ADB6;
  --pink-600: #EE8593;
  --pink-50: #FDECEF;
  --peach: #F9C27A;
  --peach-600: #F2A948;
  --peach-50: #FEF3E3;
  --cream: #FFF8F1;

  --bg: #FFF8F1;
  --bg-soft: #FFF1E4;
  --surface: #FFFFFF;
  --surface-2: #FFFBF7;
  --text: #1E3A3F;
  --text-2: #5B7277;
  --text-3: #8FA3A7;
  --border: #F1E4D6;
  --border-strong: #E6D3BF;
  --primary: var(--teal);
  --primary-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(30, 58, 63, .06), 0 2px 8px rgba(30, 58, 63, .05);
  --shadow: 0 6px 24px rgba(30, 58, 63, .08), 0 2px 6px rgba(30, 58, 63, .05);
  --shadow-lg: 0 20px 50px rgba(30, 58, 63, .16);
  --success: #2BB673;
  --danger: #E5566A;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --glass-bg: rgba(255,248,241,.9);
  --glass-surface: rgba(255,255,255,.94);
  --header-h: 64px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F1719;
  --bg-soft: #142023;
  --surface: #172327;
  --surface-2: #1B2A2E;
  --text: #EAF4F5;
  --text-2: #A9BEC1;
  --text-3: #6F878B;
  --border: #243538;
  --border-strong: #2F4448;
  --teal-50: #133337;
  --pink-50: #3A2328;
  --peach-50: #3A2E1D;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --glass-bg: rgba(15,23,25,.92);
  --glass-surface: rgba(23,35,39,.95);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
svg.lucide { width: 1.2em; height: 1.2em; stroke-width: 2.2; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--glass-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.app-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.app-header .container { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 46px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.1; }
.brand-text small { font-size: .74rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-nav { display: none; gap: 4px; margin-left: 24px; }
.header-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--text-2); transition: .2s; }
.header-nav a:hover, .header-nav a.active { background: var(--teal-50); color: var(--teal-700); }
:root[data-theme="dark"] .header-nav a:hover, :root[data-theme="dark"] .header-nav a.active { color: var(--teal); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); display: inline-grid; place-items: center; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .15s, background .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--pink-600); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
.cart-btn-desktop { display: none; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px;
  border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status-pill.open .dot { background: var(--success); box-shadow: 0 0 0 0 rgba(43,182,115,.6); animation: pulse 2s infinite; }
.status-pill.closed .dot { background: var(--danger); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }

/* ---------- Announcement ---------- */
.announce {
  background: linear-gradient(90deg, var(--pink), var(--peach), var(--teal));
  color: #1E3A3F; font-weight: 800; font-size: .8rem; overflow: hidden; white-space: nowrap;
}
.announce-track { display: inline-flex; gap: 48px; padding: 7px 0; animation: marquee 28s linear infinite; }
.announce-track span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin: 16px 0 0; border-radius: var(--r-xl); overflow: hidden;
  padding: 28px 22px 26px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(249,194,122,.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(248,173,182,.6) 0%, transparent 60%),
    linear-gradient(135deg, #34B9C7 0%, #22A3B1 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-arcs { position: absolute; right: -60px; top: -40px; width: 260px; opacity: .45; z-index: -1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .78rem; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2rem, 8vw, 3.4rem); margin: 14px 0 8px; font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.08); }
.hero p { max-width: 460px; font-size: 1rem; opacity: .95; font-weight: 600; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero .btn-light { background: #fff; color: var(--teal-700); }
.hero .btn-ghost-light { background: rgba(255,255,255,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.hero-sparkle { position: absolute; width: 22px; color: #FFE3B3; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(20deg); opacity: .5; } }

/* ---------- Info strip ---------- */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-sm);
}
.info-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.info-card .ic.teal { background: var(--teal-50); color: var(--teal-600); }
.info-card .ic.pink { background: var(--pink-50); color: var(--pink-600); }
.info-card .ic.peach { background: var(--peach-50); color: var(--peach-600); }
.info-card b { display: block; font-size: .86rem; line-height: 1.2; }
.info-card small { color: var(--text-2); font-size: .74rem; line-height: 1.2; display: block; }
.info-card.wide { grid-column: 1 / -1; }

/* ---------- Search + chips ---------- */
.catalog-bar { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); padding: 12px 0 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 0 14px; height: 50px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(52,185,199,.18); }
.search svg { color: var(--text-3); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-weight: 600; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--border); font-weight: 800; font-size: .88rem; white-space: nowrap;
  scroll-snap-align: start; transition: .2s;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Sections ---------- */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.section-head .emoji { font-size: 1.3rem; }
.section-head a { color: var(--teal-600); font-weight: 800; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Featured carousel ---------- */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 14px; }
.rail::-webkit-scrollbar { display: none; }
.feature-card {
  flex: 0 0 78%; max-width: 330px; scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); position: relative;
}
.feature-card .media { aspect-ratio: 4 / 3; position: relative; }
.feature-card .body { padding: 14px 16px 16px; display: flex; align-items: center; gap: 10px; }
.feature-card h3 { font-size: 1.08rem; }
.feature-card .desc { color: var(--text-2); font-size: .84rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .media { aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card h3 { font-size: .98rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .desc { color: var(--text-2); font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .foot { display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 6px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text); line-height: 1.1; }
.price small { font-family: var(--font); font-size: .72rem; color: var(--text-2); font-weight: 700; }
.price-old { font-size: .78rem; color: var(--text-3); text-decoration: line-through; font-weight: 700; display: block; }
.card-link::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.add-btn {
  position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 14px; border: 0; flex-shrink: 0;
  background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(52,185,199,.40);
  transition: transform .15s, background .2s;
}
.add-btn:hover { background: var(--teal-600); }
.add-btn:active { transform: scale(.88); }
.add-btn.added { background: var(--success); animation: pop .4s; }
@keyframes pop { 40% { transform: scale(1.25); } }

.tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 900; letter-spacing: .02em; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm);
}
.tag.promo { background: var(--pink-600); color: #fff; }
.tag.video { left: auto; right: 10px; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; gap: 4px; align-items: center; backdrop-filter: blur(4px); }
.tag.soldout { background: var(--text); color: var(--bg); }
.product-card.unavailable .media { filter: grayscale(.8); opacity: .7; }

/* Placeholder (produto sem foto) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.2rem; position: relative; overflow: hidden; }
.ph::before, .ph::after { content: ''; position: absolute; border-radius: 50%; border: 10px solid rgba(255,255,255,.45); }
.ph::before { width: 150%; aspect-ratio: 1; top: 55%; left: -25%; }
.ph::after { width: 110%; aspect-ratio: 1; top: 70%; left: -5%; border-color: rgba(255,255,255,.35); }
.ph span { position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.ph.pink { background: linear-gradient(145deg, #FDD5DB, #F8ADB6); }
.ph.teal { background: linear-gradient(145deg, #BDEBF0, #7FD3DC); }
.ph.peach { background: linear-gradient(145deg, #FDE3BF, #F9C27A); }
.ph.cream { background: linear-gradient(145deg, #FFF3E6, #F7DCC4); }
:root[data-theme="dark"] .ph { filter: saturate(.85) brightness(.85); }

/* ---------- Party banner ---------- */
.party-banner {
  margin-top: 28px; border-radius: var(--r-xl); padding: 22px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--pink) 0%, var(--peach) 100%); color: #3A2328; display: grid; gap: 12px;
  box-shadow: var(--shadow);
}
.party-banner h2 { font-size: 1.5rem; font-weight: 700; }
.party-banner p { font-weight: 700; opacity: .85; max-width: 480px; }
.party-banner .confetti { position: absolute; right: -10px; bottom: -10px; font-size: 5rem; transform: rotate(-12deg); opacity: .9; }
.party-banner .btn { justify-self: start; background: #3A2328; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
  border-radius: 16px; border: 0; font-weight: 800; font-size: 1rem; white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 22px rgba(52,185,199,.35); }
.btn-primary:hover { background: var(--teal-600); }
.btn-pink { background: var(--pink-600); color: #fff; box-shadow: 0 10px 22px rgba(238,133,147,.35); }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 22px rgba(37,211,102,.3); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 14px; border-radius: 12px; font-size: .9rem; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--glass-surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0;
  font-size: .7rem; font-weight: 800; color: var(--text-3); position: relative; transition: color .2s;
}
.bottom-nav svg.lucide { width: 24px; height: 24px; }
.bottom-nav .active { color: var(--teal-600); }
:root[data-theme="dark"] .bottom-nav .active { color: var(--teal); }
.bottom-nav .active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: currentColor; }
.bottom-nav .nav-cart .bubble {
  width: 54px; height: 54px; margin-top: -26px; border-radius: 20px; background: var(--teal); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 20px rgba(52,185,199,.45); border: 4px solid var(--bg); position: relative;
}
.bottom-nav .nav-cart .count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--pink-600);
  color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg);
}
.bottom-nav .nav-cart.bump .bubble { animation: pop .45s; }

/* ---------- Floating cart bar ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 55;
  background: var(--text); color: var(--bg); border-radius: 18px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); transform: translateY(150%); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s;
  max-width: 560px; margin: 0 auto; border: 0; width: auto; text-align: left;
}
.cart-bar.show { transform: none; opacity: 1; }
.cart-bar .info { flex: 1; min-width: 0; line-height: 1.2; }
.cart-bar .info small { opacity: .7; font-size: .76rem; font-weight: 700; display: block; }
.cart-bar .info b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.cart-bar .go { background: var(--teal); color: #fff; border-radius: 13px; padding: 10px 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Sheet / Drawer ---------- */
.overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 23, 25, .5); backdrop-filter: blur(3px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 92vh; max-height: 92dvh; background: var(--bg);
  border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform .4s cubic-bezier(.2,.9,.3,1); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); padding-bottom: var(--safe-b);
}
.sheet.show { transform: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: var(--border-strong); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.sheet-head h3 { font-size: 1.3rem; }
.sheet-body { overflow-y: auto; padding: 0 18px 12px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); background: var(--surface); }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .thumb .ph { font-size: 1.8rem; }
.cart-item .thumb .ph::before, .cart-item .thumb .ph::after { border-width: 4px; }
.cart-item .meta { flex: 1; min-width: 0; }
.cart-item .meta b { display: block; font-size: .95rem; line-height: 1.25; }
.cart-item .meta small { color: var(--text-2); font-weight: 700; }
.cart-item .note-input { margin-top: 6px; width: 100%; border: 1px dashed var(--border-strong); background: transparent; border-radius: 10px; padding: 5px 9px; font-size: .8rem; outline: 0; }
.cart-item .note-input:focus { border-color: var(--teal); border-style: solid; }

.qty { display: inline-flex; align-items: center; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; height: 40px; overflow: hidden; }
.qty button { width: 38px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--teal-600); }
.qty button:active { background: var(--teal-50); }
.qty input, .qty span { width: 38px; text-align: center; font-weight: 900; border: 0; background: none; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.lg { height: 52px; border-radius: 16px; }
.qty.lg button { width: 50px; }
.qty.lg input { width: 50px; font-size: 1.15rem; }

.summary-row { display: flex; justify-content: space-between; font-weight: 700; color: var(--text-2); padding: 3px 0; }
.summary-row.total { color: var(--text); font-size: 1.15rem; font-family: var(--font-display); font-weight: 600; padding-top: 8px; }

.empty-state { text-align: center; padding: 36px 16px; color: var(--text-2); }
.empty-state .big { font-size: 3.6rem; margin-bottom: 8px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Product page ---------- */
.product-page { padding-bottom: 110px; }
.gallery { position: relative; margin: 0 -16px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / 1; max-height: 70vh; background: var(--bg-soft); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; display: grid; place-items: center; overflow: hidden; }
.gallery-slide img, .gallery-slide video { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide iframe { width: 100%; height: 100%; border: 0; }
.gallery-slide .ph { font-size: 6rem; }
.gallery-dots { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gallery-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.6); padding: 0; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gallery-dots button.active { width: 22px; background: #fff; }
.gallery-thumbs { display: none; }
.gallery-back { position: absolute; top: 12px; left: 12px; z-index: 3; }
.gallery-share { position: absolute; top: 12px; right: 12px; z-index: 3; }
.gallery .icon-btn { background: var(--glass-surface); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.play-badge { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; pointer-events: none; }

.product-sheet { position: relative; background: var(--bg); border-radius: 28px 28px 0 0; margin: -28px -16px 0; padding: 22px 16px 0; z-index: 2; }
.product-sheet .cat { color: var(--teal-600); font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.product-sheet h1 { font-size: 1.75rem; margin: 6px 0 8px; }
.product-sheet .price-lg { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product-sheet .price-lg small { font-family: var(--font); font-size: .9rem; color: var(--text-2); font-weight: 700; }
.product-sheet .price-lg s { font-size: 1rem; color: var(--text-3); font-family: var(--font); font-weight: 700; }
.lead { color: var(--text-2); font-size: 1rem; margin-top: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 800; color: var(--text-2); }
.pill svg { color: var(--teal-600); }
.detail-block { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.detail-block h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.detail-block p { color: var(--text-2); white-space: pre-line; }
.field-label { font-weight: 800; font-size: .9rem; margin-bottom: 6px; display: block; }
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 55; padding: 12px 16px;
  background: var(--glass-surface); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.buy-bar .btn { flex: 1; }
.buy-bar .btn b { margin-left: auto; font-family: var(--font-display); font-weight: 600; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.form-card > h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-card > h2 .step { width: 28px; height: 28px; border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.input, .select, .textarea {
  width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2);
  padding: 0 14px; outline: 0; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(52,185,199,.16); background: var(--surface); }
.input.invalid { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3-1 { display: grid; grid-template-columns: 2.2fr 1fr; gap: 10px; }
.hint { font-size: .8rem; color: var(--text-2); margin-top: 5px; font-weight: 600; }
@media (max-width: 440px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--border);
  background: var(--surface-2); font-weight: 800; transition: .2s; height: 100%;
}
.seg .opt small { display: block; font-weight: 700; color: var(--text-2); font-size: .76rem; }
.seg .opt svg { color: var(--teal-600); width: 24px; height: 24px; }
.seg input:checked + .opt { border-color: var(--teal); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(52,185,199,.18); }

.dates { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 8px; scroll-snap-type: x proximity; }
.dates::-webkit-scrollbar { display: none; }
.date-btn {
  flex: 0 0 70px; scroll-snap-align: start; border-radius: 18px; border: 1.5px solid var(--border); background: var(--surface-2);
  padding: 10px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: .2s;
}
.date-btn small { font-size: .72rem; font-weight: 800; color: var(--text-2); text-transform: uppercase; }
.date-btn b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.date-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(52,185,199,.35); }
.date-btn.active small { color: rgba(255,255,255,.85); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.time-btn { border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); padding: 11px 8px; font-weight: 800; text-align: center; transition: .2s; }
.time-btn small { display: block; font-size: .7rem; color: var(--text-2); font-weight: 700; }
.time-btn.active { border-color: var(--teal); background: var(--teal-50); color: var(--teal-700); box-shadow: 0 0 0 3px rgba(52,185,199,.18); }
:root[data-theme="dark"] .time-btn.active { color: var(--teal); }

.notice {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--r); font-size: .9rem; font-weight: 700; line-height: 1.45;
  background: var(--peach-50); color: var(--text); border: 1px solid rgba(249,194,122,.5);
}
.notice svg { color: var(--peach-600); width: 22px; height: 22px; margin-top: 1px; }
.notice.teal { background: var(--teal-50); border-color: rgba(52,185,199,.35); }
.notice.teal svg { color: var(--teal-600); }
.notice.pink { background: var(--pink-50); border-color: rgba(248,173,182,.6); }
.notice.pink svg { color: var(--pink-600); }

.page-title { padding: 18px 0 4px; display: flex; align-items: center; gap: 12px; }
.page-title h1 { font-size: 1.6rem; }
.page-title p { color: var(--text-2); font-weight: 600; font-size: .92rem; }

/* ---------- Order status page ---------- */
.success-hero { text-align: center; padding: 26px 16px 8px; }
.success-hero .check {
  width: 86px; height: 86px; border-radius: 30px; margin: 0 auto 14px; background: linear-gradient(135deg, var(--teal), #5fd0db);
  display: grid; place-items: center; color: #fff; box-shadow: 0 16px 34px rgba(52,185,199,.40); animation: pop .6s;
}
.success-hero .check svg { width: 44px; height: 44px; stroke-width: 3; }
.success-hero h1 { font-size: 1.6rem; }
.success-hero p { color: var(--text-2); font-weight: 600; margin-top: 6px; }
.code-pill { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 12px; background: var(--surface); border: 1.5px dashed var(--border-strong); font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--text-3); flex-shrink: 0; z-index: 1; }
.timeline li.done .dot { background: var(--teal); color: #fff; }
.timeline li.done::before { background: var(--teal); }
.timeline li.current .dot { background: var(--pink-600); color: #fff; box-shadow: 0 0 0 5px rgba(248,173,182,.35); }
.timeline b { display: block; font-size: .95rem; }
.timeline small { color: var(--text-2); font-weight: 600; }
.timeline li:not(.done):not(.current) b { color: var(--text-3); }

.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-weight: 700; }
.line-item:last-child { border-bottom: 0; }
.line-item span:first-child { color: var(--text-2); }

/* ---------- Party ---------- */
.party-hero { border-radius: var(--r-xl); padding: 24px 20px; margin-top: 16px; background: linear-gradient(140deg, var(--pink) 0%, var(--peach) 100%); color: #3A2328; position: relative; overflow: hidden; }
.party-hero h1 { font-size: 2rem; font-weight: 700; padding-right: 48px; }
.party-hero p { font-weight: 700; margin-top: 6px; max-width: 520px; }
.party-hero .deco { position: absolute; right: 8px; top: 8px; font-size: 3rem; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(8deg); } }
.party-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--border); transition: border-color .2s, background .2s; }
.party-item + .party-item { margin-top: 10px; }
.party-item.selected { border-color: var(--pink-600); background: var(--pink-50); }
.party-item .thumb { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.party-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.party-item .thumb .ph { font-size: 1.7rem; }
.party-item .thumb .ph::before, .party-item .thumb .ph::after { border-width: 4px; }
.party-item .meta { flex: 1; min-width: 0; }
.party-item .meta b { display: block; line-height: 1.2; font-size: .95rem; }
.party-item .meta small { color: var(--text-2); font-weight: 700; font-size: .8rem; }
.party-item .qty button { color: var(--pink-600); }
.calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.calc div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; }
.calc b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; display: block; }
.calc small { color: var(--text-2); font-weight: 700; font-size: .72rem; }

/* ---------- Orders list ---------- */
.order-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.order-card + .order-card { margin-top: 10px; }
.order-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); flex-shrink: 0; }
.order-card .meta { flex: 1; min-width: 0; }
.order-card .meta b { display: block; }
.order-card .meta small { color: var(--text-2); font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 900; white-space: nowrap; }
.badge-pink { background: var(--pink-50); color: #C9485B; }
.badge-teal { background: var(--teal-50); color: var(--teal-700); }
.badge-orange { background: var(--peach-50); color: #B7701A; }
.badge-purple { background: #F1EAFD; color: #7B4FD1; }
.badge-blue { background: #E6F0FF; color: #2F6FD6; }
.badge-green { background: #E3F7EC; color: #1E8C55; }
.badge-gray { background: var(--bg-soft); color: var(--text-2); }
:root[data-theme="dark"] .badge-pink { color: #FFB3BE; }
:root[data-theme="dark"] .badge-teal { color: #7FDCE6; }
:root[data-theme="dark"] .badge-orange { color: #FFCB85; }
:root[data-theme="dark"] .badge-purple { background: #2B2440; color: #C4A8FF; }
:root[data-theme="dark"] .badge-blue { background: #1D2A40; color: #9CC1FF; }
:root[data-theme="dark"] .badge-green { background: #183326; color: #7FE0AA; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; padding: 30px 0 30px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.site-footer .grid-f { display: grid; gap: 22px; }
.site-footer h4 { font-size: 1rem; margin-bottom: 10px; }
.site-footer p, .site-footer li { color: var(--text-2); font-size: .9rem; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hours li { display: flex; justify-content: space-between; max-width: 260px; }
.hours li.today { color: var(--teal-600); font-weight: 900; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); }
.copy { text-align: center; color: var(--text-3); font-size: .8rem; margin-top: 26px; font-weight: 600; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 10px); left: 0; right: 0; z-index: 200; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 16px; font-weight: 800; font-size: .92rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.3); max-width: 440px;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.95); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-20px); opacity: 0; } }

.fly { position: fixed; z-index: 300; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; pointer-events: none; transition: all .7s cubic-bezier(.5,-.3,.7,1); box-shadow: var(--shadow); }
.fly img, .fly .ph { width: 100%; height: 100%; object-fit: cover; font-size: 1.2rem; }

.closed-banner { margin-top: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .info-card.wide { grid-column: auto; }
  .feature-card { flex-basis: 46%; }
  .hero { padding: 42px 38px; }
  .site-footer .grid-f { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  :root { --header-h: 76px; }
  .bottom-nav { display: none; }
  .header-nav { display: flex; }
  .cart-btn-desktop { display: inline-grid; }
  .cart-bar { bottom: 20px; right: 24px; left: auto; width: 380px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .hero { padding: 64px 56px; margin-top: 22px; }
  .hero-arcs { width: 420px; right: -40px; top: -60px; }
  .feature-card { flex-basis: 31%; }
  .rail { margin: 0; padding: 4px 0 14px; }
  .chips { margin: 0; padding-left: 0; padding-right: 0; }
  .catalog-bar { margin: 0; padding-left: 0; padding-right: 0; }
  .sheet { left: auto; top: 0; width: 440px; max-height: none; border-radius: 28px 0 0 28px; transform: translateX(105%); }
  .sheet.show { transform: none; }
  .sheet-handle { display: none; }

  .product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 28px 0 60px; align-items: start; }
  .gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
  .gallery-track { border-radius: var(--r-xl); max-height: none; }
  .gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
  .gallery-thumbs button { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-soft); position: relative; }
  .gallery-thumbs button.active { border-color: var(--teal); }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-thumbs .vid { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; }
  .gallery-dots { bottom: 16px; }
  .product-sheet { margin: 0; padding: 0; border-radius: 0; background: transparent; }
  .product-sheet h1 { font-size: 2.4rem; }
  .buy-bar { position: static; background: none; border: 0; padding: 0; margin-top: 22px; backdrop-filter: none; }

  .checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
  .checkout-layout .aside { position: sticky; top: calc(var(--header-h) + 20px); }
  .party-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
  .party-layout .aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ==========================================================================
   Compatibilidade mobile (iOS Safari / Android antigos)
   ========================================================================== */
.row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row-3-1 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.field, .seg label { min-width: 0; }
.input, .select, .textarea { min-width: 0; max-width: 100%; display: block; }
input[type="date"].input, input[type="time"].input {
  -webkit-appearance: none; appearance: none; line-height: 46px; text-align: left;
}
input[type="date"].input::-webkit-date-and-time-value, input[type="time"].input::-webkit-date-and-time-value { text-align: left; }
.select { -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238FA3A7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg .opt { min-width: 0; line-height: 1.25; }
.seg .opt > span { min-width: 0; overflow-wrap: anywhere; }
.form-card { min-width: 0; overflow: hidden; }
.checkout-layout > div, .party-layout > div, .checkout-layout > .aside, .party-layout > .aside { min-width: 0; }
.line-item span:last-child { white-space: nowrap; }
.line-item span:first-child { min-width: 0; overflow-wrap: anywhere; }
.party-item .qty { flex-shrink: 0; }
.party-item .meta b { overflow-wrap: anywhere; }
.cart-item .qty { flex-shrink: 0; }
#submitOrder, #partySubmit { position: relative; z-index: 1; }
.checkout-layout .aside .form-card, .party-layout .aside .form-card { margin-bottom: 8px; }

@media (max-width: 440px) { .row-2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .form-card { padding: 16px 14px; }
  .dates { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
  .row-3-1 { grid-template-columns: minmax(0, 1fr) 90px; }
  .brand-text small { display: none; }
  .status-pill { padding: 6px 10px; font-size: .74rem; }
  .seg .opt { padding: 12px 10px; gap: 8px; }
  .calc b { font-size: 1.1rem; }
}
@media (max-width: 340px) {
  .seg { grid-template-columns: minmax(0, 1fr); }
  .status-pill { display: none; }
  .times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.row-2 > .field, .row-3-1 > .field { margin-bottom: 14px; }
.form-card > .row-2:last-child > .field:last-child { margin-bottom: 0; }
@media (min-width: 441px) { .form-card > .row-2:last-child > .field { margin-bottom: 0; } }
body.has-cart-bar { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 84px); }
.product-page { padding-bottom: calc(110px + var(--safe-b)); }
@media (min-width: 960px) { body.has-cart-bar { padding-bottom: 0; } }

/* ---------- Setas e arrastar do carrossel ---------- */
.rail-nav { display: flex; gap: 8px; }
.rail-arrow {
  width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--teal-600); box-shadow: var(--shadow-sm);
  transition: transform .15s, opacity .2s, background .2s;
}
.rail-arrow:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.rail-arrow:active { transform: scale(.9); }
.rail-arrow[disabled] { opacity: .35; pointer-events: none; }
.rail-nav.no-scroll { display: none; }
.rail { cursor: grab; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail.dragging * { pointer-events: none; }
.rail img { -webkit-user-drag: none; user-select: none; }
.rail { scroll-padding: 0 16px; }
@media (min-width: 960px) { .rail { scroll-padding: 0; } }

/* ---------- Vídeos na galeria (em pé ou deitados, sem cortar) ---------- */
.gallery-slide.is-video {
  background: radial-gradient(120% 90% at 50% 0%, #2a4a4f 0%, #10191b 100%);
  isolation: isolate;
}
.gallery-slide.is-video video {
  position: absolute; z-index: 1; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; background: transparent;
}
.gallery-slide.is-video iframe { position: relative; z-index: 1; }
.slide-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  filter: blur(26px) saturate(1.4) brightness(.8); transform: scale(1.3);
  opacity: 0; transition: opacity .6s ease;
}
.slide-backdrop.ready { opacity: 1; }
.gallery-slide.is-video::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), transparent 30%, transparent 70%, rgba(0,0,0,.22));
}
.video-expand {
  position: absolute; z-index: 2; right: 12px; top: 62px;
  width: 40px; height: 40px; border-radius: 14px; border: 0; color: #fff;
  background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: transform .15s, background .2s;
}
.video-expand:hover { background: rgba(0,0,0,.65); }
.video-expand:active { transform: scale(.9); }
@media (max-width: 959px) {
  /* o cartão do produto sobe 28px sobre a galeria: o vídeo termina antes dele */
  .gallery-slide.is-video video { height: calc(100% - 28px); }
  .gallery-dots { bottom: 40px; }
  .gallery:has(.gallery-slide.is-video) .gallery-dots { bottom: 84px; }
}
@media (min-width: 960px) { .video-expand { top: auto; bottom: 64px; } }
.gallery-thumbs .vid + video, .gallery-thumbs video { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Especiais (Natal, Páscoa, Dia das Mães...)
   Cores vêm da campanha: --c1 (principal), --c2 (secundária), --c3 (destaque)
   ========================================================================== */
.campaign { --c1: #B3202F; --c2: #1C6B3F; --c3: #F2C14E; }
.camp-hero {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 16px; border-radius: var(--r-xl);
  padding: 30px 22px 28px; color: #fff; min-height: 330px; display: flex; align-items: flex-end;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgba(0,0,0,.25), transparent 60%),
    linear-gradient(145deg, var(--c1) 0%, var(--c1) 45%, var(--c2) 100%);
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}
.camp-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--c3) 0 18px, #fff 18px 36px); opacity: .9;
}
.camp-hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.camp-hero-img + .camp-hero-body::before { content: ""; position: absolute; top: -200px; left: -60px; right: -60px; bottom: -40px; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1) 70%); }
.camp-hero-body { position: relative; z-index: 1; width: 100%; }
.camp-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: .78rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.camp-hero h1 { font-size: clamp(2.3rem, 10vw, 4rem); font-weight: 700; margin: 14px 0 8px; line-height: 1.02; text-shadow: 0 4px 20px rgba(0,0,0,.2); }
.camp-emoji { display: inline-block; animation: float 3.5s ease-in-out infinite; }
.camp-hero p { font-weight: 700; font-size: 1.02rem; max-width: 560px; opacity: .95; }
.camp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.camp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 13px; background: rgba(0,0,0,.22); font-weight: 800; font-size: .86rem; }
.camp-chip.hot { background: var(--c3); color: #3a2a06; box-shadow: 0 6px 18px rgba(0,0,0,.18); animation: campPulse 2.4s ease-in-out infinite; }
@keyframes campPulse { 50% { transform: scale(1.04); } }
.camp-btn { background: #fff; color: var(--c1); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.camp-btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }

.camp-snow { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.camp-snow span { color: #fff; font-family: 'Segoe UI Symbol', 'DejaVu Sans', sans-serif; position: absolute; top: -30px; animation: campFall linear infinite; opacity: .85; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
@keyframes campFall { to { transform: translateY(520px) rotate(260deg); } }

.camp-desc { margin: 22px auto 0; padding: 0 4px; font-size: 1.05rem; font-weight: 600; color: var(--text-2); line-height: 1.6; text-align: center; max-width: 760px; }
.camp-notice {
  display: flex; gap: 12px; margin-top: 18px; padding: 16px; border-radius: var(--r); font-weight: 700; font-size: .92rem;
  background: var(--surface); border: 2px dashed var(--c3); box-shadow: var(--shadow-sm);
}
.camp-notice svg { color: var(--c1); width: 22px; height: 22px; }
:root[data-theme="dark"] .camp-notice svg { color: var(--c3); }

.camp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.camp-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  border: 2px solid transparent; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2,.8,.2,1);
  background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(145deg, var(--c1), var(--c3), var(--c2));
  background-origin: border-box; background-clip: padding-box, border-box;
}
.camp-card:hover { transform: translateY(-4px); }
.camp-card .media { aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.camp-card .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.camp-card h3 { font-size: 1rem; }
.camp-card .desc { color: var(--text-2); font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.camp-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.camp-card .price { color: var(--c1); }
:root[data-theme="dark"] .camp-card .price { color: var(--c3); }
.camp-card.unavailable .media { filter: grayscale(.8); opacity: .7; }
.camp-tag { background: var(--c3); color: #3a2a06; }
.camp-add { background: var(--c1); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.camp-add:hover { background: var(--c2); }

.camp-steps { margin-top: 30px; padding: 22px 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: center; }
.camp-steps h2 { font-size: 1.35rem; margin-bottom: 16px; }
.camp-steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.camp-steps-grid div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.camp-steps-grid span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.camp-steps-grid b { font-size: .98rem; }
.camp-steps-grid small { color: var(--text-2); font-weight: 700; font-size: .78rem; line-height: 1.3; }

.camp-cta { margin-top: 18px; display: grid; gap: 14px; padding: 20px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(135deg, var(--c2), var(--c1)); }
.camp-cta h2 { font-size: 1.25rem; }
.camp-cta p { font-weight: 700; opacity: .9; margin-top: 4px; }
.camp-cta .btn { justify-self: start; }

/* Banner do especial na home */
.camp-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin-top: 16px;
  padding: 18px 16px 16px 18px; border-radius: var(--r-lg); color: #fff; isolation: isolate;
  background: linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.camp-banner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--c3); opacity: .25; z-index: -1; }
.camp-banner .big { font-size: 2.6rem; line-height: 1; animation: float 3.5s ease-in-out infinite; }
.camp-banner .txt { min-width: 0; }
.camp-banner b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.camp-banner small { display: block; font-weight: 700; opacity: .92; font-size: .82rem; margin-top: 3px; }
.camp-banner .go { margin-left: auto; flex-shrink: 0; width: 40px; height: 40px; border-radius: 14px; background: #fff; color: var(--c1); display: grid; place-items: center; }
.camp-banner .ribbon { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--c3) 0 14px, #fff 14px 28px); }

/* Item do especial no menu */
.header-nav a.camp-link { color: var(--c1); font-weight: 900; }
.bottom-nav .camp-nav { color: var(--c1); }
.bottom-nav .camp-nav .e { font-size: 1.4rem; line-height: 1; height: 24px; display: grid; place-items: center; }
.product-camp-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: .8rem; color: #fff; background: linear-gradient(120deg, var(--c1), var(--c2)); }

@media (min-width: 640px) {
  .camp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .camp-steps-grid { grid-template-columns: repeat(4, 1fr); }
  .camp-cta { grid-template-columns: 1fr auto; align-items: center; }
  .camp-hero { padding: 48px 40px 40px; min-height: 380px; }
}
@media (min-width: 960px) {
  .camp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .camp-hero { padding: 64px 56px 52px; min-height: 440px; }
  .camp-banner { padding: 22px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .camp-snow { display: none; } }

/* ==========================================================================
   Cupom no checkout
   ========================================================================== */
.coupon-box { margin-top: 12px; }
.coupon-form { display: flex; gap: 8px; align-items: stretch; }
.coupon-form[hidden], .coupon-applied[hidden], .coupon-msg[hidden] { display: none; }
.coupon-field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px;
  border-radius: var(--r-sm); border: 1.5px dashed var(--border-strong); background: var(--surface-2); cursor: text; transition: .15s;
}
.coupon-field:focus-within { border-color: var(--teal); border-style: solid; background: var(--surface); box-shadow: 0 0 0 4px rgba(52,185,199,.16); }
.coupon-field svg { width: 18px; height: 18px; color: var(--pink-600); flex-shrink: 0; }
.coupon-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.coupon-field input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--text-3); }
.coupon-form .btn { height: 44px; flex-shrink: 0; }
.coupon-applied {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--pink-50), var(--peach-50)); border: 1.5px dashed var(--pink);
  animation: couponPop .35s cubic-bezier(.2,1.4,.4,1);
}
.coupon-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--pink); color: #fff; flex-shrink: 0; }
.coupon-ic svg { width: 20px; height: 20px; }
.coupon-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.coupon-txt b { font-family: var(--font-display); font-weight: 600; letter-spacing: .05em; color: var(--text); }
.coupon-txt small { font-weight: 700; color: var(--text-2); font-size: .8rem; overflow-wrap: anywhere; }
.coupon-applied .icon-btn { width: 32px; height: 32px; flex-shrink: 0; }
.coupon-msg { margin-top: 6px; font-size: .82rem; font-weight: 800; }
.coupon-msg.err { color: var(--danger); }
.coupon-msg.ok { color: var(--success); }
.summary-row.discount { color: var(--success); }
@keyframes couponPop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* ==========================================================================
   Entrega: CEP e taxa pela distância
   ========================================================================== */
.cep-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cep-row .field { flex: 0 1 200px; min-width: 0; }
.cep-input { position: relative; }
.cep-input .input { font-weight: 800; letter-spacing: .04em; padding-right: 40px; }
.cep-spin { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; }
.cep-spin[hidden] { display: none; }
.cep-help { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 10px 2px; font-weight: 800; font-size: .86rem; color: var(--teal-700); }
.cep-help svg { width: 16px; height: 16px; }
.delivery-quote {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm);
  font-weight: 700; font-size: .9rem; border: 1.5px solid var(--border); background: var(--surface-2);
}
.delivery-quote[hidden] { display: none; }
.delivery-quote > svg { width: 20px; height: 20px; flex-shrink: 0; }
.delivery-quote.loading { color: var(--text-2); }
.delivery-quote.error { border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.07); color: var(--danger); }
.delivery-quote.ok { border-color: var(--teal); background: var(--teal-50); }
.dq-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: #fff; flex-shrink: 0; }
.dq-ic svg { width: 20px; height: 20px; }
.dq-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dq-txt b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.dq-txt small { color: var(--text-2); font-weight: 700; font-size: .8rem; }
.sum-km { font-weight: 700; color: var(--text-3); font-size: .8rem; }
#sumFee.pending { color: var(--text-3); font-size: .85rem; font-style: italic; }
@media (max-width: 440px) {
  .cep-row { gap: 0 12px; }
  .cep-row .field { flex: 1 1 150px; }
}
.cep-spin .spinner, .delivery-quote .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(52,185,199,.25); border-top-color: var(--teal); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
