:root {
  --bg: #F7F7F7;
  --bordeaux: #782625;
  --bordeaux-manifesto: #651211;
  --bordeaux-footer: #620000;
  --text: #1B1614;
  --muted: #6B655E; /* 30/09: mais escuro para texto pequeno ter contraste (antes #807A73) */
  --line: #D9D4CC;
  --panel: #ECEAE7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; width: 100%; }

.mobile-only { display: none; }

/* Barra do topo */
.topbar {
  background: var(--bordeaux);
  color: #fff;
  height: 20px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

/* Menu */
.nav {
  height: 84px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav-links { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.8px; }
.nav-right { justify-content: flex-end; }
.nav-links a:hover { color: var(--bordeaux); }
.nav-logo img { width: 186px; height: 50px; object-fit: contain; }
.nav-icon { width: 22px; height: 22px; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.8px;
}
.mobile-menu[hidden] { display: none; }

/* Hero */
.hero {
  padding: 96px 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.eyebrow { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.hero-title { font-family: var(--serif); font-size: 64px; line-height: 1.06; letter-spacing: 0.5px; }
.hero-sub { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 480px; }
.link-cta {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text);
}
.hero-image { height: 620px; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Manifesto */
.manifesto {
  background: var(--bordeaux-manifesto);
  border-top: 1px solid #E0DBD4;
  border-bottom: 1px solid #E0DBD4;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
  color: #fff;
}
.manifesto-eyebrow { font-size: 11px; letter-spacing: 3px; }
.manifesto-title { font-family: var(--serif); font-size: 72px; line-height: 1.2; color: #ECECEC; }
.manifesto-title em { font-style: italic; font-weight: 300; }
.manifesto-text { font-family: var(--serif); font-size: 24px; line-height: 1.4; max-width: 760px; }
.manifesto-text p + p { margin-top: 1.4em; }

/* The Bags */
.bags { padding: 88px 56px 100px; }
.bags-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.bags-title { font-family: var(--serif); font-size: 34px; }
.bags-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: right; }
.bags-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 40px; }
.bag-btn { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; text-align: center; }
.bag-panel {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 311 / 350;
  background: var(--panel);
  overflow: hidden;
}
.bag-panel img { width: 100%; height: 100%; object-fit: cover; }
.tag, .badge {
  background: var(--bordeaux);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.tag { position: absolute; top: 14px; left: 14px; padding: 5px 10px; }
.bag-name { font-weight: 600; font-size: 12.5px; letter-spacing: 0.6px; }
.bag-line { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.bag-price { font-size: 11px; letter-spacing: 0.3px; color: var(--muted); }

/* Personalização */
.config { display: flex; align-items: stretch; }
/* Galeria no estilo ARES: miniaturas quadradas numa coluna à esquerda e a foto principal grande,
   inteira (4:5), ocupando a altura da tela. No desktop fica fixa enquanto as opções rolam. */
.config { align-items: flex-start; }
.config-photo {
  flex: none;
  display: flex;
  gap: 12px;
  padding: 24px 0 24px 16px;
  position: sticky;
  top: 0;
}
.photo-main {
  position: relative;
  flex: none;
  height: min(calc(100vh - 48px), 860px, 62.5vw);
  aspect-ratio: 4 / 5;
  background: var(--panel);
}
.photo-main img { width: 100%; height: 100%; object-fit: cover; }

.thumbs {
  flex: none;
  width: 88px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(calc(100vh - 48px), 860px, 62.5vw);
  overflow-y: auto;
  scrollbar-width: none;
}
.thumbs[hidden] { display: none; }
.thumb { width: 88px; aspect-ratio: 1; background: var(--panel); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--text); }
.photo-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
}
.photo-nav[hidden] { display: none; }
.photo-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 1.5px solid var(--text);
  border-right: 1.5px solid var(--text);
}
.photo-prev { left: 8px; }
.photo-next { right: 8px; }
.photo-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.photo-next::before { transform: translate(-70%, -50%) rotate(45deg); }

/* Acabamentos */
.extras { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.extras[hidden] { display: none; }
.extra { display: flex; flex-direction: column; gap: 12px; }
.extra-value { color: var(--muted); }
.extra label.config-label { display: flex; flex-direction: column; gap: 12px; }
.extra-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.extra-input:focus { outline: none; border-color: var(--text); }
.extra-input::placeholder { color: var(--muted); }
.config-body {
  flex: 1;
  min-width: 0;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.crumb { font-size: 11.5px; letter-spacing: 0.4px; color: var(--muted); }
.config-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.config-title { font-family: var(--serif); font-size: 38px; }
.config-line { background: var(--panel); padding: 5px 10px; font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--muted); }
.config-meta { font-size: 13px; color: var(--muted); }
.config-price { font-size: 17px; letter-spacing: 0.3px; }
.config-price:empty, .config-total:empty { display: none; }
.config-total { font-size: 13.5px; font-weight: 600; }
.cta-note { font-size: 11.5px; line-height: 1.4; color: var(--muted); margin-top: -12px; }
.photo-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(247, 247, 247, 0.88);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
}
.config-label { font-size: 13px; letter-spacing: 0.2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(27, 22, 20, 0.12); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text); }
.swatch:disabled { opacity: 0.35; cursor: not-allowed; }
.swatch[data-order]:not([data-order=""])::after {
  content: attr(data-order);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
}
.picked { font-size: 11.5px; letter-spacing: 0.4px; color: var(--muted); margin-top: -10px; }
.picked:empty { display: none; }
.pattern-wrap { display: flex; flex-direction: column; gap: 12px; }
.pattern-wrap[hidden] { display: none; }
.chips[hidden], .combo-note[hidden] { display: none; }
.combo-note { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.swatches-sm { gap: 8px; }
.swatches-sm .swatch { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.chip[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 0.5px var(--text); }

.options { display: flex; gap: 14px; width: 100%; }
.option {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16.5px 18.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.option.is-selected { border: 1.5px solid var(--text); padding: 16px 18px; }
.option-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.option-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.badge { padding: 3px 8px; letter-spacing: 0.5px; font-weight: 400; }
.radio { width: 16px; height: 16px; flex: none; }
.option-desc { font-size: 11.5px; line-height: 1.4; color: var(--muted); max-width: 260px; }

.btn {
  display: block;
  width: 100%;
  background: var(--bordeaux);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  letter-spacing: 0.8px;
}
.btn:hover { background: #651211; }

/* Rodapé */
.footer {
  background: var(--bordeaux-footer);
  padding: 56px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-mono { width: 420px; height: 240px; object-fit: cover; }
.footer p { font-size: 11px; letter-spacing: 1.8px; color: #F3EDE3; }

a:focus-visible, button:focus-visible { outline: 1px solid var(--bordeaux); outline-offset: 3px; }

/* Tablet: aperta um pouco o desktop */
@media (max-width: 1100px) {
  .bags { padding-left: 40px; padding-right: 40px; }
  .bags-grid { grid-template-columns: repeat(3, 1fr); }
  .config-body { padding: 56px 40px; }
  .options { flex-direction: column; }
  .option-desc { max-width: none; }
}

/* Mobile (Figma 390) */
@media (max-width: 767px) {
  .desktop-only, .nav-links { display: none; }
  .mobile-only { display: block; }

  .topbar { height: auto; padding: 9px 20px; justify-content: center; font-size: 10px; }

  .nav { height: 64px; padding: 0 20px; grid-template-columns: 22px 1fr 22px; }
  .nav-logo { justify-self: center; }
  .nav-logo img { width: 140px; height: 38px; }

  .hero { padding: 56px 24px 44px; gap: 14px; }
  .eyebrow { font-size: 10.5px; }
  .hero-title { font-size: 46px; line-height: normal; }
  .hero-sub { font-size: 13.5px; }
  .link-cta { margin-top: 6px; font-size: 12px; }
  .hero-image { height: 440px; }

  .manifesto { padding: 72px 28px; gap: 18px; border: 0; }
  .manifesto-title { font-size: 43px; }
  .manifesto-text { font-size: 17.5px; }

  .bags { padding: 56px 16px 64px; }
  .bags-head { flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 4px; margin-bottom: 28px; }
  .bags-title { font-size: 29px; }
  .bags-note { text-align: left; }
  .bags-grid { grid-template-columns: repeat(2, 1fr); column-gap: 12px; row-gap: 28px; }
  .bag-btn { gap: 8px; }
  .bag-panel { aspect-ratio: 173 / 218; }
  .tag { top: 8px; left: 8px; }
  .bag-name { font-size: 11px; }
  .bag-line { font-size: 11.5px; }
  .bag-price { font-size: 9.5px; }

  .config { flex-direction: column; }
  .config-photo { width: 100%; position: static; flex-direction: column-reverse; padding: 0; gap: 8px; }
  .photo-main { width: 100%; height: auto; }
  .thumbs { width: 100%; max-height: none; flex-direction: row; overflow-x: auto; padding: 0 20px; }
  .thumb { width: 64px; }
  .config-body { padding: 32px 20px 48px; gap: 18px; }
  .config-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .config-title { font-size: 30px; }
  .options { flex-direction: column; gap: 10px; }

  .footer { padding: 40px 20px; }
  .footer-mono { width: 300px; height: 171px; }
}

/* Seção Home */
.home { border-top: 1px solid var(--line); }
.bags-grid[hidden], .home-empty[hidden] { display: none; }
.home-empty { font-size: 13px; line-height: 1.5; color: var(--muted); }
.home-empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Fios metalizados: amostra com foto do fio, numa fileira própria */
.metal-row { margin-top: 12px; }
.metal-label { font-size: 12px; color: var(--muted, #6b625d); margin: 0 0 6px; }
.metal-label span { opacity: 0.8; }
.swatch-img { background-size: cover; background-position: center; }

.crumb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Barra fixa de pedido (só no celular, enquanto o botão principal não está na tela) */
.buy-bar { display: none; }
@media (max-width: 767px) {
  .buy-bar:not([hidden]) {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid rgba(27, 22, 20, 0.12);
  }
  .buy-price { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  .buy-btn { flex: 1; padding: 13px 10px; font-size: 12px; }
}

/* Como funciona (30/09): 4 passos em sequência. O número grande em serifa é o único destaque. */
.how { padding: 88px 56px 96px; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; row-gap: 36px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--text); }
.step-n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--bordeaux); }
.step-title { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.step-text { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 30ch; }
.how-cta { display: inline-block; margin-top: 48px; }

/* Dúvidas (30/09) */
.faq { padding: 88px 56px 100px; border-top: 1px solid var(--line); }
.faq .bags-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 18px; color: var(--bordeaux); transition: transform 0.2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 1px solid var(--bordeaux); outline-offset: 3px; }
.faq-item p { padding: 0 0 22px; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 64ch; }

/* Rodapé: contatos (30/09) */
.footer-links { display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.8px; color: #F3EDE3; }
.footer-links a { border-bottom: 1px solid rgba(243, 237, 227, 0.4); padding-bottom: 2px; }
.footer-links a:hover { border-bottom-color: #F3EDE3; }
.footer .footer-small { font-size: 11px; letter-spacing: 0.4px; opacity: 0.75; }
[data-instagram][hidden], [data-home-link][hidden] { display: none; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .how, .faq { padding: 56px 20px 64px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { flex-direction: row; flex-wrap: wrap; column-gap: 16px; row-gap: 6px; padding-top: 16px; }
  .step-n { font-size: 40px; width: 36px; }
  .step-title { flex: 1; margin-top: 4px; font-size: 22px; }
  .step-text { flex-basis: 100%; padding-left: 52px; max-width: none; }
  .how-cta { margin-top: 36px; }
  .faq-item summary { font-size: 19px; padding: 18px 0; }
  .footer-links { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}
