/* ==========================================================
   RICH — folha de estilos (index + produto)
   1 variáveis · 2 base · 3 topo · 4 hero · 5 confiança
   6 seções e cartões · 7 FAQ · 8 produto · 9 rodapé · 10 responsivo
   ========================================================== */

/* ---------- 1. VARIÁVEIS ----------
   Preto quente (poder, sofisticação) + ouro (valor, exclusividade).
   O ouro aparece com parcimônia: só onde a atenção deve ir
   (botões, preços, linhas finas). Quanto menos ouro, mais ele vale. */
:root {
  --black:      #0A0807;
  --bg:         #0E0C0B;
  --surface:    #161311;
  --surface-2:  #1E1A17;

  --gold:       #C9A24B;
  --gold-light: #E9D08F;
  --gold-deep:  #8E6B25;
  --gold-grad:  linear-gradient(135deg, #8E6B25 0%, #E9D08F 38%, #C9A24B 62%, #8E6B25 100%);

  --ivory:      #F4ECDD;   /* texto principal */
  --ivory-soft: #CFC5B3;   /* texto secundário */
  --mute:       #9A907F;   /* texto discreto */
  --alert:      #E0806E;   /* usado só em avisos reais (ex.: estoque baixo) */

  --line:       rgba(201, 162, 75, 0.24);   /* fio de ouro */
  --line-soft:  rgba(255, 255, 255, 0.07);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --page-width:   1180px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #17120A; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* botões */
.cd-button {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 1px;
  background: var(--gold-grad);
  color: #17120A;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: filter 0.2s ease;
}
.cd-button:hover { filter: brightness(1.12); }

/* ---------- 3. TOPO ---------- */
.cd-topbar {
  padding: 9px 24px;
  background: var(--black);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ivory-soft);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* faixa de oferta: só aparece se houver uma data real em store-config.js */
.cd-promo {
  padding: 10px 16px;
  background: var(--gold-grad);
  color: #17120A;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.cd-promo__time { margin-left: 10px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.cd-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cd-nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.cd-nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.cd-nav a:hover,
.cd-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

.cd-brand { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 14px; }
.cd-brand__mark { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cd-brand__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.cd-brand__name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
}
.cd-brand__kicker { margin-top: 4px; padding-left: 0.3em; font-size: 9.5px; letter-spacing: 0.5em; color: var(--gold); }

.cd-actions { grid-column: 3; justify-self: end; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-soft); }
.cd-actions a:hover { color: var(--gold-light); }

/* ---------- 4. HERO ---------- */
.cd-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 48px 140px;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, #221D19 0%, #120F0D 55%, #0A0807 100%);
  border-bottom: 1px solid var(--line);
}
.cd-hero__beams { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; pointer-events: none; }
.cd-hero__inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.cd-eyebrow { margin-bottom: 26px; font-size: 12px; font-weight: 500; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--gold); }
.cd-hero__title {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 70px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  color: var(--ivory);
}
.cd-hero__text { max-width: 470px; margin: 0 auto 40px; font-size: 17px; line-height: 1.65; color: var(--ivory-soft); }
.cd-hero__note { margin-top: 26px; font-size: 12px; letter-spacing: 0.12em; color: var(--mute); }

