/* Beauty Imports — vitrine (mobile-first, leve para 3G) */

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 88%;
  ascent-override: 98%;
  descent-override: 30%;
}

:root {
  color-scheme: dark;

  --ink: #110d0a;
  --ink-2: #18130f;
  --ink-3: #221b15;
  --ink-4: #2c241c;
  --line: rgba(236, 216, 180, 0.12);
  --line-strong: rgba(236, 216, 180, 0.24);
  --ivory: #f3ece1;
  --text: #e9e0d2;
  --muted: #b2a48f;
  --faint: #857864;
  --gold: #d8b47c;
  --gold-deep: #b48c55;
  --gold-glow: rgba(216, 180, 124, 0.18);
  --plinth: #efe8dd;
  --plinth-2: #e4dacb;
  --danger: #f0a39a;
  --ok: #a9d3a6;

  --serif: "Cormorant", "Cormorant Fallback", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: 16px;
  --container: 1180px;
  --header-h: 60px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 40;
  --z-tabbar: 45;
  --z-sheet: 60;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold); color: var(--ink); }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.1rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { left: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Tipografia utilitária ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display {
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display em, .title em { color: var(--gold); font-weight: 500; }

.title {
  font-size: clamp(2rem, 7.5vw, 3.2rem);
  line-height: 1;
}

.lede {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ivory);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  color: #1a130c;
  background: linear-gradient(180deg, #e6c792 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 10px 30px -10px rgba(216, 180, 124, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { box-shadow: 0 14px 36px -10px rgba(216, 180, 124, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

.btn-ghost {
  color: var(--ivory);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }

.btn-whatsapp {
  color: #0d1a10;
  background: linear-gradient(180deg, #7ee39b, #3cbf68);
  box-shadow: 0 10px 30px -12px rgba(60, 191, 104, 0.6);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.25s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 0.65rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(17, 13, 10, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ivory);
}
.brand img { width: 34px; height: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name small {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ivory);
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--ink-3); color: var(--gold); }
.icon-btn svg { width: 21px; height: 21px; }

.count-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.flash {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
}
.flash-success { border-color: rgba(169, 211, 166, 0.35); color: var(--ok); }
.flash-error { border-color: rgba(240, 163, 154, 0.4); color: var(--danger); }

/* ---------- Barra inferior (celular) ---------- */

.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-tabbar);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(17, 13, 10, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--faint);
  transition: color 0.2s;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--gold); }
.tabbar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--gold);
}
.tabbar .count-badge { top: 7px; right: calc(50% - 22px); }

/* Botão de compra fixo do produto fica acima da tabbar */
.has-buybar { padding-bottom: calc(var(--tabbar-h) + 76px + env(safe-area-inset-bottom)); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.25rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(48% 38% at 70% 38%, rgba(216, 180, 124, 0.24), transparent 70%),
    radial-gradient(40% 30% at 15% 10%, rgba(140, 70, 40, 0.22), transparent 70%);
}
.hero::after {
  /* grão sutil */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid { display: grid; gap: 2rem; }

.hero-copy { display: grid; gap: 1.1rem; }
.hero-copy .display { margin-top: 0.2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.4rem;
}

.hero-stage {
  position: relative;
  height: 340px;
  margin-inline: calc(var(--gutter) * -1);
}
.hero-stage::before {
  /* chão de luz */
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 180, 124, 0.28), transparent);
  filter: blur(6px);
}

