/* Fan Joy Store — identidade: azul-marinho, vermelho, branco e detalhes em amarelo.
   Layout: vitrine editorial com artes grandes da Lilian, grade de produtos limpa e painel de gestão funcional.
   Tema único e claro, por escolha: as cores da marca são fixas. */
:root {
  --navy: #16224F;
  --navy-2: #22316A;
  --red: #E3263A;
  --red-ink: #C11D31;
  --yellow: #F6C343;
  --yellow-soft: #FDF1CC;
  --white: #FFFFFF;
  --tint: #F3F4F9;
  --ink: #16224F;
  --muted: #5A6285;
  --line: #DFE2EC;
  --ok: #1D7A4E;
  --ok-bg: #E2F3EA;
  --warn: #8A5A00;
  --warn-bg: #FCEFC9;
  --bad: #B3192B;
  --bad-bg: #FBE3E6;
  --info-bg: #E6E9F6;

  --display: 'Gloock', 'Georgia', 'Times New Roman', serif;
  --body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
  --radius: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow-wrap { max-width: 720px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.page-top { padding-top: clamp(28px, 4vw, 48px); }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy); color: var(--white); }

/* Tipografia */
.display { font: 400 var(--step-4)/0.98 var(--display); letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
.display em { font-style: italic; color: var(--red); }
.h1 { font: 400 var(--step-3)/1.08 var(--display); margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.01em; }
.h2 { font: 400 var(--step-3)/1.1 var(--display); margin: 0 0 14px; text-wrap: balance; }
.h3 { font: 600 var(--step-1)/1.3 var(--body); margin: 0 0 10px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; margin: 0 0 24px; }
.lead.narrow { max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 0.75rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 12px; text-decoration: none; }
.section-navy .eyebrow { color: var(--yellow); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.muted { color: var(--muted); }
.fine { font-size: var(--step--1); color: var(--muted); margin: 8px 0; }
.section-navy .fine { color: #C4CAE2; }
.block { display: block; color: var(--muted); font-size: var(--step--1); }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 14px; }
.prose section { padding-top: 12px; }

/* Botões e links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-ink); }
.btn-primary:disabled { background: #C9CCDA; color: var(--white); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-wide { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link svg { width: 16px; height: 16px; }
.section-navy .link, .cta-card .link { color: inherit; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.9rem; text-align: left; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--navy); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 24px; height: 24px; }

/* Cabeçalho */
.demo-bar { background: var(--yellow); color: var(--navy); text-align: center; font-size: var(--step--1); font-weight: 600; padding: 6px var(--gutter); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand-name { font: 400 1.6rem/1 var(--display); display: flex; flex-direction: column; }
.brand-name small { font: 700 0.62rem/1 var(--body); letter-spacing: 0.42em; text-transform: uppercase; margin-top: 4px; color: var(--red-ink); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { background: var(--tint); }
.main-nav a.is-on { background: var(--navy); color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.chrome { display: contents; }
/* Troca de idioma: PT | EN */
.lang-switch { display: inline-flex; margin-right: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button { min-width: 36px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font: 700 0.75rem/1 var(--body); letter-spacing: 0.06em; cursor: pointer; }
.lang-switch button:hover { background: var(--tint); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
body.is-admin .lang-switch { display: none; }
/* Celular: mostra só o idioma para o qual trocar, e encolhe a marca nas telas mais estreitas */
@media (max-width: 520px) {
  .lang-switch { margin-right: 2px; padding: 2px; }
  .lang-switch button[aria-pressed="true"] { display: none; }
  .lang-switch button { min-width: 34px; }
}
@media (max-width: 360px) {
  .brand { gap: 6px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.3rem; }
  .header-actions .icon-btn { width: 40px; }
}
.bag-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: var(--white); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.bag-count.is-empty { background: var(--line); color: var(--navy); }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: 0 12px 24px rgba(22, 34, 79, .08); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
}

/* Início */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; color: var(--muted); }
.hero-facts strong { color: var(--navy); }
.hero-art { position: relative; margin: 0; padding-bottom: 28px; }
.hero-frame { background: var(--white); padding: 10px; border-radius: 6px; box-shadow: 0 18px 40px rgba(22, 34, 79, .16); }
.frame-a { transform: rotate(-2deg); width: 88%; }
.frame-b { transform: rotate(2.5deg); width: 80%; margin: -12% 0 0 auto; position: relative; border: 3px solid var(--yellow); }
.hero-art figcaption { position: absolute; bottom: 0; right: 0; font-size: 0.75rem; color: var(--muted); }
.band { background: var(--red); color: var(--white); }
.band-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; padding-block: 16px; font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; }
.spark svg { width: 14px; height: 14px; color: var(--yellow); }
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story-copy p { max-width: 56ch; }
.story-quotes { position: relative; min-height: 260px; }
.bubble { display: inline-block; font: 400 clamp(2rem, 1.4rem + 2.6vw, 3.4rem)/1 var(--display); padding: 22px 30px; border: 3px solid var(--navy); border-radius: 50%; background: var(--white); position: relative; }
.bubble::after { content: ""; position: absolute; bottom: -14px; left: 30%; width: 22px; height: 22px; background: inherit; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg) skew(10deg, 10deg); }
.bubble-a { background: var(--yellow-soft); }
.bubble-b { background: #FBDDE1; color: var(--red-ink); }
.story-quotes .bubble-a { position: absolute; top: 10px; left: 0; transform: rotate(-6deg); }
.story-quotes .bubble-b { position: absolute; bottom: 20px; right: 0; transform: rotate(5deg); }
.story-quotes { display: grid; place-items: center; }
.story-quotes .bubble-a:only-child { position: static; transform: rotate(-4deg); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); padding: 0.5em 0.9em; }
.concept-note { font-size: var(--step--1); color: var(--muted); border-left: 3px solid var(--yellow); padding: 4px 0 4px 12px; margin: 20px 0 0; max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.section-head .h2 { margin: 0; }
.related { margin-top: 64px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cta-card { display: block; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--navy-2); color: var(--white); text-decoration: none; transition: transform .2s; }
.cta-card:hover { transform: translateY(-3px); }
.cta-card p { color: #D5D9EC; max-width: 46ch; }
.cta-yellow { background: var(--yellow); color: var(--navy); }
.cta-yellow p { color: var(--navy); }
.cta-yellow .eyebrow { color: var(--red-ink); }
.about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center; }
.about img { width: 100%; border-radius: 50%; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Coleções */
.grid-collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.coll { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 230px; padding: 20px; border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform .2s; }
.coll:hover { transform: translateY(-3px); }
.coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coll:has(img)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 34, 79, .92) 30%, rgba(22, 34, 79, 0) 75%); z-index: 1; }
.coll:has(img) { color: var(--white); }
.coll > span, .coll > strong { position: relative; z-index: 2; }
.coll-name { font: 400 1.45rem/1.15 var(--display); }
.coll-tag { font-size: 0.92rem; opacity: .9; }
.coll-meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tone-red { background: #F7D9DB; }
.tone-cream { background: #F6EEDD; }
.tone-lilac { background: #E4E1F3; }
.tone-yellow { background: #FBEBB5; }
.tone-navy { background: var(--navy); color: var(--white); }
.card-media.tone-navy, .pdp-main.tone-navy, .line-media.tone-navy { background: #E7E9F2; }

/* Cartões de produto */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px 20px; }
.card-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; height: 100%; }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #F6EEDD; max-width: 100%; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-media .is-contain { object-fit: contain; padding: 8px; background: var(--white); }
.card-link:hover .card-media img, .card-link:hover .card-media svg { transform: scale(1.04); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--white); color: var(--navy); }
.tag-new { background: var(--yellow); }
.tag-off { background: var(--navy); color: var(--white); }
.tag-warn { background: var(--red); color: var(--white); }
.card-body { display: grid; gap: 2px; }
.card-coll { margin: 0; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.card-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.card-price { margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-cats { margin-top: 40px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.chip:hover { border-color: var(--navy); }
.empty { padding: 40px; text-align: center; background: var(--tint); border-radius: var(--radius); color: var(--muted); }

/* Catálogo */
.catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; margin-top: 28px; }
.filters-box summary { font-weight: 700; cursor: pointer; padding: 8px 0 14px; list-style: none; }
.filters-box summary::-webkit-details-marker { display: none; }
.filters-box { display: grid; }
.filters-box[open] { gap: 0; }
.filters .field, .filters .check { margin-bottom: 16px; }
.catalog-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 46px; }
.search:focus-within { border-color: var(--navy); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; padding: 10px 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.result-count { color: var(--muted); font-size: 0.9rem; margin: 16px 0; }
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; gap: 12px; }
  .filters-box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
  .filters-box summary { padding: 12px 0; }
}

/* Formulários */
.field { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { color: var(--navy); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .sort select, .period select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 400; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .sort select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--yellow-soft); }
.field input[type="range"] { padding: 0; border: 0; accent-color: var(--red); min-height: 30px; }
.field input[readonly] { background: var(--tint); }
.sort select { width: auto; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.is-invalid { border-color: var(--bad) !important; background: var(--bad-bg) !important; }
.error { color: var(--bad); background: var(--bad-bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; }
.notice { background: var(--yellow-soft); border-radius: 10px; padding: 12px 16px; font-size: 0.92rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* Página de produto */
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pdp-gallery { position: sticky; top: 96px; display: grid; gap: 12px; }
.pdp-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #F6EEDD; max-width: 100%; }
.pdp-main img, .pdp-main svg { width: 100%; height: 100%; object-fit: cover; }
.pdp-main .is-contain { object-fit: contain; background: var(--white); padding: 12px; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--red); }
.pdp-info { display: grid; gap: 14px; }
.pdp-info .eyebrow { margin: 0; }
.pdp-title { margin: 0; }
.pdp-short { margin: 0; color: var(--muted); font-size: 1.08rem; }
.pdp-price { margin: 4px 0 0; font: 700 1.75rem/1 var(--body); font-variant-numeric: tabular-nums; }
.pdp-pix { margin: 0; font-size: 0.9rem; color: var(--muted); }
.pdp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.9rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-pronta, .pill-entregue, .pill-pago { background: var(--ok-bg); color: var(--ok); }
.pill-ultimas, .pill-aguardando { background: var(--warn-bg); color: var(--warn); }
.pill-encomenda, .pill-producao, .pill-enviado, .pill-orcamento, .pill-gratis { background: var(--info-bg); color: var(--navy); }
.pill-esgotado, .pill-indisponivel, .pill-cancelado { background: var(--bad-bg); color: var(--bad); }
.variation { border: 0; padding: 0; margin: 0; }
.variation legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 0.92rem; }
.opt input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.opt input:checked + span small { color: var(--yellow); }
.opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.counter { justify-self: end; font-weight: 400; color: var(--muted); }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn-wide { flex: 1 1 200px; width: auto; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; min-height: 48px; }
.stepper button { width: 44px; align-self: stretch; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: var(--tint); }
.stepper input { width: 44px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-sm { min-height: 36px; }
.stepper-sm button { width: 34px; }
.stepper-sm .qty { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdp-acc details { border-top: 1px solid var(--line); }
.pdp-acc details:last-child { border-bottom: 1px solid var(--line); }
.pdp-acc summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.pdp-acc p, .pdp-acc ul { margin: 0 0 16px; color: var(--muted); }
.pdp-acc ul { padding-left: 18px; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
}

/* BoatOat */
.boat-hero { background: var(--navy); color: var(--white); padding-block: clamp(40px, 6vw, 80px); }
.boat-hero .eyebrow { color: var(--yellow); }
.boat-hero .lead { color: #D5D9EC; }
.boat-hero .concept-note { color: #C4CAE2; }
.boat-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.boat-grid > div:first-child { position: sticky; top: 110px; }
.boat-arts { display: grid; gap: 18px; }
.boat-arts figure { margin: 0; background: var(--white); padding: 8px; border-radius: 6px; }
.boat-arts figure:nth-child(1) { transform: rotate(-1.5deg); }
.boat-arts figure:nth-child(2) { transform: rotate(1.5deg); border: 3px solid var(--yellow); }
.boat-arts figure:nth-child(3) { transform: rotate(-1deg); }
.boat-arts figcaption { color: var(--navy); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 4px 2px; }
.joke { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; max-width: 920px; }
.joke-step { display: grid; gap: 22px; justify-items: start; }
.joke-step p { margin: 0; color: var(--muted); }
.joke-step .bubble { font-size: 2rem; }
.joke-end { background: var(--yellow); padding: 28px; border-radius: var(--radius); }
.joke-end p { color: var(--navy); }

/* Sacola */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(22, 34, 79, .45); animation: fade-in .3s ease both; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--white); display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 20px; overflow-y: auto; animation: drawer-in .38s cubic-bezier(.22, 1, .36, 1) both; box-shadow: -18px 0 40px rgba(22, 34, 79, .18); }
.drawer.is-closing .drawer-scrim { animation: fade-out .22s ease both; }
.drawer.is-closing .drawer-panel { animation: drawer-out .24s cubic-bezier(.55, 0, 1, .45) both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.line.is-new { animation: line-new 1.6s ease-out; border-radius: 10px; }
@keyframes line-new { 0%, 35% { background: var(--yellow-soft); box-shadow: 0 0 0 8px var(--yellow-soft); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.drawer-added { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .9rem; animation: fade-in .3s ease both .15s; }
.drawer-added svg { width: 18px; height: 18px; flex-shrink: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-head .h3 { margin: 0; }
.drawer-foot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; }
#drawer-body { display: flex; flex-direction: column; flex: 1; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-media { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; display: block; }
.line-media img, .line-media svg { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 600; text-decoration: none; display: block; line-height: 1.3; }
.line-opts { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.line-total { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.line-total small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.lines-page .line { grid-template-columns: 96px minmax(0, 1fr) auto; }
.lines-page .line-media { width: 96px; height: 96px; }
.empty-bag { display: grid; gap: 16px; justify-items: start; padding: 24px 0; }
.bag-grid, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 24px; }
.summary { position: sticky; top: 96px; display: grid; gap: 10px; background: var(--tint); border-radius: var(--radius); padding: 24px; }
.summary .h3 { margin: 0 0 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 1.15rem; }
.ship-opts, .pay-opts { display: grid; gap: 8px; }
.ship, .pay { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font-size: 0.9rem; }
.ship span, .pay span { flex: 1; }
.ship input, .pay input { accent-color: var(--red); }
.ship:has(input:checked), .pay:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.cep-form .inline input { min-height: 40px; }
.co-main { display: grid; gap: 28px; }
.co-step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.co-step legend { font: 600 var(--step-1)/1.3 var(--body); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-size: 0.95rem; }
.card-form { display: grid; gap: 8px; }
.mini-lines { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines small { display: block; color: var(--muted); }
@media (max-width: 900px) {
  .bag-grid, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 480px) {
  .lines-page .line { grid-template-columns: 72px minmax(0, 1fr); }
  .lines-page .line-media { width: 72px; height: 72px; }
  .lines-page .line-total { grid-column: 2; text-align: left; }
}

/* Pedido */
.order { display: grid; gap: 24px; }
.order .h1 { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.timeline li { display: grid; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.timeline li span { height: 6px; border-radius: 3px; background: var(--line); }
.timeline li.is-done { color: var(--navy); font-weight: 600; }
.timeline li.is-done span { background: var(--red); }
.timeline li.is-now span { background: linear-gradient(90deg, var(--red) 60%, var(--yellow)); }
.pix-box { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--tint); padding: 24px; border-radius: var(--radius); }
.pix-qr { width: 200px; height: 200px; border-radius: 10px; }
.pix-box .inline { margin-top: 12px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.order-side p { margin: 0 0 12px; }
.history { list-style: none; margin: 0 0 16px; padding: 0; font-size: 0.9rem; color: var(--muted); }
.order-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.order-list a { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.order-list a:hover { border-color: var(--navy); }
.lookup { display: grid; gap: 14px; margin-bottom: 28px; justify-items: start; }
.lookup .field { width: 100%; }
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 40px 1fr; align-items: center; }
  .pix-box, .order-grid { grid-template-columns: 1fr; }
  .order-list a { grid-template-columns: 1fr auto; }
}

/* Solicitações */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.req-form { display: grid; gap: 16px; background: var(--tint); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.req-ok { background: var(--ok-bg); padding: 28px; border-radius: var(--radius); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 700; display: grid; place-items: center; }

/* Institucionais */
.story-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.story-logo { border-radius: 50%; position: sticky; top: 100px; }
.values { padding-left: 18px; }
.values li { margin-bottom: 8px; }
.credit { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 64px; }
.contact { padding: 24px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.contact p { margin: 0 0 6px; }
.policies { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.policy-nav { position: sticky; top: 100px; display: grid; gap: 6px; align-self: start; }

/* Rodapé */
.site-footer { background: var(--navy); color: #D5D9EC; padding-block: 56px 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid a { display: block; color: var(--white); text-decoration: none; padding: 4px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-h { color: var(--yellow); font: 700 0.75rem/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; }
.footer-h:not(:first-child) { margin-top: 20px; }
.footer-brand img { border-radius: 50%; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 6px; max-width: 30ch; }
.site-footer .fine { color: #AEB5D3; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pay-chips span { padding: 3px 10px; border: 1px solid #4A5688; border-radius: 6px; font-size: 0.8rem; color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; border-top: 1px solid #34407A; margin-top: 40px; padding-top: 20px; font-size: 0.82rem; }
.footer-base p { margin: 0; max-width: 70ch; }
.footer-base strong { color: var(--white); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(22, 34, 79, .3); max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 860px) {
  .hero-grid, .story, .about, .faq-wrap, .split, .boat-grid, .req, .story-page, .policies { grid-template-columns: 1fr; }
  .joke { grid-template-columns: 1fr; }
  .about img, .story-logo { width: 180px; position: static; }
  .story-quotes { min-height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .hero-frame { padding: 6px; } }

/* Painel de gestão */
body.is-admin { background: var(--tint); }
.admin { padding-block: 28px 64px; }
.admin-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-nav { position: sticky; top: 96px; display: grid; gap: 2px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 18px 12px; }
.admin-brand { font: 400 1.2rem/1.2 var(--display); color: var(--yellow); margin: 0 10px 12px; }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 0.93rem; }
.admin-nav a:hover { background: var(--navy-2); }
.admin-nav a.is-on { background: var(--white); color: var(--navy); }
.count { background: var(--red); color: var(--white); border-radius: 999px; font-size: 0.72rem; padding: 2px 8px; }
.admin-nav-foot { border-top: 1px solid #34407A; margin-top: 12px; padding: 12px 10px 0; display: grid; gap: 4px; }
.admin-nav-foot .fine { color: #AEB5D3; margin: 0 0 4px; }
.admin-nav-foot .link-btn { color: var(--white); }
.admin-main { display: grid; gap: 20px; min-width: 0; }
.admin-main > div { display: grid; gap: 20px; min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.admin-head .h2 { margin: 0; }
.admin-head .eyebrow { margin-bottom: 6px; }
.period { display: flex; flex-wrap: wrap; gap: 10px; }
.period .field { min-width: 150px; font-size: 0.8rem; }
.period .field input, .period .field select { min-height: 40px; padding: 6px 12px; font-size: 0.92rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--white); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; }
.kpi span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.kpi strong { font: 700 1.6rem/1 var(--body); font-variant-numeric: tabular-nums; }
.panel { background: var(--white); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panels-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel-warn { box-shadow: inset 0 0 0 2px var(--warn-bg); }
.panel-note { background: var(--yellow-soft); }
.panel-optional { box-shadow: inset 0 0 0 2px var(--yellow); }
.rank { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.rank li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.ri-media { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: block; flex-shrink: 0; background: #F6EEDD; }
.ri-media img, .ri-media svg { width: 100%; height: 100%; object-fit: cover; }
.ri-name { display: grid; gap: 3px; font-weight: 600; line-height: 1.3; }
.ri-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; }
.kchip { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.k-regular { background: var(--tint); color: var(--navy); }
.k-novo { background: var(--yellow-soft); color: var(--warn); }
.k-encomenda { background: var(--info-bg); color: var(--navy); }
.k-off { background: var(--bad-bg); color: var(--bad); }
.stock-low { color: var(--bad) !important; font-weight: 700; }
.legend-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chart-box { overflow-x: auto; }
.chart { width: 100%; min-width: 420px; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .bar-fill { fill: var(--navy); }
.chart .bar:hover .bar-fill { fill: var(--red); }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--white); position: sticky; top: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; border-bottom: 0; }
.table input, .table select { min-height: 36px; border: 1.5px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--white); }
.table input[type="number"] { width: 84px; text-align: right; }
.prod-cell { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.status-select { font-weight: 700; border: 0 !important; border-radius: 999px !important; padding: 4px 10px !important; }
.sort-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.qbar { display: inline-block; width: 60px; height: 8px; border-radius: 4px; background: var(--tint); margin-right: 8px; position: relative; vertical-align: middle; overflow: hidden; }
.qbar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--navy); border-radius: 4px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.export { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.csv-out { width: 100%; min-height: 160px; font: 0.8rem/1.4 ui-monospace, monospace; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; }
.kinds-help { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.add-product summary { cursor: pointer; margin: 0; }
.add-product form { margin-top: 16px; }
.req-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.req-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.req-card p { margin: 0 0 10px; font-size: 0.92rem; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.panel-optional .checks li::before { content: "+"; color: var(--red); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.module-n { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-ink); }
.module p { font-size: 0.9rem; color: var(--muted); }
.login { display: grid; gap: 8px; }
@media (max-width: 1080px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .admin-brand { width: 100%; margin: 0 4px 4px; }
  .admin-nav a { padding: 8px 12px; }
  .admin-nav-foot { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .panels-2, .compare { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi strong { font-size: 1.25rem; } }

/* Transições entre páginas */
.view-enter { animation: view-enter .32s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(10px); } }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: fade-out .16s ease both; }
::view-transition-new(root) { animation: view-enter .32s cubic-bezier(.22, 1, .36, 1) both; }
::view-transition-group(product-media) { animation-duration: .42s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(product-media), ::view-transition-new(product-media) { height: 100%; object-fit: cover; }
.bag-count.is-bump { animation: bump .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 40% { transform: scale(1.45); } }
#add.is-added { background: var(--ok); }
#add .check { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
