@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #FAF7F2;
  --color-bg-alt: #F1EAE0;
  --color-dark: #1E1A16;
  --color-brown: #362B24;
  --color-brown-deep: #241B16;
  --color-accent: #A9812E;
  --color-accent-dark: #7E611F;
  --color-line: #E3D9C8;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--color-brown-deep);
  color: #F1EAE0;
}
.announce-bar .track {
  display: flex;
  animation: none;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--color-accent);
  color: #FAF7F2;
  border: 1px solid var(--color-accent);
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: 0 6px 18px rgba(169,129,46,0.25); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  transition: background .25s ease, color .25s ease;
}
.btn-secondary:hover { background: var(--color-dark); color: #FAF7F2; }

/* ---------- Product gallery ---------- */
.gallery-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s ease;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track { scrollbar-width: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.thumb {
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity .2s ease, border-color .2s ease;
}
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--color-accent); }

/* image pair hover swap (desktop) */
.pair-swap { position: relative; }
.pair-swap img.secondary {
  position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
}
@media (hover: hover) {
  .pair-swap:hover img.secondary { opacity: 1; }
}

/* ---------- Star rating ---------- */
.stars { color: var(--color-accent); letter-spacing: 2px; }
.rating-bar { background: var(--color-line); height: 8px; border-radius: 999px; overflow: hidden; }
.rating-bar > span { display: block; height: 100%; background: var(--color-accent); }

/* ---------- Variant swatches ---------- */
.swatch {
  border: 1px solid var(--color-line);
  transition: border-color .2s ease, transform .15s ease;
}
.swatch.selected { border-color: var(--color-dark); box-shadow: 0 0 0 1px var(--color-dark); }
.size-option {
  border: 1px solid var(--color-line);
  transition: all .2s ease;
}
.size-option.selected { border-color: var(--color-dark); background: var(--color-dark); color: #fff; }
.size-option[disabled] { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Frete (checkout) ---------- */
.shipping-option {
  border: 1px solid var(--color-line);
  transition: border-color .2s ease, background .2s ease;
}
.shipping-option.selected { border-color: var(--color-dark); background: var(--color-bg-alt); }

/* ---------- Carrossel de fotos de clientes ---------- */
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-line);
  transition: all .2s ease;
}
.carousel-dot.active { background: var(--color-accent); width: 18px; }

/* ---------- Orderbumps (checkout) ---------- */
.orderbump { transition: border-color .2s ease, background .2s ease; }
.orderbump.selected { border-color: var(--color-accent); background: rgba(169, 129, 46, 0.05); }

/* ---------- Favoritar (catálogo) ---------- */
.wishlist-btn svg { transition: fill .2s ease, stroke .2s ease; }
.wishlist-btn.active svg { fill: var(--color-accent); stroke: var(--color-accent); }

/* ---------- Sticky mobile buy bar ---------- */
#sticky-bar {
  transform: translateY(100%);
  transition: transform .3s ease;
}
#sticky-bar.visible { transform: translateY(0); }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-item.open .accordion-panel { max-height: 600px; }
.accordion-item .chevron { transition: transform .25s ease; }
.accordion-item.open .chevron { transform: rotate(180deg); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(30,26,22,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  z-index: 60;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: #FAF7F2;
  width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  transform: translateY(24px);
  transition: transform .3s ease;
}
.modal-overlay.open .modal-panel { transform: translateY(0); }
@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
}

/* ---------- Misc ---------- */
.section-divider {
  height: 1px; background: var(--color-line);
}
.badge {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
}
.trust-icon svg { stroke: var(--color-brown); }

.todo-flag {
  outline: 1px dashed #B5482B;
  outline-offset: 2px;
  background: rgba(181,72,43,0.06);
}

::selection { background: var(--color-accent); color: #fff; }

/* thumb scroll for size guide table on mobile */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
