/* ============================================================
   GFC Personalizados — Protótipo
   Design tokens baseados na identidade da marca (respingos
   coloridos sobre fundo escuro).
   ============================================================ */
:root {
  --cyan:    #14a3ff;
  --blue:    #2b6bff;
  --pink:    #ff1f8e;
  --magenta: #d61fff;
  --purple:  #8b2bff;
  --orange:  #ff7a1a;
  --yellow:  #ffc61a;

  --grad: linear-gradient(100deg, var(--cyan), var(--pink) 45%, var(--purple) 75%, var(--orange));
  /* Degradê "seguro" p/ elementos com texto/ícone por cima (contraste AA garantido).
     O arco-íris (--grad) fica só nos elementos decorativos, sem texto. */
  --grad-cta: linear-gradient(100deg, #1e4fd6, #a018c9 55%, #6d28d9);
  /* Cores semânticas — separadas da marca (rosa deixa de significar "erro") */
  --error:   #ff5a5a;
  --success: #34d399;

  /* Azul do lockup "E Personalizados" (clareia no escuro, escurece no claro) */
  --brand-blue: var(--cyan);

  --bg:        #08080c;
  --bg-2:      #0f0f16;
  --surface:   #14141d;
  --surface-2: #1c1c28;
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.16);

  --text:    #f4f4f8;
  --muted:   #a2a2b4;
  --muted-2: #8b8b9e;

  /* Tokens de superfície que antes eram valores fixos (permitem tema claro) */
  --header-bg:       rgba(8,8,12,.72);
  --header-bg-solid: rgba(8,8,12,.95);
  --media-bg:        radial-gradient(circle at 50% 40%, #0f0f16, #0a0a10);
  --overlay-pill:    rgba(8,8,12,.6);
  --hover-bg:        rgba(255,255,255,.06);
  --chip-bg:         rgba(255,255,255,.05);
  --ghost-bg:        rgba(255,255,255,.04);
  --ghost-bg-hover:  rgba(255,255,255,.09);
  --grad-text:       var(--grad);

  --radius:   16px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow:   0 20px 50px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 10px 40px -10px rgba(214,31,255,.45);

  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   TEMA CLARO — padrão do site (o escuro vira opção no toggle).
   Só troca tokens; nenhum componente precisa mudar.
   ============================================================ */
:root[data-theme="light"] {
  --bg:        #f7f7fb;
  --bg-2:      #eef0f6;
  --surface:   #ffffff;
  --surface-2: #f1f2f8;
  --border:    rgba(24,24,48,.08);
  --border-2:  rgba(24,24,48,.16);

  --text:    #1a1a24;
  --muted:   #4d4d62;
  --muted-2: #6d6d82;

  --shadow:      0 20px 45px -22px rgba(35,35,80,.28);
  --shadow-glow: 0 10px 32px -12px rgba(124,58,237,.35);

  --header-bg:       rgba(255,255,255,.8);
  --header-bg-solid: rgba(255,255,255,.97);
  --media-bg:        radial-gradient(circle at 50% 40%, #ffffff, #eceef6);
  --overlay-pill:    rgba(255,255,255,.78);
  --hover-bg:        rgba(24,24,48,.06);
  --chip-bg:         rgba(24,24,48,.05);
  --ghost-bg:        rgba(24,24,48,.05);
  --ghost-bg-hover:  rgba(24,24,48,.1);
  /* Versão escurecida do degradê p/ texto decorativo legível sobre fundo claro */
  --grad-text: linear-gradient(100deg, #0b7fd6, #d9137c 45%, #6f22cf 75%, #d96a00);
  --brand-blue: #0b6fc2; /* AA para texto pequeno sobre fundo claro */
}
:root[data-theme="light"] .hero__glow { opacity: .5; }
:root[data-theme="light"] .cart { box-shadow: -20px 0 50px -20px rgba(35,35,80,.25); }

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Garante que o atributo hidden sempre esconda, mesmo com display: grid/flex */
[hidden] { display: none !important; }

/* Visível apenas para leitores de tela (labels de campos com placeholder) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Acessibilidade: foco visível por teclado (sem afetar clique de mouse) */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .icon-btn:focus-visible, .filter:focus-visible,
.chip:focus-visible, .wa-float:focus-visible { outline-color: #fff; outline-offset: 3px; }
.card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--radius); }

/* Skip link — permite pular direto ao conteúdo pelo teclado */
.skip-link {
  position: fixed; top: -80px; left: 12px; z-index: 100; font-weight: 600;
  background: var(--surface-2); color: var(--text); padding: 11px 18px;
  border-radius: 10px; border: 1px solid var(--border-2); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Item de menu destacado conforme a seção visível */
.nav__link.is-current { color: var(--text); background: var(--hover-bg); }

/* Revelação suave ao rolar (desativada p/ quem prefere menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.1; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 760px; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text);
  padding: 6px 14px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--border-2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; padding: 13px 24px;
  border: 1px solid transparent; border-radius: 999px; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-cta); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: var(--shadow-glow); }
.btn--primary:hover { box-shadow: 0 14px 44px -8px rgba(214,31,255,.6); transform: translateY(-2px); }
.btn--ghost { background: var(--ghost-bg); border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { background: var(--ghost-bg-hover); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px -20px rgba(20,20,45,.5);
  transition: background .3s, box-shadow .3s;
}
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
/* Lockup do wordmark: PERSONALIZADOS em itálico forte, com um filete em
   degradê (o mesmo arco-íris do logo GFC) amarrando texto e identidade. */
.brand__text { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; line-height: 1; }
.brand__text strong {
  font-family: "Sora", sans-serif; font-size: .84rem; font-weight: 800;
  font-style: italic; text-transform: uppercase; letter-spacing: .12em; color: var(--text);
}
.brand__rule {
  height: 2px; border-radius: 2px; background: var(--grad);
  transform-origin: left; transition: transform .35s var(--ease);
}
.brand:hover .brand__rule { transform: scaleX(1.04); }

.nav { display: flex; gap: 6px; }
.nav__link {
  font-size: .92rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: var(--hover-bg); }
/* "Meu pedido" é uma utilidade (abre a consulta de pedido), não uma seção da página:
   fica destacada e separada por um divisor no desktop. */
.nav__link--utility { color: var(--text); font-weight: 600; }
@media (min-width: 861px) {
  .nav__link--utility { position: relative; margin-left: 10px; }
  .nav__link--utility::before {
    content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
    width: 1px; height: 18px; background: var(--border-2);
  }
  /* Coleções mora dentro do megamenu de Produtos no desktop — some do topo */
  .nav__link--only-mobile { display: none; }
}

.header__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--muted);
  transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.icon-btn:hover { background: var(--hover-bg); border-color: var(--border); color: var(--text); }
.icon-btn:active { transform: translateY(1px); }
/* Carrinho = ação primária de commerce: destaque sutil e permanente que o
   diferencia dos utilitários (busca/tema), mas dentro do mesmo sistema. */
.icon-btn--cart { color: var(--text); background: var(--ghost-bg); border-color: var(--border); }
.icon-btn--cart:hover { border-color: var(--border-2); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: var(--purple); color: #fff; border-radius: 999px; border: 2px solid var(--bg);
}
.hamburger { display: none; }

/* Toggle de tema: mostra o ícone do tema para o qual vai alternar */
#themeToggle .i-moon { display: none; }
:root[data-theme="light"] #themeToggle .i-sun { display: none; }
:root[data-theme="light"] #themeToggle .i-moon { display: block; }

.searchbar { border-top: 1px solid var(--border); padding: 12px 0; background: var(--header-bg-solid); }
.searchbar__input {
  width: 100%; padding: 14px 18px; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.searchbar__input::placeholder { color: var(--muted-2); }
.searchbar__input:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(214,31,255,.2); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero__glow {
  position: absolute; inset: -10% 0 auto; height: 520px; z-index: 0;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(20,163,255,.35), transparent),
    radial-gradient(closest-side at 70% 20%, rgba(255,31,142,.35), transparent),
    radial-gradient(closest-side at 90% 60%, rgba(255,122,26,.28), transparent),
    radial-gradient(closest-side at 45% 70%, rgba(139,43,255,.3), transparent);
  filter: blur(30px); opacity: .8; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin: 20px 0 18px; }
.hero__sub { font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 26px; }
.hero__badge { display: flex; align-items: center; gap: 12px; }
.hero__badge-txt { display: flex; flex-direction: column; line-height: 1.25; }
.hero__badge-txt strong { font-family: "Sora"; font-size: 1rem; font-weight: 700; }
.hero__badge-txt span { font-size: .87rem; color: var(--muted); }

/* Chip de ícone com degradê (usado no hero) */
.ibadge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; background: var(--grad-cta);
  box-shadow: var(--shadow-glow);
}
.ibadge svg { width: 22px; height: 22px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
.section__desc { color: var(--muted); margin-top: 8px; }

/* ===== Prosa (páginas institucionais: políticas, cuidados) ===== */
.prose { color: var(--text); }
.prose__title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 6px; }
.prose__meta { color: var(--muted-2); font-size: .86rem; margin-bottom: 22px; }
.prose__lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 8px; }
.prose h2 {
  font-size: 1.25rem; font-weight: 700; margin-top: 34px; margin-bottom: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.prose p { color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.prose ul, .prose ol { color: var(--muted); line-height: 1.75; margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand-blue); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { opacity: .82; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  font-size: .9rem; font-weight: 600; color: var(--muted);
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); transition: all .2s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--border-2); }
.filter.is-active { color: #fff; background: var(--grad-cta); border-color: transparent; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: var(--shadow-glow); }

/* ===== Product grid ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card__view {
  display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; font-weight: 600;
  color: var(--muted); transition: color .2s;
}
.card__view svg { transition: transform .2s var(--ease); }
.card:hover .card__view { color: var(--text); }
.card:hover .card__view svg { transform: translateX(3px); }
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card__media {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--media-bg);
  display: grid; place-items: center; overflow: hidden;
}
.card__media svg { width: 78%; height: 78%; transition: transform .4s var(--ease); }
.card:hover .card__media svg { transform: scale(1.06) rotate(-1deg); }
.card__cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: var(--text);
  background: var(--overlay-pill); backdrop-filter: blur(6px); border: 1px solid var(--border-2);
}
.card__tagline {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: #fff;
  background: var(--grad-cta);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.card__tagline--left { left: 12px; right: auto; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-size: 1.02rem; font-weight: 600; font-family: "Sora"; }
.card__desc { font-size: .9rem; color: var(--muted); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card__price { font-size: 1.15rem; font-weight: 700; font-family: "Sora"; }
.card__price small { font-size: .72rem; color: var(--muted); font-weight: 500; }

.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-size: 1.05rem; }

/* ===== Barra de frete grátis (carrinho) ===== */
.freebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 4px; }
.freebar__msg { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.freebar__msg strong { color: var(--text); }
.freebar__track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.freebar__fill { display: block; height: 100%; border-radius: 999px; background: var(--grad-cta); transition: width .4s var(--ease); }
.freebar--done .freebar__fill { background: var(--success); }
.freebar--done .freebar__msg strong { color: var(--success); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font-family: "Sora"; font-weight: 800; font-size: 1.15rem; color: #fff;
  background: var(--grad-cta); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ===== CTA card ===== */
.cta-card {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 20px;
  background: linear-gradient(120deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden;
  padding: 44px; position: relative;
}
.cta-card__content { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; z-index: 1; }
.cta-card__art {
  align-self: stretch; min-height: 220px; border-radius: var(--radius); position: relative; overflow: hidden;
  background:
    radial-gradient(closest-side at 30% 30%, var(--cyan), transparent 60%),
    radial-gradient(closest-side at 70% 40%, var(--pink), transparent 60%),
    radial-gradient(closest-side at 50% 75%, var(--orange), transparent 60%),
    radial-gradient(closest-side at 80% 80%, var(--purple), transparent 60%);
  filter: saturate(1.1);
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); margin-top: 12px; font-size: .92rem; max-width: 340px; }
.footer__col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer__col a { display: block; color: var(--muted); font-size: .9rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted-2); font-size: .84rem; }

/* ===== Cart drawer ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); z-index: 60; animation: fade .25s var(--ease); }
.cart {
  position: fixed; top: 0; right: 0; z-index: 70; height: 100dvh; width: min(420px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--border-2);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .35s var(--ease); box-shadow: -20px 0 60px -20px rgba(0,0,0,.7);
}
.cart.is-open { transform: translateX(0); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.cart__head h2 { font-size: 1.2rem; }
.cart__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; color: var(--muted); margin: auto 0; padding: 40px 0; }
.cart-empty span { font-size: 2.4rem; display: block; margin-bottom: 10px; }

/* Cada item é um card contido — evita a sensação de "solto" no drawer */
.cart-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cart-item__media { width: 56px; height: 56px; border-radius: 10px; background: var(--media-bg); display: grid; place-items: center; border: 1px solid var(--border); }
.cart-item__media svg { width: 76%; height: 76%; }
.cart-item__info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item__name { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.cart-item__meta { font-size: .78rem; color: var(--muted); }
.cart-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cart-item__price { font-size: 1rem; font-weight: 700; font-family: "Sora"; }
.qty { display: flex; align-items: center; gap: 2px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.qty button { width: 30px; height: 30px; border-radius: 999px; border: none; background: transparent; color: var(--text); font-size: 1rem; display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; font-weight: 600; }
.cart-item__remove {
  flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px;
  margin: -3px -3px 0 0; background: none; border: none; border-radius: 8px;
  color: var(--muted-2); transition: color .2s, background .2s;
}
.cart-item__remove:hover { color: var(--error); background: var(--hover-bg); }
.cart-item__remove svg { width: 17px; height: 17px; }

.cart__foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart__total strong { font-family: "Sora"; font-size: 1.4rem; }
.cart__note { font-size: .8rem; color: var(--muted-2); text-align: center; margin-top: 10px; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; z-index: 1; width: min(520px, 100%); max-height: 90dvh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); animation: pop .3s var(--ease);
}
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 4; background: var(--overlay-pill); border: 1px solid var(--border-2); backdrop-filter: blur(6px); }
/* Checkout: cabeçalho e rodapé (resumo + CTA) fixos; só os campos rolam. */
.modal__panel:has(.checkout) { padding: 0; overflow: hidden; }
/* #checkoutContent é um wrapper — sai do fluxo p/ .checkout virar o flex direto do painel */
.modal__panel:has(.checkout) > #checkoutContent { display: contents; }
.checkout { display: flex; flex-direction: column; min-height: 0; max-height: 90dvh; }
.checkout__head { flex: 0 0 auto; padding: 30px 32px 14px; }
.checkout__head h3 { margin-bottom: 6px; }
.checkout__head .section__desc { margin: 0; }
.checkout__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 32px; }
.checkout__foot {
  flex: 0 0 auto; padding: 16px 32px 24px; border-top: 1px solid var(--border-2);
  background: var(--bg-2); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.35);
}
.checkout__foot .order-summary { margin: 0 0 14px; }
.order-ok { text-align: center; }
.order-ok__icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-cta); }
.order-summary { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.order-summary li { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; border-bottom: 1px dashed var(--border); list-style: none; }
.order-summary li:last-child { border-bottom: none; }
.order-summary__total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-2); font-family: "Sora"; font-weight: 700; font-size: 1.1rem; }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-size: .95rem; color: var(--text); font-family: inherit;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(214,31,255,.18); }
.modal__panel h3 { font-size: 1.4rem; margin-bottom: 6px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 90; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2);
  padding: 13px 20px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .3s, transform .3s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-cta); font-size: .7rem; font-weight: 700; color: #fff; }