.hero-bottle {
  position: absolute;
  bottom: 40px;
  width: 46%;
  max-width: 230px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--plinth);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: float 7s ease-in-out infinite;
}
.hero-bottle img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hero-bottle:nth-child(1) { left: 4%; transform: rotate(-7deg); z-index: 1; animation-delay: -2s; bottom: 26px; }
.hero-bottle:nth-child(2) { left: 27%; z-index: 3; width: 50%; bottom: 52px; }
.hero-bottle:nth-child(3) { right: 4%; transform: rotate(7deg); z-index: 2; animation-delay: -4s; bottom: 22px; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.trust-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.trust-row::-webkit-scrollbar { display: none; }
.trust-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Faixa de marcas ---------- */

.brands-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brands-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 38s linear infinite;
}
.brands-track a {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.brands-track a:hover { color: var(--gold); }
.brands-track span { color: var(--gold); opacity: 0.5; align-self: center; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */

.section { padding: 3.5rem 0; }
.section + .section { padding-top: 1rem; }
.section-tight { padding-top: 1.25rem; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head > div { display: grid; gap: 0.7rem; }

/* Estilos (feminino / masculino / unissex) */
.style-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.style-rail::-webkit-scrollbar { display: none; }

.style-card {
  position: relative;
  scroll-snap-align: start;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--plinth);
  isolation: isolate;
}
.style-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease);
}
.style-card:hover img { transform: scale(1.05); }
.style-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(17, 13, 10, 0.9));
}
.style-card-label {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.style-card-label strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.style-card-label span { font-size: 0.8rem; color: var(--gold); font-weight: 600; }

/* ---------- Cards de produto ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail > * { scroll-snap-align: start; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #f7f2ea, var(--plinth-2));
  isolation: isolate;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.045); }

.tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(17, 13, 10, 0.78);
}

.quick-add {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  margin: 0;
}
.quick-add button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(17, 13, 10, 0.86);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}
.quick-add button:hover { background: var(--gold); color: var(--ink); }
.quick-add button:active { transform: scale(0.9); }
.quick-add svg { width: 19px; height: 19px; }

.product-card-body { display: grid; gap: 0.2rem; padding-inline: 0.15rem; }
.product-card-brand {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-name {
  font-size: 1.28rem;
  line-height: 1.08;
  font-weight: 500;
}
.product-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card-meta { font-size: 0.78rem; color: var(--faint); }
.product-card-price { margin-top: 0.3rem; font-size: 1.02rem; }
.product-card-pay { font-size: 0.76rem; color: var(--muted); line-height: 1.35; }
.product-card-pay b { color: var(--ivory); font-weight: 600; }

/* ---------- Como comprar ---------- */

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 0.9;
  font-style: italic;
  color: var(--gold);
}
.step h3 { font-size: 1.55rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Faixa de atendimento ---------- */

.concierge {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.1rem;
  padding: 2rem 1.4rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(216, 180, 124, 0.22), transparent 60%),
    var(--ink-3);
  border: 1px solid var(--line);
}
.concierge .title { font-size: clamp(1.9rem, 7vw, 2.8rem); margin-top: 0.7rem; }

/* ---------- Catálogo ---------- */

.page-intro { padding: 1.8rem 0 0.5rem; display: grid; gap: 0.7rem; }

.catalog-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0;
  background: linear-gradient(var(--ink) 75%, transparent);
}
.chip-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }

.results-count { font-size: 0.85rem; color: var(--faint); margin: 0.4rem 0 1rem; }

.catalog-layout { display: block; }

/* Gaveta de filtros */
.filters-panel {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-sheet);
  max-height: 86dvh;
  overflow-y: auto;
  padding: 0.75rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line-strong);
  transform: translateY(105%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}
.filters-panel.is-open { transform: none; visibility: visible; }
.filters-panel::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 1rem;
  border-radius: 4px;
  background: var(--line-strong);
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sheet) - 1);
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.filters-form { display: grid; gap: 1rem; }
.filters-form h2 { font-size: 1.8rem; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.filter-actions {
  position: sticky;
  bottom: calc(-1.25rem - env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.6rem;
  margin: 0.25rem calc(var(--gutter) * -1) 0;
  padding: 0.85rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--ink-2) 25%);
}

/* ---------- Formulários ---------- */

label { display: grid; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--ivory);
  font-size: 1rem; /* evita zoom no iOS */
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d8b47c' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.checkbox-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text); }
.checkbox-label input { width: 20px; height: 20px; accent-color: var(--gold); }

/* ---------- Paginação ---------- */

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.pagination a {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pagination a.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty-state h2 { font-size: 1.9rem; }

/* ---------- Página do produto ---------- */

.pdp { padding-top: 0.5rem; }
.pdp-grid { display: grid; gap: 1.6rem; }

.gallery {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 5;
  background: radial-gradient(120% 90% at 50% 30%, #f8f3eb, var(--plinth-2));
  overflow: hidden;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.gallery-slide video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 13, 10, 0.3);
  transition: width 0.3s var(--ease), background-color 0.3s;
  cursor: pointer;
}
.gallery-dots button[aria-current="true"] { width: 22px; background: var(--ink); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.78rem; color: var(--faint); }
.breadcrumb a:hover { color: var(--gold); }

.pdp-info { display: grid; gap: 1.1rem; align-content: start; }
.pdp-title { font-size: clamp(2.5rem, 10vw, 3.8rem); line-height: 0.95; }
.pdp-sub { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pdp-sub span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.price-box {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: var(--r-md);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.price-pix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.price-pix .price { font-size: 2rem; font-family: var(--serif); font-weight: 600; line-height: 1; }
.price-pix small { color: var(--gold); font-weight: 600; font-size: 0.82rem; }
.price-full { font-size: 0.85rem; color: var(--muted); }
.price-full s { color: var(--faint); }

.installments summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.installments summary::-webkit-details-marker { display: none; }
.installments summary b { color: var(--ivory); }
.installments summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s;
}
.installments[open] summary::after { transform: rotate(-135deg); }
.installments ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.installments li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px dashed var(--line);
}
.installments li b { color: var(--text); font-weight: 600; }

.stock-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(169, 211, 166, 0.15); }
.stock-line.pre-order::before { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }

.pdp-desc { color: var(--text); font-size: 0.98rem; line-height: 1.7; max-width: 38rem; }

.purchase-form { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: end; }

.qty {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  color: var(--ivory);
  cursor: pointer;
}
.qty button:hover { color: var(--gold); }
.qty input {
  width: 36px;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: calc(var(--z-tabbar) - 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem var(--gutter);
  background: rgba(24, 19, 15, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar-price { display: grid; line-height: 1.2; min-width: 0; }
.buybar-price strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ivory); }
.buybar-price span { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar form { margin: 0 0 0 auto; }
.buybar .btn { min-height: 48px; padding: 0 1.25rem; }

/* ---------- Carrinho ---------- */

.cart-layout { display: grid; gap: 1.5rem; }
.cart-list { display: grid; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--plinth);
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-item-info { display: grid; gap: 0.2rem; align-content: start; min-width: 0; }
.cart-item-info h2 { font-size: 1.3rem; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-actions form { margin: 0; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 36px; }
.btn-text {
  border: 0;
  background: none;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-text:hover { color: var(--danger); }

.summary-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.92rem; color: var(--muted); }
.summary-line strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }

.checkout-form, .checkout-fieldset { display: grid; gap: 0.9rem; }
.checkout-fieldset, fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ivory);
}
.checkout-hint { font-size: 0.86rem; color: var(--muted); }
.checkout-grid { display: grid; gap: 0.9rem; }
.cep-status { font-size: 0.82rem; color: var(--muted); align-self: end; min-height: 1.2em; }
.cep-status-success { color: var(--ok); }
.cep-status-error { color: var(--danger); }

.checkout-known { display: grid; gap: 0.6rem; padding: 1rem; border-radius: var(--r-md); background: var(--ink-3); }
.checkout-known-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.checkout-known-name { font-size: 1.6rem; }
.checkout-known-details { display: grid; gap: 0.5rem; margin: 0; }
.checkout-known-details div { display: grid; gap: 0.1rem; }
.checkout-known-details dt { font-size: 0.74rem; color: var(--faint); }
.checkout-known-details dd { margin: 0; font-size: 0.92rem; }

.pay-options { display: grid; gap: 0.6rem; }
.pay-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.pay-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.pay-option small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.pay-option .price { font-size: 1rem; }
.pay-option:has(input:checked) { border-color: var(--gold); background: rgba(216, 180, 124, 0.07); }

.pay-panel { display: grid; gap: 0.9rem; padding: 1rem; border-radius: var(--r-md); background: var(--ink-3); }
.pay-panel[hidden] { display: none; }

.pix-box { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.pix-qr {
  width: min(230px, 70vw);
  padding: 10px;
  border-radius: var(--r-md);
  background: #fff;
}
.pix-qr svg { width: 100%; height: auto; }
.pix-amount { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ivory); line-height: 1; }
.pix-code {
  width: 100%;
  min-height: 0;
  padding: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-all;
  resize: none;
}
.pix-steps { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; text-align: left; font-size: 0.86rem; color: var(--muted); }
.pix-steps b { color: var(--text); }

.checkout-reset { margin: 0; text-align: center; }