/* ---------- 5. FAIXA DE CONFIANÇA ---------- */
.cd-trust { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.cd-trust__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 26px 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cd-trust__item { display: flex; align-items: center; gap: 14px; }
.cd-trust__icon { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cd-trust__title { font-size: 13.5px; font-weight: 500; color: var(--ivory); }
.cd-trust__text { font-size: 12px; color: var(--mute); line-height: 1.4; }

/* ---------- 6. SEÇÕES E CARTÕES ---------- */
.cd-section { max-width: var(--page-width); margin: 0 auto; padding: 76px 48px; }
.cd-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cd-section__title { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: 0.01em; }
.cd-section__link { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.cd-section__link:hover { color: var(--gold-light); }
.cd-section__empty { padding: 30px 0; color: var(--ivory-soft); }
.cd-section__empty a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }

/* categorias */
.cd-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cd-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 4 / 5;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cd-cat:hover { background: var(--surface-2); border-color: var(--gold); }
.cd-cat__icon { width: 56px; height: 56px; fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.cd-cat__name { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.cd-cat__cta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* produtos */
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.cd-card { display: flex; flex-direction: column; gap: 14px; }
.cd-card__media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--gold-deep);
}
.cd-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cd-card__icon { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.cd-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--gold);
  color: #17120A;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.cd-card__badge--soldout { background: var(--black); color: var(--ivory-soft); box-shadow: inset 0 0 0 1px var(--line); }
.cd-card__info { display: flex; flex-direction: column; gap: 4px; }
.cd-card__type { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.cd-card__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--ivory); }
.cd-card:hover .cd-card__title { color: var(--gold-light); }
.cd-card__price { font-size: 15px; font-weight: 500; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cd-card__was { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--mute); text-decoration: line-through; }

/* ---------- 7. FAQ ---------- */
.cd-faq { max-width: 820px; }
.cd-faq details { border-bottom: 1px solid var(--line-soft); }
.cd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}
.cd-faq summary::-webkit-details-marker { display: none; }
.cd-faq summary::after { content: '+'; flex-shrink: 0; font-family: var(--font-body); font-size: 24px; font-weight: 300; color: var(--gold); }
.cd-faq details[open] summary::after { content: '−'; }
.cd-faq summary:hover { color: var(--gold-light); }
.cd-faq__answer { max-width: 680px; padding: 0 0 24px; color: var(--ivory-soft); }

/* ---------- 8. PÁGINA DE PRODUTO ---------- */
.cd-crumbbar { max-width: var(--page-width); margin: 0 auto; padding: 20px 48px; }
.cd-breadcrumb { font-size: 12.5px; color: var(--mute); }
.cd-breadcrumb a:hover { color: var(--gold-light); }
.cd-breadcrumb__sep { margin: 0 9px; color: var(--gold-deep); }
.cd-breadcrumb__current { color: var(--ivory-soft); }

.cd-pdp { max-width: var(--page-width); margin: 0 auto; padding: 8px 48px 96px; }
.cd-pdp__status { padding: 70px 0; text-align: center; color: var(--ivory-soft); }
.cd-pdp__status p { margin-bottom: 20px; font-size: 16px; }

.cd-pdp__grid { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 64px; align-items: start; }
.cd-pdp__main { aspect-ratio: 1; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.cd-pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.cd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cd-thumb { width: 66px; height: 66px; flex-shrink: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); cursor: pointer; }
.cd-thumb.is-active { border-color: var(--gold); }
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cd-pdp__category { margin-bottom: 10px; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.cd-pdp__title { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1.1; }
.cd-pdp__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cd-pdp__price { font-size: 30px; font-weight: 500; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cd-pdp__was { font-size: 16px; color: var(--mute); text-decoration: line-through; }
.cd-pdp__off { padding: 3px 9px; background: var(--gold); color: #17120A; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.cd-pdp__terms { margin: 8px 0 0; font-size: 14px; color: var(--ivory-soft); }
.cd-pdp__terms + .cd-pdp__terms { margin-top: 2px; }
.cd-pdp__stock { margin-top: 16px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--alert); }
.cd-pdp__stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); }
.cd-pdp__availability { margin: 16px 0 26px; font-size: 13px; color: var(--gold); }
.cd-pdp__availability.is-unavailable { color: var(--alert); }
/* escolha de opção (tamanho, cor etc.) */
.cd-pdp__variants { margin-bottom: 26px; }
.cd-pdp__label { display: block; margin-bottom: 8px; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-soft); }
.cd-select {
  width: 100%;
  max-width: 340px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
}
.cd-select:focus-visible { border-color: var(--gold); }

.cd-pdp__description { max-width: 500px; margin-bottom: 32px; font-size: 15px; line-height: 1.75; color: var(--ivory-soft); }
.cd-pdp__description p { margin: 0 0 12px; }
.cd-pdp__description ul { margin: 0 0 12px; padding-left: 18px; }