.toast--error::before { content: "!"; background: var(--error); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

/* ===== Monograma GFC (SVG baseado na logo: G azul, F fogo, C roxo) ===== */
.brand__gfc { display: block; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(139,43,255,.3)); }
.footer__brand .brand__gfc { margin-bottom: 12px; }

/* ===== Monograma GFC (pill legada — ainda usada no palette-explorer) ===== */
.brand__mark {
  font-family: "Sora"; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1;
  color: #fff; padding: 9px 12px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-cta);
  text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: var(--shadow-glow);
}
.footer__brand .brand__mark { display: inline-block; margin-bottom: 12px; }

/* ===== Foto real de produto (fallback do SVG) ===== */
.media-img { width: 100%; height: 100%; object-fit: cover; }
.card__media .media-img { position: absolute; inset: 0; transition: transform .45s var(--ease); }
.card:hover .card__media .media-img { transform: scale(1.05); }
.card__cat--static { position: static; display: inline-block; align-self: flex-start; width: fit-content; margin-bottom: 10px; }

/* ===== Quem somos ===== */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.about__art { display: grid; place-items: center; }
.about__frame {
  position: relative; border-radius: 26px; padding: 6px;
  background: var(--grad); box-shadow: var(--shadow-glow);
}
.about__logo { display: block; width: 100%; max-width: 320px; border-radius: 20px; }
.about__content { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.about__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .95rem; }