/* ---------- Rodapé ---------- */

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--ink), #0c0907);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: grid; gap: 0.9rem; justify-items: start; }
.footer-brand img { width: 64px; }
.footer-brand p { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--text); line-height: 1.2; max-width: 22rem; }
.footer-col { display: grid; gap: 0.45rem; align-content: start; font-size: 0.9rem; color: var(--muted); }
.footer-heading { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.footer-col a:hover { color: var(--gold); }
.footer-address { font-style: normal; display: grid; gap: 0.15rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.84rem;
  color: var(--text);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 17px; height: 17px; }
.footer-map { margin-top: 2rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.footer-map iframe { display: block; width: 100%; height: 220px; border: 0; filter: grayscale(1) invert(0.9) contrast(0.85); }
.footer-map-btn { margin-top: 2rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--faint); }

/* ---------- Animações de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Telas maiores ---------- */

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1rem; }
  .product-rail { grid-auto-columns: 36%; }
  .style-rail { grid-auto-columns: 42%; }
  .checkout-grid { grid-template-columns: 1fr 1fr; }
  .hero-stage { height: 420px; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .has-buybar { padding-bottom: 0; }
  .tabbar, .buybar, .only-mobile { display: none !important; }

  .brand img { width: 42px; }
  .brand-name { font-size: 1.55rem; }

  .site-nav { display: flex; gap: 0.25rem; }
  .site-nav a {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s, background-color 0.2s;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); background: var(--ink-3); }

  .hero { padding: 4rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; }
  .hero-stage { height: 560px; margin: 0; }

  .section { padding: 5.5rem 0; }
  .section-head { margin-bottom: 2.25rem; }

  .style-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .product-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 2.25rem 1.25rem; }
  .product-grid { gap: 2.25rem 1.25rem; }

  .how-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }

  .concierge { grid-template-columns: 1.4fr auto; align-items: center; padding: 3rem; }

  .catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
  .filters-panel {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    inset: auto;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
    visibility: visible;
  }
  .filters-panel::before, .sheet-backdrop { display: none; }
  .catalog-bar { position: static; background: none; }

  .pdp { padding-top: 2rem; }
  .pdp-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
  .gallery { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: var(--r-lg); overflow: hidden; }

  .cart-layout { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
  .summary-card { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- SEO / AEO: resumo e perguntas ---------- */

.facts {
  padding: 1.1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.facts-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.facts dl { display: grid; margin: 0; }
.facts dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}
.facts dl div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ivory); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.faq-list { display: grid; }
.faq-item { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.35rem; line-height: 1.15; margin-bottom: 0.45rem; }
.faq-item p { color: var(--muted); font-size: 0.95rem; max-width: 42rem; }

.catalog-intro { color: var(--muted); font-size: 0.95rem; max-width: 40rem; }

@media (min-width: 960px) {
  .faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
}

section[id], [id="busca"] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }

/* ---------- Instagram: stories ---------- */

.stories { padding: 0.9rem 0 0.25rem; border-bottom: 1px solid var(--line); }
.stories-rail {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}
.stories-rail::-webkit-scrollbar { display: none; }

.story-bubble {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  width: 74px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-ring {
  display: block;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #f3d9a4, var(--gold), #8a5a2b, #e9c387, #f3d9a4);
  transition: transform 0.25s var(--ease);
}
.story-bubble:active .story-ring { transform: scale(0.94); }
.story-bubble.is-seen .story-ring { background: var(--line-strong); }
.story-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: var(--plinth);
}
.story-thumb-logo { object-fit: contain; padding: 10px; background: var(--ink-3); }
.story-label {
  max-width: 74px;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}
.story-viewer::backdrop { background: rgba(0, 0, 0, 0.92); }
.story-frame {
  position: relative;
  width: min(100%, calc(100dvh * 9 / 16));
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
.story-media, .story-media img, .story-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-media img, .story-media video { animation: story-in 0.35s var(--ease); }
@keyframes story-in { from { opacity: 0; transform: scale(1.03); } }

.story-progress {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 4px;
}
.story-progress span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; background: #fff; }
.story-progress span.is-done i { width: 100%; }

.story-head {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top)) + 12px);
  left: 12px;
  right: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.story-head img { width: 32px; height: auto; border-radius: 50%; background: rgba(0, 0, 0, 0.45); padding: 3px; }
.story-head small { opacity: 0.75; margin-left: 0.3rem; }
.story-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.story-nav {
  position: absolute;
  top: 80px;
  bottom: 120px;
  z-index: 2;
  width: 35%;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-prev { left: 0; }
.story-next { right: 0; width: 65%; }

.story-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  padding: 3rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  text-align: center;
}
.story-caption { font-size: 1rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.story-caption:empty { display: none; }

/* ---------- Instagram: últimos posts ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-inline: calc(var(--gutter) * -1);
}
.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink-3);
}
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.ig-post-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(17, 13, 10, 0.62);
  color: var(--ivory);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.ig-post-overlay svg { width: 26px; height: 26px; }
.ig-post-overlay span { display: none; }
.ig-post:hover img { transform: scale(1.05); }
.ig-post:hover .ig-post-overlay, .ig-post:focus-visible .ig-post-overlay { opacity: 1; }

@media (min-width: 960px) {
  .stories { padding-top: 1.25rem; }
  .story-bubble { width: 84px; }
  .story-thumb { width: 74px; height: 74px; }
  .ig-grid { margin: 0; gap: 1rem; }
  .ig-post { border-radius: var(--r-md); }
  .ig-post-overlay span { display: block; }
}

/* O atributo hidden sempre vence (ex.: .btn com display próprio) */
[hidden] { display: none !important; }
