/* Marilia Kids — cores vivas, animações e interações
   As animações só rodam quando o visitante NÃO pediu "reduzir movimento". */

:root {
  --orange: #FF7A1A;
  --pink: #FF3D81;
  --violet: #7C4DFF;
  --sky: #18B8FF;
  --lemon: #FFD83D;
  --mint: #2EDCA0;
  --ink: #2B2320;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 110px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barra do topo (letreiro) ---------- */
.topbar {
  background: linear-gradient(90deg, #C2410C, #BE185D, #6D28D9, #0E7490, #C2410C);
  background-size: 300% 100%;
  color: #fff; font-size: 14px; font-weight: 800; padding: 10px 0;
  overflow: hidden; white-space: nowrap;
}
.topbar-track { display: inline-flex; width: max-content; }
.topbar-group { display: inline-flex; flex: none; }
.topbar-group span { padding: 0 32px; }
.topbar-group span::after { content: "✦"; margin-left: 64px; opacity: .7; }
.topbar:hover .topbar-track { animation-play-state: paused; }

/* ---------- cabeçalho fixo ---------- */
.header-wrap {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 246, 233, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: box-shadow .3s, background .3s;
}
.header-wrap.scrolled { box-shadow: 0 8px 28px rgba(190, 24, 93, .14); background: rgba(255, 255, 255, .92); }
.logo-h { transition: height .3s ease; }
.header-wrap.scrolled .logo-h { height: 64px !important; }
.navlink { position: relative; }
.navlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--pink)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.navlink:hover::after, .navlink:focus-visible::after { transform: scaleX(1); }
.icon-btn { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, box-shadow .2s; }
.icon-btn:hover { transform: translateY(-2px) scale(1.06); border-color: var(--orange) !important; box-shadow: 0 8px 18px rgba(255, 122, 26, .3); }
#cart-button { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
#cart-button:hover { transform: translateY(-2px) scale(1.05); background: #BE185D !important; }
.search-bar { padding: 0 24px 16px; max-width: 1240px; margin: 0 auto; }
.search-bar input {
  width: 100%; height: 52px; border-radius: 16px; border: 2px solid var(--orange); padding: 0 20px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}

/* ---------- botões ---------- */
.btn {
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, filter .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 26px rgba(255, 122, 26, .5); filter: saturate(1.15); }
.btn:hover::after { transform: translateX(130%); transition: transform .7s; }
.btn:active { transform: scale(.95); }
.btn.added { background: #15803D !important; color: #fff !important; }
.btn.added svg { stroke: #fff; }
.btn-ghost { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, box-shadow .2s; }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--violet) !important; box-shadow: 0 10px 22px rgba(124, 77, 255, .25); }

/* ---------- hero ---------- */
.hero-wrap { position: relative; overflow: hidden; isolation: isolate; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); z-index: -1; pointer-events: none; }
.b1 { width: 440px; height: 440px; background: var(--lemon); top: 10%; right: -90px; opacity: .6; }
.b2 { width: 380px; height: 380px; background: var(--pink); bottom: 4%; left: -140px; opacity: .35; }
.b3 { width: 320px; height: 320px; background: var(--sky); top: 28%; left: 42%; opacity: .32; }
.spark { position: absolute; z-index: -1; pointer-events: none; }
.hero-tag { background: linear-gradient(90deg, #FFD83D, #FF9F43) !important; color: var(--ink) !important; }
.grad-text {
  background: linear-gradient(90deg, #EA580C, #DB2777, #7C3AED, #EA580C);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
}
.hero-media { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.hero-media img { box-shadow: 0 30px 60px rgba(124, 77, 255, .28); }

/* ---------- faixa de vantagens ---------- */
.perk { transition: transform .25s; }
.perk:hover { transform: translateY(-4px); }
.perk:hover .perk-ico { animation: wiggle .6s; }
.perk-ico { transition: transform .25s; }

/* ---------- categorias ---------- */
.cat-card {
  transition: transform .35s cubic-bezier(.2, 1.2, .3, 1.2), box-shadow .35s;
  box-shadow: 0 4px 0 rgba(43, 35, 32, .06);
}
.cat-card img { transition: transform .6s; }
.cat-card:hover { transform: translateY(-10px) rotate(-1.6deg) scale(1.03); box-shadow: 0 22px 36px rgba(43, 35, 32, .2); }
.cat-card:hover img { transform: scale(1.1) rotate(1.5deg); }
.cat-card[aria-current="true"] { outline: 4px solid var(--ink); outline-offset: 3px; }
.cat-img { overflow: hidden; border-radius: 18px; }

/* ---------- filtros e produtos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font: inherit; font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid #FFC9A6; background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s, border-color .2s, color .2s;
}
.chip:hover { transform: translateY(-3px) scale(1.05); border-color: var(--orange); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-msg { margin: 32px 0 0; padding: 28px; text-align: center; border-radius: 24px; background: #fff; font-weight: 800; }

.card { transition: transform .35s cubic-bezier(.2, 1.2, .3, 1.2), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-10px) rotate(-.5deg); box-shadow: 0 26px 44px rgba(255, 61, 129, .2); border-color: #FFB4CF !important; }
.imgwrap { overflow: hidden; }
.imgwrap img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.card:hover .imgwrap img { transform: scale(1.1); }
.badge { font-size: 12px; font-weight: 800; letter-spacing: .5px; padding: 6px 12px; border-radius: 999px; color: #fff; }
.badge-off { background: #E11D48; }
.badge-new { background: #7C3AED; }
.badge-hot { background: var(--orange); color: var(--ink); }
.badge-school { background: #0E7490; }
.fav { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.fav:hover { transform: scale(1.18); box-shadow: 0 8px 18px rgba(255, 61, 129, .35); }
.fav.popping svg { animation: pop .45s; }

/* ---------- promoção ---------- */
.promo-box {
  background: linear-gradient(135deg, #4F2BFF 0%, #8B2FE8 45%, #FF3D81 100%) !important;
  box-shadow: 0 30px 60px rgba(79, 43, 255, .3);
}
.promo-box .dot-a { background: #FF7A1A !important; opacity: .9; }
.coupon {
  font: inherit; font-family: 'Fredoka', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: 3px;
  background: #fff; color: var(--ink); border: 2px dashed #7C3AED; outline: 6px solid #fff;
  border-radius: 16px; padding: 14px 24px; cursor: pointer; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.coupon:hover { transform: rotate(-3deg) scale(1.06); }
.coupon small { display: block; font-family: 'Nunito', sans-serif; font-size: 12px; letter-spacing: 0; font-weight: 800; color: #6D28D9; }
.countdown { display: flex; gap: 10px; margin-top: 6px; }
.cd-box { min-width: 64px; text-align: center; padding: 8px 6px; border-radius: 14px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.cd-box strong { display: block; font-family: 'Fredoka', sans-serif; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.promo-img { transition: transform .4s cubic-bezier(.2, 1.2, .3, 1.2); }
.promo-img:hover { transform: rotate(6deg) scale(1.08); }

/* ---------- depoimentos ---------- */
.depo-sec { background: linear-gradient(180deg, #FFE1EE 0%, #FFEBD2 100%) !important; }
.tcard { transition: transform .35s cubic-bezier(.2, 1.2, .3, 1.2), box-shadow .35s; box-shadow: 0 6px 0 rgba(255, 61, 129, .12); }
.tcard:hover { transform: translateY(-8px) rotate(.6deg); box-shadow: 0 24px 40px rgba(255, 61, 129, .22); }
.tcard:nth-child(2):hover { transform: translateY(-8px) rotate(-.6deg); }

/* ---------- newsletter / rodapé ---------- */
.news-box { background: linear-gradient(135deg, #FFF3C4, #FFD6E7 60%, #D9E8FF) !important; border-color: transparent !important; }
.footer-top { height: 6px; background: linear-gradient(90deg, #FF7A1A, #FF3D81, #7C4DFF, #18B8FF, #2EDCA0, #FFD83D); background-size: 200% 100%; }
footer a { transition: color .2s, transform .2s; }
footer a:hover { color: var(--lemon) !important; }
.social:hover { transform: translateY(-4px) rotate(-6deg); }

/* ---------- sacola lateral ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(43, 35, 32, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%);
  background: #FFF9F1; display: flex; flex-direction: column; visibility: hidden;
  transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .9, .2, 1), visibility 0s .4s;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -20px 0 50px rgba(0, 0, 0, .25); transition: transform .4s cubic-bezier(.2, .9, .2, 1), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #F1E4DA; }
.drawer-head h2 { margin: 0; font-family: 'Fredoka', sans-serif; font-size: 26px; }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid #EADBD0; background: #fff; font-size: 22px; cursor: pointer; transition: transform .2s, background .2s; }
.drawer-close:hover { transform: rotate(90deg); background: #FFE1EE; }
.ship { padding: 16px 22px 4px; font-weight: 800; font-size: 14px; }
.ship-bar { height: 12px; border-radius: 99px; background: #F1E4DA; margin-top: 8px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--pink)); transition: width .6s cubic-bezier(.2, .9, .2, 1); }
.cart-list { list-style: none; margin: 0; padding: 14px 22px; flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px; animation: rise .4s both; }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; }
.cart-item h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.cart-item .p { font-family: 'Fredoka', sans-serif; font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button, .rm { font: inherit; font-weight: 800; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid #EADBD0; background: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.qty button:hover { background: var(--lemon); transform: scale(1.12); }
.rm:hover { background: #FFD0D9; transform: scale(1.12); }
.qty output { min-width: 24px; text-align: center; font-weight: 800; }
.cart-empty { text-align: center; color: #6B5C55; font-weight: 700; padding: 40px 10px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid #F1E4DA; background: #fff; }
.coupon-box { margin-bottom: 12px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 2px solid #EADBD0; padding: 0 12px; font: inherit; font-size: 15px; text-transform: uppercase; background: #FFFAF5; color: #2B2320; }
.coupon-form .mini { height: 42px; padding: 0 16px; border-radius: 12px; border: none; background: #2B2320; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #E9F3E6; color: #2D5E37; font-weight: 800; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.coupon-remove { border: none; background: transparent; color: inherit; font-size: 16px; cursor: pointer; padding: 2px 6px; }
.coupon-msg { margin: 6px 2px 0; font-size: 13px; font-weight: 800; color: #B91C1C; }
.coupon-msg.ok { color: #2D5E37; }
.disc-row { color: #2D5E37; font-size: 15px; margin-bottom: 4px; }
.coupon-form[hidden], .coupon-applied[hidden], .disc-row[hidden], .coupon-msg[hidden] { display: none; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; }
.pix-note { margin: 4px 0 14px; color: #15803D; font-weight: 800; font-size: 14px; }
.checkout { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; padding: 16px; border-radius: 16px; background: var(--orange); color: var(--ink) !important; font-weight: 800; font-size: 17px; }
.checkout[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 800; padding: 14px 22px; border-radius: 16px; box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
  transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.fly { position: fixed; z-index: 130; width: 80px; height: 80px; object-fit: cover; border-radius: 50%; pointer-events: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.confetti { position: fixed; z-index: 130; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; }

/* ---------- aparecer ao rolar ---------- */
.js [data-reveal]:not(.in) { opacity: 0; }

/* ---------- animações (só sem "reduzir movimento") ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(32px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { to { background-position: 300% 0; } }
@keyframes shine { to { background-position: 250% center; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .6); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 122, 26, 0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(14deg) scale(1.1); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-6deg); } }
@keyframes badge { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }

@media (prefers-reduced-motion: no-preference) {
  .topbar { animation: flow 14s linear infinite; }
  .topbar-track { animation: marquee 32s linear infinite; }
  .footer-top { animation: flow 8s linear infinite; }
  .grad-text { animation: shine 6s linear infinite; }
  .b1 { animation: drift 14s ease-in-out infinite; }
  .b2 { animation: drift 18s ease-in-out infinite reverse; }
  .b3 { animation: drift 16s ease-in-out infinite; }
  .spark.s1 { animation: floaty 5s ease-in-out infinite; }
  .spark.s2 { animation: floaty 6.5s ease-in-out infinite reverse; }
  .spark.s3 { animation: spin 18s linear infinite; }
  .spark.s4 { animation: floaty 7s ease-in-out infinite; }
  .float-slow { animation: floaty 7s ease-in-out infinite; }
  .float-fast { animation: floaty 4.5s ease-in-out infinite; }
  .pulse { animation: pulse 2.2s infinite; }
  .badge-hot, .badge-new, .badge-off { animation: badge 2.6s ease-in-out infinite; }
  .in, .rise { animation: rise .7s cubic-bezier(.2, .9, .3, 1) backwards; animation-delay: var(--d, 0ms); }
  .bump { animation: bump .5s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar { text-align: center; }
  .topbar-track { width: auto; }
  .topbar-group + .topbar-group { display: none; }
  .topbar-group span:not(:first-child) { display: none; }
  .topbar-group span::after { display: none; }
  .drawer, .overlay, .toast { transition: none; }
}

/* ---------- celular ---------- */
@media (max-width: 820px) {
  .header-wrap { position: static; }
  .spark.s1, .spark.s2 { display: none; }
  .blob { filter: blur(48px); }
  .card:hover, .cat-card:hover, .tcard:hover { transform: none; }
}

/* ---------- carrossel da página inicial ---------- */
.carousel { position: relative; width: 100%; aspect-ratio: 6 / 5; border-radius: 40px; overflow: hidden; background: linear-gradient(135deg, #FFE1EE, #FFEBD2); box-shadow: 0 30px 60px rgba(124, 77, 255, .28); isolation: isolate; touch-action: pan-y; }
.car-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.car-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
.car-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.car-nav, .car-pause { position: absolute; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #2B2320; font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(43, 35, 32, .25); display: grid; place-items: center; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.car-nav:hover, .car-pause:hover { transform: scale(1.12); background: #fff; }
.car-prev { left: 14px; top: 50%; margin-top: -22px; }
.car-next { right: 14px; top: 50%; margin-top: -22px; }
.car-pause { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 12px; }
.car-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.car-dot { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ""; width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: width .3s, background .3s; }
.car-dot[aria-current="true"]::before { width: 26px; background: #FF7A1A; }
@media (prefers-reduced-motion: reduce) { .car-slide, .car-slide.is-active { transition: none; } }
@media (max-width: 600px) { .carousel { border-radius: 28px; } .car-prev { left: 8px; } .car-next { right: 8px; } }

/* ---------- página do produto ---------- */
.pdp { max-width: 1240px; margin: 0 auto; padding: 24px 24px 90px; }
.crumbs { font-size: 14px; color: #6B5C55; margin-bottom: 20px; }
.crumbs a { color: inherit; }
.pdp-grid.card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; background: none; border: 0 !important; border-radius: 0; box-shadow: none; overflow: visible; }
.pdp-grid.card:hover { transform: none; box-shadow: none; }
.pd.card:hover .imgwrap img { transform: none; }

.gallery { position: sticky; top: 120px; }
.gal-main { position: relative; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(124, 77, 255, .18); }
.gal-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-zoom img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gal-badge { position: absolute; top: 18px; left: 18px; }
.off-tag { position: absolute; top: 18px; right: 18px; background: #E11D48; color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.gal-nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #2B2320; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(43, 35, 32, .25); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.gal-nav:hover { transform: scale(1.12); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; }
.thumb-btn { width: 76px; height: 76px; padding: 0; border: 3px solid transparent; border-radius: 18px; overflow: hidden; background: #fff; cursor: pointer; transition: transform .2s, border-color .2s; }
.thumb-btn:hover { transform: translateY(-3px); }
.thumb-btn[aria-current="true"] { border-color: #FF7A1A; }
.thumb-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }

.buy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.buy .eyebrow { color: #C2410C; font-weight: 800; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.buy h1 { margin: 0; font-family: 'Fredoka', sans-serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.rate { display: flex; align-items: center; gap: 8px; color: #6B5C55; }
.rate strong { color: #2B2320; }
.price-box { background: #fff; border-radius: 24px; padding: 20px 22px; box-shadow: 0 4px 0 rgba(43, 35, 32, .06); }
.price-box .was { color: #6B5C55; }
.price-box .save { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: #FFE4E6; color: #BE123C; font-weight: 800; font-size: 13px; }
.price-box .now { font-family: 'Fredoka', sans-serif; font-size: 46px; font-weight: 700; line-height: 1.1; }
.price-box .inst { color: #5E4F48; }
.price-box .pix { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 14px; background: #DCFCE7; color: #14532D; }
.price-box .pix span { font-size: 14px; }

.sizes { border: 0; margin: 0; padding: 0; }
.sizes legend { font-weight: 800; padding: 0; margin-bottom: 10px; }
.sizes .req { font-weight: 600; font-size: 13px; color: #6B5C55; margin-left: 6px; }
.size-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.size-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-opts label { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 48px; padding: 0 16px; border: 2px solid #E5D5C8; border-radius: 14px; background: #fff; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.size-opts label:hover { transform: translateY(-2px); border-color: #FF7A1A; }
.size-opts input:checked + label { background: #2B2320; border-color: #2B2320; color: #fff; }
.size-opts input:focus-visible + label { outline: 3px solid #7C4DFF; outline-offset: 2px; }
.size-error { margin: 10px 0 0; color: #BE123C; font-weight: 800; }
.sizes.has-error .size-opts label { border-color: #E11D48; }
.one-size { font-weight: 600; }
.stock-line { font-weight: 800; color: #15803D; }
.stock-line.low { color: #B45309; }
.stock-line.out { color: #BE123C; }

.buy-row { display: flex; flex-wrap: wrap; gap: 12px; }
.qty-step { display: flex; align-items: center; border: 2px solid #E5D5C8; border-radius: 16px; background: #fff; overflow: hidden; }
.qty-step button { width: 46px; height: 56px; border: 0; background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; transition: background .15s; }
.qty-step button:hover { background: #FFF1D6; }
.qty-step input { width: 56px; height: 56px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 18px; background: #fff; color: inherit; -moz-appearance: textfield; appearance: textfield; }
.qty-step input::-webkit-outer-spin-button, .qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-big { flex: 1 1 220px; height: 60px; border: 0; border-radius: 16px; background: #FF7A1A; color: #2B2320; font: inherit; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.add-big:disabled { opacity: .5; cursor: not-allowed; }
.wa-ask { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 22px; border: 2px solid #EADBD0; border-radius: 16px; background: #fff; color: #2B2320; text-decoration: none; font-weight: 800; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.link-act { padding: 6px 0; border: 0; background: none; font: inherit; font-weight: 700; color: #6D28D9; cursor: pointer; text-decoration: none; }
.link-act:hover { text-decoration: underline; }
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; color: #5E4F48; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 10px; }
.info-acc { margin-top: 8px; border-top: 1px solid #F1E4DA; }
.info-acc details { border-bottom: 1px solid #F1E4DA; }
.info-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; }
.info-acc summary::-webkit-details-marker { display: none; }
.info-acc summary::after { content: "+"; font-size: 24px; font-weight: 600; color: #FF7A1A; transition: transform .2s; }
.info-acc details[open] summary::after { content: "−"; }
.acc-body { padding: 0 2px 18px; color: #5E4F48; line-height: 1.65; }
.acc-body p { margin: 0; } .acc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.rel-title { margin: 72px 0 20px; font-family: 'Fredoka', sans-serif; font-size: 32px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rel-card { display: block; background: #fff; border: 1px solid #F1E4DA; border-radius: 24px; overflow: hidden; text-decoration: none; color: #2B2320; }
.rel-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.rel-body { padding: 14px 18px 18px; }
.rel-name { font-weight: 800; }
.rel-price { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 700; }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px rgba(43, 35, 32, .15); }
.sb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sb-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-info span { font-family: 'Fredoka', sans-serif; font-size: 20px; font-weight: 700; }
.sticky-buy .btn { height: 48px; padding: 0 28px; border: 0; border-radius: 14px; background: #FF7A1A; color: #2B2320; font: inherit; font-weight: 800; font-size: 16px; }
@media (min-width: 861px) { .sticky-buy { display: none !important; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(20, 15, 12, .88); }
dialog.lightbox img { display: block; width: min(92vw, 88vh); height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 20px; background: #fff; }
.lb-close { position: absolute; top: -16px; right: -16px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #2B2320; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.lb-prev { left: -22px; } .lb-next { right: -22px; }
@keyframes shakeX { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: no-preference) { .sizes.has-error { animation: shakeX .35s; } }

@media (max-width: 860px) {
  .pdp { padding: 16px 16px 120px; }
  .pdp-grid.card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .gallery { position: static; }
  .gal-main { border-radius: 24px; }
  .price-box .now { font-size: 40px; }
  .lb-close { top: 8px; right: 8px; } .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* tamanho esgotado: riscado e sem clique */
.size-opts input:disabled + label { opacity: .45; text-decoration: line-through; cursor: not-allowed; background: #F5EEE6; }
.size-opts input:disabled + label:hover { transform: none; border-color: #E5D5C8; }