/* Ícone de check em degradê (listas) */
.ichk {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; color: #fff; background: var(--grad-cta);
}
.ichk svg { width: 13px; height: 13px; }

/* ===== Depoimentos ===== */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; margin: 0;
}
.review__stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { color: var(--text); font-size: .98rem; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Sora"; font-weight: 700; color: #fff; background: var(--grad-cta); flex-shrink: 0;
}
.review figcaption strong { display: block; font-size: .92rem; }
.review figcaption small { color: var(--muted); font-size: .8rem; }
.reviews__note { text-align: center; color: var(--muted-2); font-size: .82rem; margin-top: 20px; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.55); transition: transform .2s var(--ease), box-shadow .2s;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 40px -6px rgba(37,211,102,.7); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 10px 30px -6px rgba(37,211,102,.55), 0 0 0 14px rgba(37,211,102,0); }
}

/* ===== Detalhe do produto (mídia + descrição, compartilhado com a PDP) ===== */
.detail__media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: var(--media-bg);
  display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border);
}
.detail__media svg { width: 82%; height: 82%; }
.detail__desc { color: var(--muted); font-size: .95rem; }
.detail__desc.prose p { margin-bottom: 12px; }
.detail__desc.prose ul, .detail__desc.prose ol { margin: 0 0 12px; padding-left: 20px; }
.detail__desc.prose li { margin-bottom: 6px; }
.detail__desc.prose li p { margin-bottom: 0; }
.opt { display: flex; flex-direction: column; gap: 8px; }
.opt__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 44px; padding: 9px 14px; font-size: .88rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--magenta); }
.chip.is-active { background: var(--grad-cta); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); box-shadow: var(--shadow-glow); }
.qty--lg { width: fit-content; }
.qty--lg button { width: 34px; height: 34px; font-size: 1.15rem; }

