/* =========================================================================
   Bodea Store — Design System
   Tokens da marca centralizados aqui. Troque os HEX pelos oficiais da Bodea
   quando tiver o guia de marca (basta editar as variáveis :root).
   ========================================================================= */
:root {
  /* Marca Bodea (aproximação — ajuste com os valores oficiais) */
  --bodea-green:      #00A651;
  --bodea-green-dark: #007A3D;
  --bodea-green-050:  #E6F6EE;
  --bodea-magenta:    #E6007E;
  --bodea-magenta-dark:#B00062;
  --bodea-yellow:     #FFC20E;

  /* Neutros */
  --ink:      #1A1D1F;
  --ink-soft: #4B5563;
  --line:     #E5E7EB;
  --bg:       #FFFFFF;
  --bg-soft:  #F5F7F8;
  --white:    #FFFFFF;

  /* Tipografia */
  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(16,24,40,.08);
  --shadow-sm: 0 2px 10px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bodea-green-dark); margin-bottom: .6rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer; border: 0;
  padding: .8rem 1.4rem; border-radius: 999px; transition: .18s ease;
  background: var(--bodea-green); color: #fff;
}
.btn:hover { background: var(--bodea-green-dark); transform: translateY(-1px); }
.btn--magenta { background: var(--bodea-magenta); }
.btn--magenta:hover { background: var(--bodea-magenta-dark); }
.btn--ghost { background: transparent; color: var(--bodea-green-dark); border: 1.5px solid var(--bodea-green); }
.btn--ghost:hover { background: var(--bodea-green-050); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.5rem; color: var(--bodea-green-dark); }
.brand .dot { color: var(--bodea-magenta); }
.nav__links { display: flex; gap: 22px; margin-left: 8px; }
.nav__links a { font-weight: 500; color: var(--ink); padding: 6px 2px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--bodea-green-dark); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--bodea-magenta); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bodea-green-050), #fff 60%);
  padding: 72px 0 80px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__art {
  border-radius: 20px; min-height: 320px;
  background:
    radial-gradient(circle at 30% 30%, rgba(230,0,126,.25), transparent 55%),
    linear-gradient(135deg, var(--bodea-green), var(--bodea-green-dark));
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero__art::after {
  content: "bodea"; position: absolute; inset: auto 24px 20px auto;
  font-weight: 700; font-size: 2rem; color: rgba(255,255,255,.9);
}
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { font-size: .82rem; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---------- Grid de produtos ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s ease; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.3rem; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.15rem; font-weight: 600; }
.card__price { font-weight: 700; color: var(--ink); }
.card__price small { color: var(--ink-soft); font-weight: 500; }
.card__foot { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }
.tag { font-size: .72rem; font-weight: 600; color: var(--bodea-green-dark); background: var(--bodea-green-050); padding: 3px 9px; border-radius: 999px; align-self: flex-start; }

/* ---------- Feature / valor ---------- */
.feature { text-align: center; padding: 8px; }
.feature__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--bodea-green-050); color: var(--bodea-green-dark);
  display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.6rem; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp__media { border-radius: 20px; min-height: 380px; box-shadow: var(--shadow); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.6rem; }
.pdp__price { font-size: 2rem; font-weight: 700; margin: 8px 0 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: #fff; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 64px; text-align: center; border: 0; font: inherit; }
.spec { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec b { min-width: 130px; }

/* ---------- Tabela / carrinho ---------- */
.cart-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 44px; border-radius: 8px; }
.summary { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.summary__row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary__total { font-size: 1.3rem; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bodea-green); border-color: var(--bodea-green); }
.form-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }

/* ---------- Personalização (Target) ---------- */
.perso-banner {
  display: none; background: linear-gradient(90deg, var(--bodea-magenta), var(--bodea-magenta-dark));
  color: #fff; text-align: center; padding: 10px 16px; font-weight: 600;
}
.perso-banner.is-visible { display: block; }

/* ---------- Profile Viewer (debug / demo) ---------- */
.pv-launcher {
  width: 30px; height: 30px; border: 0; border-radius: 7px; cursor: pointer;
  background: #EB1000; color: #fff; font-weight: 800; font-size: .9rem;
  display: grid; place-items: center; flex: 0 0 auto; box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.pv-launcher:hover { transform: scale(1.08); }
.pv-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.pv-overlay.is-open { opacity: 1; pointer-events: auto; }
.pv-panel {
  position: fixed; top: 0; left: 0; bottom: 0; width: 380px; max-width: 90vw; z-index: 91;
  background: #101317; color: #e5e9ee; transform: translateX(-100%); transition: transform .25s ease;
  overflow-y: auto; font-size: .88rem; box-shadow: 4px 0 30px rgba(0,0,0,.4);
}
.pv-panel.is-open { transform: translateX(0); }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #23272d; position: sticky; top: 0; background: #101317; }
.pv-head .pv-logo { width: 26px; height: 26px; border-radius: 6px; background: #EB1000; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.pv-head b { font-size: 1rem; }
.pv-close { margin-left: auto; background: none; border: 0; color: #9aa4ad; font-size: 1.4rem; cursor: pointer; }
.pv-sec { padding: 14px 18px; border-bottom: 1px solid #23272d; }
.pv-sec h5 { margin: 0 0 10px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #7f8a95; }
.pv-kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; align-items: baseline; }
.pv-kv span { color: #8b95a0; flex: 0 0 auto; }
.pv-kv code { color: #e5e9ee; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; text-align: right; }
.pv-ecid { background: #1a1f25; border: 1px solid #2b323a; border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.pv-ecid code { color: #4ade80; font-family: ui-monospace, monospace; font-size: .82rem; word-break: break-all; flex: 1; }
.pv-copy { background: #2b323a; border: 0; color: #e5e9ee; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: .75rem; flex: 0 0 auto; }
.pv-copy:hover { background: #3a424c; }
.pv-badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pv-badge--on { background: rgba(74,222,128,.15); color: #4ade80; }
.pv-badge--off { background: rgba(255,193,14,.15); color: #FFC20E; }
.pv-ev { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #23272d; }
.pv-ev:last-child { border-bottom: 0; }
.pv-ev em { color: #6b7683; font-style: normal; font-size: .78rem; }
.pv-refresh { width: 100%; margin-top: 4px; background: #2b323a; border: 0; color: #e5e9ee; border-radius: 8px; padding: 9px; cursor: pointer; font: inherit; }
.pv-refresh:hover { background: #3a424c; }

/* ---------- Profile Viewer: Ações ---------- */
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-action {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #1a1f25; border: 1px solid #2b323a; color: #e5e9ee; border-radius: 8px;
  padding: 9px 10px; cursor: pointer; font: inherit; font-size: .82rem;
}
.pv-action:hover { background: #2b323a; }

/* ---------- Modal (Registro) ---------- */
.al-modal-overlay {
  position: fixed; inset: 0; background: rgba(16,19,23,.55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.al-modal-overlay.is-open { display: flex; }
.al-modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 440px; padding: 32px;
}
.al-modal h3 { margin: 0 0 4px; font-size: 1.5rem; }
.al-modal .al-sub { color: var(--ink-soft); font-size: .92rem; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.al-modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd2d9; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #cbd2d9; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__bottom { border-top: 1px solid #2b2f33; margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Utilitários ---------- */
.stack-sm > * + * { margin-top: .5rem; }
.mt-24 { margin-top: 24px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow);
  transition: transform .3s ease; z-index: 60; font-weight: 500;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .pdp { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 1fr auto; }
}
