/* =========================================================
   Toc'Art: estilos da loja (azul, branco e um toque de roxo)
   ========================================================= */
:root {
  --blue-900: #0b1f4d;
  --blue-800: #14234d;
  --blue-700: #1238a8;
  --blue-600: #1546c9;
  --blue-500: #1f5fe0;
  --blue-100: #e6eeff;
  --blue-50:  #f3f7ff;
  --purple-600: #6a3fd6;
  --purple-500: #7a4fe0;
  --purple-100: #efe9ff;
  --white: #ffffff;
  --ink: #14234d;
  --muted: #5d6886;
  --line: #e2e8f5;
  --whats: #1faa59;
  --grad: linear-gradient(120deg, var(--blue-500) 0%, var(--purple-500) 100%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 77, .22);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 77, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
html, body { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

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

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(31, 95, 224, .7); }
.btn--primary:hover { box-shadow: 0 14px 28px -10px rgba(122, 79, 224, .7); }
.btn--light { background: #fff; color: var(--blue-600); border-color: var(--blue-100); }
.btn--white { background: #fff; color: var(--purple-600); }
.btn--ghost { background: transparent; border-color: var(--blue-500); color: var(--blue-600); }
.btn--whats { background: var(--whats); color: #fff; }
.btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.link { color: var(--blue-600); font-weight: 700; }
.link:hover { color: var(--purple-600); }
.icon-btn { background: none; border: 0; cursor: pointer; font-size: 1.1rem; padding: .4em; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--blue-50); color: var(--ink); }

/* ---------- topo ---------- */
.topbar { background: var(--blue-900); color: #cfdcff; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: center; gap: 2.5rem; padding: .45rem 16px; }

.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.25rem; padding: .7rem 16px; }
.header__logo img { height: 52px; width: auto; }

.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: var(--blue-50); border: 2px solid var(--blue-100); border-radius: 999px; overflow: hidden; transition: border-color .2s; }
.search:focus-within { border-color: var(--blue-500); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: .65rem 1rem; outline: none; }
.search button { border: 0; background: none; color: var(--blue-600); padding: 0 1rem; cursor: pointer; }

.cart-btn { position: relative; border: 0; background: var(--blue-50); color: var(--blue-600); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.cart-btn:hover { background: var(--blue-100); }
.cart-btn__count { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--purple-500); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .2s; }
.cart-btn__count.is-on { transform: scale(1); }

.menu-btn { display: none; flex-direction: column; gap: 5px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

.nav { border-top: 1px solid var(--line); }
.nav__inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav__inner a { padding: .7rem .95rem; font-weight: 600; font-size: .95rem; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.nav__inner a:hover { color: var(--blue-600); }
.nav__inner a.is-active { color: var(--blue-600); border-bottom-color: var(--purple-500); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 400px at 85% 10%, rgba(122, 79, 224, .16), transparent 60%),
  radial-gradient(800px 500px at 10% 90%, rgba(31, 95, 224, .14), transparent 60%),
  linear-gradient(180deg, var(--blue-50), #fff); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-600); background: var(--purple-100); padding: .4em .9em; border-radius: 999px; margin-bottom: 1.1rem; }
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .18); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 900; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero__perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--blue-700); font-weight: 600; font-size: .92rem; }

.hero__art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hero__tile { border-radius: 26px; padding: 1rem; box-shadow: var(--shadow-lg); transition: transform .3s; aspect-ratio: 1; display: grid; place-items: center; }
.hero__tile svg { width: 100%; height: 100%; }
.hero__tile:hover { transform: translateY(-6px) rotate(-1deg); }
.hero__tile--2, .hero__tile--4 { transform: translateY(1.5rem); }
.hero__tile--2:hover, .hero__tile--4:hover { transform: translateY(1rem) rotate(1deg); }

/* fundos das ilustrações por categoria (padrão para categorias vindas do banco) */
[class*="media--"] { background: linear-gradient(145deg, #eaf0ff, #dcd6ff); }
.media--canecas      { background: linear-gradient(145deg, #e8efff, #d6e3ff); }
.media--camisetas    { background: linear-gradient(145deg, #eef0ff, #e1dcff); }
.media--impressao-3d { background: linear-gradient(145deg, #e2ecff, #cfdcff); }
.media--mdf          { background: linear-gradient(145deg, #f2f5ff, #e5eaff); }
.media--brindes      { background: linear-gradient(145deg, #f0ebff, #dfe8ff); }

/* ---------- seções ---------- */
.section { padding: 4.5rem 0; }
.section--tight { padding: 2rem 0 4rem; }
.section--soft { background: var(--blue-50); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; font-weight: 850; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center p { color: var(--muted); margin: .4rem 0 0; }

/* categorias */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.cat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: var(--grad); opacity: .08; transition: opacity .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.cat:hover::after { opacity: .18; }
.cat__icon { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-50); margin-bottom: .4rem; }
.cat strong { font-size: 1.1rem; }
.cat small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.cat__count { margin-top: auto; padding-top: .6rem; font-size: .8rem; font-weight: 700; color: var(--purple-600); }

/* grade de produtos */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 1.2rem; }
.card__media svg, .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card__media svg { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.card__cat { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-600); }
.card__title { font-size: 1rem; font-weight: 700; margin: 0; }
.card__title a:hover { color: var(--blue-600); }
.price { display: flex; align-items: baseline; gap: .5rem; margin-top: .3rem; }
.price s { color: var(--muted); font-size: .88rem; }
.price strong { font-size: 1.25rem; color: var(--blue-600); font-weight: 850; }
.price--lg strong { font-size: 2rem; }
.installments { font-size: .82rem; color: var(--muted); margin-bottom: .7rem; }
.card .btn { margin-top: auto; }
.badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 800; padding: .3em .7em; border-radius: 999px; }
.badge--off { left: auto; right: .8rem; background: var(--purple-500); }

/* técnicas */
.techs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tech { padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.tech:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tech__icon { font-size: 2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--grad); margin-bottom: 1rem; }
.tech h3 { font-size: 1.25rem; }
.tech p { color: var(--muted); }

/* passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 1rem; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* promo */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem; border-radius: 28px; color: #fff; background:
  radial-gradient(500px 240px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%),
  linear-gradient(120deg, var(--blue-700), var(--purple-600)); box-shadow: var(--shadow-lg); }
.promo h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 850; }
.promo p { opacity: .9; max-width: 38em; margin: 0; }

/* faq */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple-500); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- categoria ---------- */
.page-head { background: linear-gradient(120deg, var(--blue-600), var(--purple-500)); color: #fff; padding: 2.6rem 0; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: .3rem 0; }
.page-head p { opacity: .9; margin: 0; }
.page-head .crumbs, .page-head .crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { text-decoration: underline; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5em 1em; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100); font-weight: 600; font-size: .9rem; color: var(--blue-700); }
.chip:hover { border-color: var(--blue-500); }
.chip.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.sort select { padding: .5em .8em; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- produto ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pdp__media { position: sticky; top: 140px; border-radius: 28px; padding: 2.5rem; aspect-ratio: 1; display: grid; place-items: center; }
.pdp__media svg, .pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 850; margin: .4rem 0 .6rem; }
.pdp__desc { color: var(--muted); margin: 1rem 0 1.5rem; }
.pdp__form { display: flex; flex-direction: column; gap: 1.2rem; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-weight: 700; margin-bottom: .6rem; font-size: .95rem; }
.opt legend b { color: var(--blue-600); }
.opt__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt__list input { position: absolute; opacity: 0; pointer-events: none; }
.pill { padding: .5em 1em; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; transition: border-color .15s, background .15s; }
.pill:hover { border-color: var(--blue-100); }
input:checked + .pill { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }
input:focus-visible + .pill, input:focus-visible + .swatch { outline: 3px solid var(--purple-500); outline-offset: 2px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; background: var(--sw); cursor: pointer; border: 2px solid var(--line); box-shadow: inset 0 0 0 3px #fff; transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
input:checked + .swatch { border-color: var(--purple-500); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--purple-100); }
.field { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; font-size: .95rem; }
.field small { font-weight: 500; color: var(--muted); }
.field textarea, .input { width: 100%; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; resize: vertical; font-weight: 400; }
.field textarea:focus, .input:focus { outline: none; border-color: var(--blue-500); }
.note { background: var(--purple-100); color: #4b2fa3; padding: .9rem 1rem; border-radius: 12px; font-size: .9rem; }
.buy { display: flex; gap: .75rem; }
.buy .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 100%; min-height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--blue-600); }
.qty button:hover { background: var(--blue-50); }
.qty input { width: 44px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 30px; min-height: 30px; font-size: 1rem; }
.qty--sm span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.pdp__perks { list-style: none; padding: 1.2rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; color: var(--muted); font-size: .93rem; }

/* ---------- carrinho ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 31, 77, .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 61; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.drawer__foot { padding: 1.1rem 1.3rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; background: var(--blue-50); }
.drawer__foot:empty { display: none; }
.cart-empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.cart-empty span { font-size: 3rem; }
.ci { position: relative; display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.ci__media { width: 78px; height: 78px; flex: none; border-radius: 12px; padding: .4rem; }
.ci__media svg, .ci__media img { width: 100%; height: 100%; object-fit: cover; }
.ci__info { flex: 1; display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding-right: 1.6rem; }
.ci__info strong { font-size: .93rem; }
.ci__info small { color: var(--muted); font-size: .8rem; }
.ci__text { font-style: italic; overflow-wrap: anywhere; }
.ci__row { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.ci__row b { color: var(--blue-600); }
.ci__rm { position: absolute; top: .6rem; right: 0; font-size: .9rem; }
.ship { font-size: .88rem; color: var(--muted); }
.ship__bar { height: 6px; border-radius: 6px; background: var(--blue-100); margin-top: .4rem; overflow: hidden; }
.ship__bar span { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .3s; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total strong { font-size: 1.35rem; color: var(--blue-600); }

/* ---------- rodapé ---------- */
.footer { background: var(--blue-900); color: #c6d3f5; padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a:hover { color: #fff; }
.footer p { font-size: .92rem; max-width: 30em; }
.pay { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay span { padding: .35em .8em; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; font-size: .85rem; color: #8fa1d0; }

/* ---------- flutuantes ---------- */
.whats-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--whats); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(31, 170, 89, .7); transition: transform .2s; }
.whats-float:hover { transform: scale(1.08); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; background: var(--blue-900); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; transition: transform .3s; box-shadow: var(--shadow-lg); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__inner, .pdp { grid-template-columns: 1fr; gap: 2rem; }
  .hero__inner { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  .hero__art { max-width: 460px; margin: 0 auto; }
  .pdp__media { position: static; padding: 1.5rem; }
  .techs { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: flex-start; padding: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
  .cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .header__inner { flex-wrap: wrap; gap: .6rem; }
  .header__logo img { height: 42px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; width: 44px; height: 44px; }
  .menu-btn { display: flex; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__inner { flex-direction: column; padding-bottom: .5rem; }
  .nav__inner a { border-bottom: 0; border-left: 3px solid transparent; }
  .nav__inner a.is-active { border-left-color: var(--purple-500); }
  .section { padding: 3rem 0; }
  .section__head { flex-wrap: wrap; }
  .card__body { padding: .8rem .85rem 1rem; }
  .card .btn { padding: .7em .6em; font-size: .9rem; }
  .card__title { font-size: .92rem; }
  .pdp__media, .hero__tile { min-width: 0; }
  .price strong { font-size: 1.1rem; }
  .steps { grid-template-columns: 1fr; }
  .buy { flex-direction: column; }
  .qty { align-self: flex-start; }
}
@media (max-width: 420px) {
  .cats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__perks { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* carregando */
.loading { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); }
.loading span { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--blue-100); border-top-color: var(--purple-500); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ações do card */
.card__actions { display: flex; align-items: stretch; gap: .5rem; margin-top: auto; }
.card__actions .btn { margin-top: 0; }
.card__actions .btn--primary { flex: 1; min-width: 0; }
.btn--add { flex: none; width: 46px; padding: 0; background: var(--purple-100); color: var(--purple-600); border-color: transparent; }
.btn--add:hover { background: var(--purple-500); color: #fff; }

/* produtos do banco: galeria, estoque, descrição */
.pdp__gallery { position: sticky; top: 140px; display: grid; gap: .8rem; }
.pdp__gallery .pdp__media { position: relative; top: 0; padding: 0; overflow: hidden; }
.pdp__media img { border-radius: inherit; }
.thumbs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .2rem; }
.thumb { flex: none; width: 74px; height: 74px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--blue-50); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--purple-500); }
.card__media img { border-radius: 0; }
.card__media:has(img) { padding: 0; }
.pdp__desc { white-space: pre-line; }
.stock { color: var(--purple-600); font-weight: 700; margin: .6rem 0 0; }
.stock--out { color: #c0392b; }
.badge--out { left: auto; right: .8rem; top: auto; bottom: .8rem; background: #1d2333; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 860px) { .pdp__gallery { position: static; } }

/* fotos reais sempre em quadro fixo, recortadas */
.hero__art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__tile, .card__media, .pdp__media { position: relative; overflow: hidden; }
.hero__tile:has(img) { padding: 0; }
.hero__tile img, .card__media img, .pdp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__media:has(img) { background: #fff; }
.pdp__media img { object-fit: contain; }

/* botão de personalizar (WhatsApp) no card */
.btn--wa { flex: none; width: 46px; padding: 0; background: #e6f7ee; color: var(--whats); border-color: transparent; }
.btn--wa:hover { background: var(--whats); color: #fff; }
.btn--whats svg { flex: none; }
.pdp__form { margin-top: 1.5rem; }
.pdp__subtitle { font-size: 1.1rem; margin: 2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pdp__subtitle + .pdp__desc { margin-top: 0; }