/* ===== Página de produto: mídia + descrição à esquerda, compra sticky à direita ===== */
.pdp-grid {
  display: grid; margin-top: 8px; column-gap: 46px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  grid-template-areas: "media buy" "desc buy";
}
.pdp-media { grid-area: media; }
.pdp-buy {
  grid-area: buy; position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.pdp-desc { grid-area: desc; margin-top: 34px; }
.pdp-desc .detail__desc { max-width: 66ch; font-size: 1rem; }
.detail__section { margin-top: 22px; }
.detail__section-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.detail__section .detail__desc { font-size: 1rem; }
@media (max-width: 860px) {
  /* minmax(0,1fr): impede que textos nowrap (ex.: CTA com preço) alarguem a página */
  .pdp-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "buy" "desc"; row-gap: 20px; }
  .pdp-buy { position: static; min-width: 0; padding: 22px 20px; }
  .pdp-buy .btn--block { white-space: normal; }
  .pdp-desc { margin-top: 8px; }
}

/* Foto do produto nunca é cortada na página de produto (contain, não cover);
   zoom sutil no hover dá a sensação de "ver de perto". */
.pdp-media .media-img {
  position: static; object-fit: contain; padding: 4%;
  transition: transform .5s var(--ease);
}
.pdp-media:hover .media-img { transform: scale(1.045); }
/* Foto ampliável: só o cursor vira lupa; nada sobreposto na imagem */
.pdp-media.is-zoomable { cursor: zoom-in; }

/* Lightbox: visualização ampliada da foto (criado via js/shop.js) */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.82); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: min(92vw, 900px); max-height: 88vh; object-fit: contain;
  border-radius: var(--radius); cursor: zoom-in; transform: scale(.97);
  transition: transform .22s var(--ease); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
/* Especificidade precisa vencer a regra .is-open acima, senão o scale(1) anula o zoom */
.lightbox.is-open .lightbox__img.is-zoom { cursor: zoom-out; transform: scale(2); }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px);
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: none; }
}

/* Bloco de preço: valor forte + condição honesta logo abaixo */
.pdp-price { display: flex; flex-direction: column; gap: 5px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.pdp-price__value { font-family: "Sora"; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pdp-price__note { font-size: .84rem; color: var(--muted); }

/* Rótulo da opção: nome + valor selecionado, juntos e à esquerda (Tamanho  M) */
.opt__label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.opt__key { font-size: .82rem; font-weight: 600; color: var(--muted); }
.opt__value { color: var(--text); font-weight: 700; font-size: .86rem; font-style: normal; letter-spacing: .01em; }

/* Cor como amostra (bolinha): compacta, cabe numa linha, com anel no selecionado */
.chips--swatch { gap: 10px; }
.swatch {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.swatch__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.swatch:hover { transform: translateY(-1px); border-color: var(--magenta); }
.swatch.is-active { border-color: transparent; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--magenta); }
.swatch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--cyan); }