.cd-pdp__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 26px; }
.cd-qty { display: flex; align-items: center; height: 50px; border: 1px solid var(--line); }
.cd-qty__btn { width: 40px; height: 100%; font-size: 18px; line-height: 1; color: var(--ivory); }
.cd-qty__btn:hover { color: var(--gold-light); }
.cd-qty__value { min-width: 32px; text-align: center; font-size: 15px; font-weight: 500; }

.cd-buy-btn {
  height: 50px;
  padding: 0 44px;
  background: var(--gold-grad);
  color: #17120A;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: filter 0.2s ease;
}
.cd-buy-btn:hover { filter: brightness(1.12); }
.cd-buy-btn:disabled { filter: grayscale(0.7) brightness(0.6); cursor: default; }

.cd-pdp__assure { margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ivory-soft); }
.cd-pdp__assure li { position: relative; padding: 4px 0 4px 22px; }
.cd-pdp__assure li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.cd-pdp__back { display: inline-block; margin-top: 22px; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
.cd-pdp__back:hover { color: var(--gold-light); }

/* barra de compra fixa (só no celular) */
.cd-sticky { display: none; }

/* ---------- 9. RODAPÉ ---------- */
.cd-footer { background: var(--black); border-top: 1px solid var(--line); color: var(--ivory-soft); padding: 64px 48px 30px; }
.cd-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: var(--page-width); margin: 0 auto 44px; }
.cd-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.cd-footer__links { display: flex; flex-direction: column; gap: 12px; }
.cd-footer__brand { display: flex; align-items: center; gap: 12px; }
.cd-footer__brand svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cd-footer__brand span { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ivory); }
.cd-footer__text { max-width: 290px; font-size: 13.5px; line-height: 1.65; color: var(--mute); }
.cd-footer__heading { margin-bottom: 4px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; color: var(--gold); }
.cd-footer a:hover { color: var(--gold-light); }
.cd-footer__legal { max-width: var(--page-width); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.7; color: var(--mute); }
.cd-footer__legal p + p { margin-top: 4px; }

/* ---------- 10. RESPONSIVO ---------- */
@media (max-width: 1000px) {
  .cd-header { padding: 20px 28px; }
  .cd-nav { gap: 20px; }
  .cd-trust__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 28px; }
  .cd-cats, .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cd-footer__grid { grid-template-columns: 1fr 1fr; }
  .cd-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .cd-topbar { padding: 8px 14px; font-size: 10px; letter-spacing: 0.1em; }

  /* menu vira uma faixa rolável embaixo da marca (no celular não some) */
  .cd-header { grid-template-columns: 1fr; gap: 0; padding: 16px 20px 0; }
  .cd-brand { grid-column: 1; order: 1; padding-bottom: 14px; }
  .cd-nav {
    grid-column: 1;
    order: 2;
    justify-self: stretch;
    gap: 24px;
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid var(--line-soft);
    scrollbar-width: none;
  }
  .cd-nav::-webkit-scrollbar { display: none; }
  .cd-actions { display: none; }
  .cd-brand__name { font-size: 30px; }

  .cd-hero { padding: 84px 22px 92px; }
  .cd-hero__text { font-size: 16px; }
  .cd-section { padding: 54px 20px; }
  .cd-section__title { font-size: 30px; }
  .cd-crumbbar { padding: 16px 20px; }
  .cd-pdp { padding: 4px 20px 110px; }
  .cd-pdp__grid { grid-template-columns: 1fr; gap: 28px; }
  .cd-footer { padding: 48px 20px 26px; }
  .cd-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cd-trust__inner { grid-template-columns: 1fr; gap: 16px; }

  .cd-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 12, 11, 0.97);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .cd-sticky.is-on { transform: none; }
  .cd-sticky__info { min-width: 0; display: flex; flex-direction: column; }
  .cd-sticky__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ivory-soft); }
  .cd-sticky__price { font-size: 17px; font-weight: 500; color: var(--gold-light); }
  .cd-sticky .cd-buy-btn { padding: 0 24px; flex-shrink: 0; }
}

@media (max-width: 480px) {
  .cd-cats, .cd-grid { gap: 14px; }
  .cd-cat { padding: 14px; }
  .cd-cat__name { font-size: 22px; }
  .cd-card__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