/* Linha da quantidade: rótulo à esquerda, controle à direita; CTA em largura total abaixo */
.pdp-qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Sinais de confiança sob o CTA (frete, troca, WhatsApp) */
.pdp-trust { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--border); }
.pdp-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.pdp-trust svg { flex-shrink: 0; margin-top: 1px; color: var(--brand-blue); }
.pdp-trust strong { color: var(--text); font-weight: 600; }
.pdp-trust a { color: var(--brand-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pdp-trust a:hover { opacity: .82; }

/* Acordeões de cuidados/trocas — respondem objeções sem sair da página */
.pdp-acc { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; max-width: 66ch; }
.pdp-det { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pdp-det summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none;
  border-radius: var(--radius-sm);
}
.pdp-det summary::-webkit-details-marker { display: none; }
.pdp-det summary:hover { background: var(--hover-bg); }
.pdp-det summary svg { flex-shrink: 0; color: var(--muted); transition: transform .25s var(--ease); }
.pdp-det[open] summary svg { transform: rotate(180deg); }
.pdp-det__body { padding: 2px 18px 16px; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.pdp-det__body ul { margin: 0 0 10px; padding-left: 18px; }
.pdp-det__body li { margin-bottom: 6px; }
.pdp-det__body li::marker { color: var(--brand-blue); }
.pdp-det__body p { margin-bottom: 10px; }
.pdp-det__body a { color: var(--brand-blue); font-weight: 600; }
.pdp-det__body a:hover { opacity: .82; }

/* CTA inline de personalização (fim do catálogo e do produto sem relacionados) */
.cta-inline {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px;
  margin-top: 52px; padding: 28px 30px;
  background: linear-gradient(120deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden;
}
.cta-inline__art {
  flex-shrink: 0; width: 62px; height: 62px; border-radius: 20px;
  background:
    radial-gradient(closest-side at 30% 30%, var(--cyan), transparent 65%),
    radial-gradient(closest-side at 75% 40%, var(--pink), transparent 65%),
    radial-gradient(closest-side at 50% 80%, var(--orange), transparent 65%);
  filter: saturate(1.15);
}
.cta-inline__body { flex: 1 1 300px; min-width: 0; }
.cta-inline__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.cta-inline__text { color: var(--muted); font-size: .95rem; max-width: 58ch; }
.cta-inline .btn { flex-shrink: 0; }

/* ===== CEP / frete ===== */
.cep-row { display: flex; gap: 10px; }
.cep-row input { flex: 1; }
.cep-row .btn { padding: 12px 18px; }
.cep-hint { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted-2); }
.order-summary li small { font-weight: 400; }

/* ===== Nº do pedido + consulta ("Meu pedido") ===== */
.order-ok__number { margin: 2px 0 12px; font-size: 1.05rem; }
.order-ok__number strong { font-family: "Sora", sans-serif; letter-spacing: .5px; }
.lk-status { margin: 0 0 8px; }
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  color: var(--success); border: 1px solid var(--success);
}
.lk-meta { margin: 0 0 12px; font-size: .9rem; color: var(--muted-2); }
.lk-error { margin-top: 14px; color: var(--error); font-size: .9rem; }
#lk-result .order-summary { margin: 18px 0 0; }

/* ============================================================
   PÁGINAS GERADAS (catálogo, coleção, produto) — Fase B
   Reaproveitam os componentes existentes; abaixo só o que é novo.
   ============================================================ */
.breadcrumb {
  font-size: .84rem; color: var(--muted-2); margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb b { color: var(--text); font-weight: 600; }
.breadcrumb span { color: var(--muted-2); }

/* Chips de link (explorar coleções, "veja também") */
.explore { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.explore__label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.explore__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  font-size: .85rem; font-weight: 600; color: var(--text);
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-2); transition: all .18s var(--ease);
}
.chip-link:hover { border-color: var(--magenta); transform: translateY(-1px); }
.chip-link--sm { padding: 5px 11px; font-size: .74rem; text-transform: capitalize; }

/* Hero da coleção */
.col-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; max-width: 640px; }
.col-hero__title { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; }
.col-hero__desc { color: var(--muted); font-size: 1.05rem; }
.col-hero__count { font-size: .85rem; color: var(--muted-2); font-weight: 600; }
.tag--warn { color: #fff; background: var(--grad-cta); border-color: transparent; }

/* Índice de coleções */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.col-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 180px; padding: 20px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.col-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.col-card.is-off { opacity: .62; }
.col-card__art {
  position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(closest-side at 25% 25%, var(--cyan), transparent 60%),
    radial-gradient(closest-side at 75% 35%, var(--pink), transparent 60%),
    radial-gradient(closest-side at 55% 80%, var(--orange), transparent 60%);
}
.col-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--surface) 96%); }
.col-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--grad-cta);
}
.col-card__name { position: relative; z-index: 1; font-family: "Sora"; font-size: 1.25rem; font-weight: 700; }
.col-card__count { position: relative; z-index: 1; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Catálogo com filtros (/produtos) */
.catalog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.catalog__tools { display: flex; gap: 10px; align-items: center; }
.catalog__filter-toggle { display: none; padding: 11px 18px; }
.sort select {
  font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px;
  padding: 11px 38px 11px 16px; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sort select:focus-visible { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(214,31,255,.18); }

.catalog__layout { display: grid; grid-template-columns: 248px 1fr; gap: 28px; align-items: start; }
.catalog__layout--plain { grid-template-columns: 1fr; }

/* Catálogo enxuto: cards à esquerda + painel de convite ocupando a coluna livre */
.catalog__layout--sparse { grid-template-columns: fit-content(545px) 320px; justify-content: start; }
.grid--sparse { grid-template-columns: repeat(auto-fill, minmax(230px, 260px)); justify-content: start; }
.catalog__sidecta {
  position: sticky; top: calc(var(--header-h) + 14px);
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px -28px rgba(0,0,0,.55);
  overflow: hidden;
}
.catalog__sidecta-art {
  height: 90px; border-radius: 14px;
  background:
    radial-gradient(circle at 26% 42%, rgba(0,209,255,.55), transparent 46%),
    radial-gradient(circle at 74% 38%, rgba(214,31,255,.55), transparent 46%),
    radial-gradient(circle at 50% 78%, rgba(255,193,7,.42), transparent 52%),
    var(--bg-2);
}
.catalog__sidecta-title { font-family: "Sora"; font-size: 1.2rem; line-height: 1.25; margin-top: 4px; }
.catalog__sidecta-text { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: 4px; }
.catalog__sidecta .btn--block { width: 100%; }

@media (max-width: 860px) {
  .catalog__layout--sparse { grid-template-columns: 1fr; }
  .catalog__sidecta { position: static; margin-top: 8px; }
}
.catalog__filters {
  position: sticky; top: calc(var(--header-h) + 14px);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.5);
}
.fbar-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2px; }
.fbar-head strong { font-family: "Sora"; font-size: 1rem; }
.fbar-clear { background: none; border: none; color: var(--muted); font-size: .82rem; font-weight: 600; padding: 4px; transition: color .2s; cursor: pointer; }
.fbar-clear:hover { color: var(--magenta); }
.fgroup { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.fgroup__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }

/* Paginação do catálogo */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.page-btn:hover:not(:disabled):not(.is-active) { border-color: var(--magenta); color: var(--magenta); }
.page-btn.is-active { color: #fff; background: var(--grad-cta); border-color: transparent; text-shadow: 0 1px 2px rgba(0,0,0,.35); box-shadow: var(--shadow-glow); }
.page-btn:disabled { opacity: .38; cursor: default; }
.page-ellipsis { min-width: 22px; text-align: center; color: var(--muted-2); font-weight: 700; }

@media (max-width: 860px) {
  .catalog__layout { grid-template-columns: 1fr; }
  .catalog__filter-toggle { display: inline-flex; }
  .catalog__filters {
    position: static; display: none; margin-bottom: 24px; padding: 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  }
  .catalog__filters.is-open { display: flex; }
}

/* Badges no topo do produto */
.badgerow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Dentro da badgerow o chip de categoria convive com os de coleção — zera a
   margem/alinhamento do modo "avulso" (usado no card) que o empurrava p/ cima */
.badgerow .card__cat--static { margin-bottom: 0; align-self: center; }
.detail--page { margin-top: 6px; }
.detail--page .detail__media { max-width: none; }
.detail__title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; padding-right: 0; }
.section__head--rel { margin-top: 48px; }
a.card__cat--static:hover { border-color: var(--magenta); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  /* Menu mobile ocupa toda a tela abaixo do cabeçalho: painel sólido e rolável,
     nada de produtos "vazando" por baixo de um dropdown flutuante. */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 45;
    flex-direction: column; gap: 0;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--border);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateY(-6px); opacity: 0; visibility: hidden;
    transition: transform .26s var(--ease), opacity .26s var(--ease), visibility .26s; pointer-events: none;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  /* Com o menu aberto o cabeçalho fica sólido: some o backdrop-filter (que, como
     ancestral, prenderia o painel fixo ao cabeçalho em vez da viewport) e o menu
     passa a ocupar toda a tela abaixo dele. O JS ancora o topo no rodapé do header. */
  body.nav-open .header { backdrop-filter: none; background: var(--header-bg-solid); }
  body.nav-open { overflow: hidden; }
  /* Com o menu aberto, o botão do WhatsApp sairia por cima do "Meu pedido" */
  body.nav-open .wa-float { display: none; }
  /* Cada item vira uma linha cheia com divisória e "›" — cara de menu, não de lista solta */
  .nav__link {
    position: relative; display: flex; align-items: center;
    padding: 15px 6px; border-radius: 0; font-size: 1.02rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  /* Tira o divisor do último item do menu — mas NÃO do "Meu pedido", que é um
     card com borda completa (senão o :last-child zera a borda de baixo dele). */
  .nav__link:last-child:not(.nav__link--utility) { border-bottom: none; }
  .nav__link::after {
    content: "›"; margin-left: auto; padding-left: 12px;
    font-size: 1.3rem; font-weight: 400; color: var(--muted-2); line-height: 1;
  }
  .nav__link:hover { background: transparent; color: var(--brand-blue); }
  /* "Meu pedido" fica fixado ao pé do painel como ação destacada */
  .nav__link--utility {
    margin-top: auto; justify-content: center; padding: 15px; border: 1px solid var(--border-2);
    border-radius: 12px; font-weight: 700;
  }
  .nav__link--utility::after { content: none; }
  .hamburger { display: inline-flex; }
  .cta-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .cta-card__art { min-height: 160px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .brand__text { display: none; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .hero__badges { gap: 22px; }
  .card__body { padding: 14px; }
  /* Checkout mais compacto no celular — sobra mais área rolável p/ os campos */
  .checkout__head { padding: 22px 20px 8px; }
  .checkout__head .section__desc { font-size: .86rem; }
  .checkout__body { padding: 12px 20px; }
  .checkout__body .field { margin-bottom: 12px; }
  .checkout__foot { padding: 12px 20px 18px; }
  .checkout__foot .order-summary { padding: 14px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

/* ============================================================
   REDESIGN INSPIRADO NO CHICO REI (adaptado ao modelo do GFC)
   Barra de aviso · megamenu · busca · amostras de cor no card ·
   barra de filtros horizontal · galeria e guia de medidas na PDP
   ============================================================ */

/* ===== Barra de aviso (rola junto; header fixo segue enxuto) ===== */
.announce {
  background: var(--grad-cta); color: #fff;
  font-size: .82rem; font-weight: 500; letter-spacing: .005em;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.1);
}
.announce__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 0; padding: 9px 20px; text-align: center;
}
.announce__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 20px; }
.announce__item strong { font-weight: 700; }
.announce__ico {
  display: inline-flex; flex: none; width: 22px; height: 22px;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.2));
}
.announce__ico svg { width: 100%; height: 100%; display: block; }
.announce__sep { width: 1.5px; height: 22px; background: rgba(255,255,255,.32); border-radius: 2px; }

/* ===== Megamenu de Produtos (Categorias × Coleções) ===== */
.nav__item { display: flex; align-items: center; }
.nav__item--mega { position: static; } /* mega resolve à .header (posicionada) */
.nav__link--mega { display: inline-flex; align-items: center; gap: 5px; }
.nav__caret { transition: transform .2s var(--ease); }
.nav__item--mega.is-open .nav__caret,
.nav__item--mega:focus-within .nav__caret { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 49;
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item--mega.is-open .mega,
.nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 26px 20px;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 30px;
}
.mega__title {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px;
}
.mega__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mega__list a {
  display: block; padding: 7px 10px; margin-left: -10px; border-radius: 9px;
  font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s;
}
.mega__list a:hover { color: var(--text); background: var(--hover-bg); }
.mega__more { color: var(--brand-blue) !important; font-weight: 600 !important; }
.mega__feat {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 22px; border-radius: var(--radius); color: #fff; overflow: hidden;
  background: var(--grad-cta); position: relative; transition: transform .2s var(--ease);
}
.mega__feat::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .3; mix-blend-mode: overlay; }
.mega__feat > * { position: relative; z-index: 1; }
.mega__feat:hover { transform: translateY(-2px); }
.mega__feat-tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.mega__feat-title { font-family: "Sora"; font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.mega__feat-text { font-size: .86rem; opacity: .92; line-height: 1.4; }
.mega__feat-cta { font-weight: 700; font-size: .9rem; margin-top: 4px; }

/* ===== Busca no header (form dentro da .searchbar já estilizada) ===== */
.searchbar__form { display: flex; gap: 10px; align-items: center; }
.searchbar__form .searchbar__input { flex: 1; }
.searchbar__submit { flex-shrink: 0; }

/* ===== Amostras de cor no card + troca de foto no hover ===== */
.card__swatches { display: flex; align-items: center; gap: 6px; }
.card__body:has(.card__swatches) .card__foot { margin-top: auto; }
.card__sw {
  width: 16px; height: 16px; border-radius: 50%; background: var(--sw);
  border: 1px solid var(--border-2); box-shadow: inset 0 0 0 1.5px var(--surface);
}
.card__sw-more { font-size: .74rem; font-weight: 600; color: var(--muted-2); margin-left: 1px; }
.media-img--alt { opacity: 0; transition: opacity .35s var(--ease); }
.card--hover:hover .media-img--alt { opacity: 1; }
.card--hover:hover .card__media .media-img:not(.media-img--alt) { opacity: 0; }

/* ===== Barra de filtros horizontal (dropdowns + ordenação + pílulas) ===== */
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.fbar__drops { display: flex; flex-wrap: wrap; gap: 8px; }
.fbar__sort { margin-left: auto; }
.fdrop { position: relative; }
/* Botão "Filtros" e cromo da folha: só existem no mobile. No desktop a folha é
   transparente (display:contents) e a barra fica horizontal como sempre. */
.fbar__toggle { display: none; }
.fsheet, .fsheet__panel { display: contents; }
.fsheet__scrim, .fsheet__head, .fsheet__foot { display: none; }
.fdrop__btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  font-size: .9rem; font-weight: 600; color: var(--text);
  padding: 10px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-2);
  transition: border-color .2s, background .2s;
}
.fdrop__btn::-webkit-details-marker { display: none; }
.fdrop__btn:hover { border-color: var(--magenta); }
.fdrop__btn svg { color: var(--muted-2); transition: transform .2s var(--ease); }
.fdrop[open] > .fdrop__btn { border-color: var(--magenta); }
.fdrop[open] > .fdrop__btn svg { transform: rotate(180deg); }
.fdrop__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  min-width: 210px; max-width: 320px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); animation: pop .18s var(--ease);
}
/* Filtro de cor em amostras clicáveis */
.chip-set--swatch { gap: 10px; }
.filter--swatch {
  width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2);
}
.filter--swatch .filter__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.filter--swatch:hover { border-color: var(--magenta); }
.filter--swatch.is-active {
  background: var(--surface); border-color: transparent; text-shadow: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--magenta);
}
/* Pílulas do que está aplicado + limpar tudo */
.fapplied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.fapplied__label { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.apill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; color: var(--text);
  padding: 5px 8px 5px 13px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--border-2);
  transition: border-color .2s, color .2s;
}
.apill:hover { border-color: var(--magenta); color: var(--magenta); }
.apill__x { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--hover-bg); font-size: .85rem; line-height: 1; }
.fapplied__clear {
  background: none; border: none; color: var(--muted); font-size: .82rem; font-weight: 600;
  padding: 5px 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.fapplied__clear:hover { color: var(--magenta); }

/* ===== PDP: galeria de miniaturas ===== */
.pdp-media-col { grid-area: media; }
.pdp-gallery { display: flex; gap: 12px; align-items: flex-start; }
.pdp-gallery .pdp-media { flex: 1; min-width: 0; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.pdp-thumb {
  width: 62px; height: 62px; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--media-bg); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--border-2); }
.pdp-thumb.is-active { border-color: transparent; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cyan); }

/* ===== PDP: rótulo do tamanho + link do guia de medidas ===== */
.opt__labelrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.size-guide-link {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font-size: .82rem; font-weight: 600; color: var(--brand-blue);
  text-decoration: underline; text-underline-offset: 2px; padding: 2px;
}
.size-guide-link:hover { opacity: .82; }

/* ===== Modal do guia de medidas ===== */
.modal__panel--guide { width: min(440px, 100%); }
.size-table-wrap { overflow-x: auto; margin: 18px 0 10px; }
.size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.size-table th, .size-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.size-table thead th { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.size-table tbody th { font-family: "Sora"; font-weight: 700; color: var(--text); }
.size-table tbody td { color: var(--muted); }
.size-table tbody tr:last-child th, .size-table tbody tr:last-child td { border-bottom: none; }
.size-table__note { font-size: .82rem; color: var(--muted-2); line-height: 1.5; }
.size-table__note strong { color: var(--text); }

/* ===== Responsivo dos componentes novos ===== */
@media (max-width: 860px) {
  .nav__item--mega { display: contents; } /* âncora entra no fluxo do drawer */
  .mega { display: none; }
  .nav__caret { display: none; }
}
@media (max-width: 620px) {
  /* coluna: a mídia precisa esticar até a largura toda (senão fica mais estreita
     que o card de compra logo abaixo) — o align-start do desktop encolhia o card */
  .pdp-gallery { flex-direction: column-reverse; align-items: stretch; }
  .pdp-thumbs { flex-direction: row; flex-wrap: wrap; }

  /* ===== Filtros no mobile: botão "Filtros" + folha deslizante ===== */
  .fbar { flex-wrap: nowrap; gap: 10px; }
  .fbar__toggle {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: .92rem; font-weight: 700; color: var(--text);
    padding: 11px 18px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border-2);
  }
  .fbar__toggle:hover { border-color: var(--magenta); }
  .fbar__count {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    font-size: .74rem; font-weight: 800; color: #fff; border-radius: 999px; background: var(--grad-cta);
  }
  .fbar__sort { margin-left: auto; width: auto; }
  .fbar__sort .sort, .fbar__sort select { width: auto; }

  /* A folha vira bottom sheet fixo; cromo (cabeçalho/rodapé) aparece */
  .fsheet { display: block; }
  .fsheet__scrim {
    display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), visibility .25s;
  }
  .fsheet__panel {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
    max-height: 86vh; background: var(--surface); border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0; box-shadow: 0 -18px 50px -20px rgba(0,0,0,.5);
    transform: translateY(100%); visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .fbar.is-open .fsheet__scrim { opacity: 1; visibility: visible; pointer-events: auto; }
  .fbar.is-open .fsheet__panel { transform: translateY(0); visibility: visible; pointer-events: auto; }

  .fsheet__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
  }
  .fsheet__head strong { font-family: "Sora"; font-size: 1.15rem; }
  .fsheet__close {
    display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px;
    color: var(--muted); background: none; border: none; border-radius: 50%; cursor: pointer;
  }
  .fsheet__close:hover { background: var(--hover-bg); color: var(--text); }

  /* Grupos empilhados; cada dropdown vira um acordeão inline (nada absoluto) */
  #filterDrops { flex-direction: column; gap: 0; overflow-y: auto; padding: 4px 20px; -webkit-overflow-scrolling: touch; }
  .fsheet .fdrop { position: static; border-bottom: 1px solid var(--border); }
  .fsheet .fdrop:last-child { border-bottom: none; }
  .fsheet .fdrop__btn {
    width: 100%; justify-content: space-between; padding: 16px 2px; border: none;
    background: none; border-radius: 0; font-size: 1rem;
  }
  .fsheet .fdrop__btn:hover { border-color: transparent; }
  .fsheet .fdrop[open] > .fdrop__btn { border-color: transparent; }
  .fsheet .fdrop__panel {
    position: static; min-width: 0; max-width: none; padding: 0 2px 16px;
    background: none; border: none; border-radius: 0; box-shadow: none; animation: none;
  }

  .fsheet__foot {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border); background: var(--surface);
  }
  .fsheet__clear {
    flex-shrink: 0; padding: 12px 8px; background: none; border: none; cursor: pointer;
    font-size: .92rem; font-weight: 600; color: var(--muted);
    text-decoration: underline; text-underline-offset: 3px;
  }
  .fsheet__clear:hover { color: var(--magenta); }
  .fsheet__apply { flex: 1; }
}
@media (max-width: 560px) {
  .announce { font-size: .76rem; }
  .announce__sep { display: none; }
  .announce__inner { flex-direction: column; gap: 6px; padding: 9px 14px; }
  .announce__item { padding: 0; gap: 9px; }
  .announce__ico { width: 18px; height: 18px; }
}
