/* ─────────────────────────────────────────────────────────────────────────────
   ATELIER 14 — editorial minimalist product page
   Verbatim styles (paper / ink / stone / sand)
───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand palette */
  --paper:       #ffffff;          /* Background */
  --ink:         #0e1011;          /* Headings + primary anchors (title, price) */
  --ink-soft:    #1c1c1c;          /* Body text */
  --stone:       #6b6f74;          /* Secondary / muted: eyebrows, labels, meta, breadcrumb, ref.
                                      Real mid-grey so micro-labels recede beneath title/price
                                      (was #1f2123 — near-black, which flattened all hierarchy). */
  --stone-soft:  rgba(28, 28, 28, 0.40);
  --paper-tint:  #fafafa;          /* Lightest tinted surface (one step under --paper) */
  --paper-soft:  #f7f7f7;
  --sand:        #f5f5f5;
  --line:        rgba(14, 16, 17, 0.10);
  --line-strong: rgba(14, 16, 17, 0.22);
  --error:       #8a2a2a;
  --disabled-bg: #5f666b;
  --disabled-text: var(--paper);
  --focus-outline: 2px solid var(--ink);
  --focus-outline-offset: 3px;

  /* Semantic overlay tokens (avoid hard-coded rgba in components) */
  --paper-92:    rgba(255, 255, 255, 0.92);  /* badge/counter pills on light bg */
  --paper-65:    rgba(255, 255, 255, 0.65);  /* footer muted text on dark bg */
  --paper-50:    rgba(255, 255, 255, 0.50);
  --paper-15:    rgba(255, 255, 255, 0.15);  /* footer divider on dark bg */
  --ink-00:      rgba(14, 16, 17, 0);
  --ink-04:      rgba(14, 16, 17, 0.04);
  --ink-08:      rgba(14, 16, 17, 0.08);
  --ink-18:      rgba(14, 16, 17, 0.18);
  --ink-40:      rgba(14, 16, 17, 0.40);
  --ink-50:      rgba(14, 16, 17, 0.50);
  --overlay-scrim: var(--ink-40);
  --overlay-scrim-strong: var(--ink-50);
  --overlay-modal-backdrop: rgba(20, 18, 14, 0.55);
  --shadow-dropdown: 0 8px 24px var(--ink-08);
  --shadow-popover: 0 10px 32px var(--ink-08);
  --shadow-drawer: -20px 0 40px var(--ink-08);
  --shadow-drawer-strong: -10px 0 32px var(--ink-18);
  --shadow-sticky-bar: 0 -12px 40px var(--ink-08);
  --shadow-modal: 0 24px 80px rgba(20, 18, 14, 0.22);

  /* Rating star states (built from body text colour) */
  --rating-empty:  rgba(28, 28, 28, 0.22);
  --rating-hover:  var(--ink-soft);
  --rating-filled: var(--ink);

  --gutter:      48px;
  --rail-w:      380px;

  --sans:  "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) prevents horizontal scroll from the full-bleed
   sections without creating a scroll container — which would break the sticky
   nav below. */
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);            /* body text */
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: 0.005em;
}

/* Headings always use the strongest ink (#0E1011) */
h1, h2, h3, h4, h5, h6,
.h1-display, .h2-section,
.cos-card__title, .accordion-item summary,
.product-title-row, .cos-shop__title { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── typography utilities ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
}
.label {
  /* Single micro-label system — matches .eyebrow / .style-code / meta labels
     so COR, TAMANHO and every other small caption read as one calm tier. */
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--stone);
}
.h1-display {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.h2-section {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ── top utility bar ──────────────────────────────────────────────────────── */
.utility {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 0;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  /* Break out of the .cos-shell cap (1800px) — the promo marquee runs
     edge-to-edge across the viewport, while everything below stays capped.
     The !important defeats `.cos-shell > * { max-width: 100% }` which would
     otherwise pin the bar back to the shell width. */
  width: 100vw;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.utility-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  /* Full-bleed the bar (and its bottom rule) across the viewport so the
     separator runs edge-to-edge — like the utility marquee above. The
     content inside is re-centred by .nav-inner's max-width below. */
  width: 100vw;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  /* Re-cap the visible nav content to the site shell width so SHOP /
     PETRA / icons stay aligned with everything below. */
  max-width: 1800px;
  margin: 0 auto;
}
.nav-left, .nav-right {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right button, .nav-right a {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  position: relative;
}
.nav-left a:hover { color: var(--stone); }
.nav-right .nav-icon,
.nav-right .nav-icon:hover,
.nav-right .nav-icon:focus,
.nav-right .nav-icon:active { color: var(--ink); transform: none; }
.brand {
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 14px;
  text-transform: uppercase;
  text-align: center;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--stone);
  font-weight: 400;
  margin-top: 2px;
}
.cart-dot {
  position: absolute;
  top: -6px; right: -10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* ── breadcrumb ───────────────────────────────────────────────────────────── */
.crumbs {
  padding: 24px var(--gutter) 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs span { color: var(--stone-soft); }
.crumbs strong { color: var(--ink); font-weight: 400; }

/* ── hero — editorial layout ──────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr var(--rail-w);
  gap: var(--gutter);
  padding: 32px var(--gutter) 80px;
  align-items: start;
}
.hero[data-layout="centered"] {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}
.hero[data-layout="split"] {
  /* Coluna da galeria elástica (1fr) + info-rail FLUIDO via clamp: encolhe e
     cresce suavemente com a largura do ecrã em vez de saltar de 500→720px.
     Isto resolve o "PC pequeno": antes o rail prendia-se a 500px+ e esmagava
     a galeria; agora o rail acompanha o viewport (36vw) e a foto mantém-se
     sempre maior que o rail em todas as larguras de desktop. */
  grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 560px);
  gap: 0;
  padding: 0 var(--gutter);
}
.hero[data-layout="split"] .gallery-column {
  /* Sticky nas DUAS colunas: a mais curta cola no topo, a mais comprida
     faz scroll. O browser escolhe qual fica fixa conforme a altura de cada
     produto (galeria longa → cola o info-rail; info-rail longo → cola a
     galeria). align-self: start impede que a coluna estique até à altura da
     linha — sem isso não haveria folga para "colar". */
  position: sticky;
  top: 84px;
  height: auto;
  overflow: visible;
  background: transparent;
  padding: 0;
  align-self: start;
}
.hero[data-layout="split"] .gallery-column .frames {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.hero[data-layout="split"] .gallery-column .frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  max-width: min(100%, calc((100vh - 84px) * 3 / 4));
  margin: 0 auto;
}
.hero[data-layout="split"] .gallery-column .gallery-thumbs { display: none; }
.hero[data-layout="split"] .info-rail {
  /* Horizontal gutter now lives on .hero[data-layout="split"] so the gallery
     and info-rail share the same outer edge as the site header / footer.
     Top padding matches the gallery column's 24px so the info rail's first
     line (Ref.) sits level with the top edge of the product photo. */
  padding: 24px 0 80px var(--gutter);
  /* Par do sticky da .gallery-column acima — ver nota lá. */
  position: sticky;
  top: 84px;
  align-self: start;
}

/* gallery column */
.gallery-column .frames {
  display: grid;
  gap: 12px;
}

.frame {
  position: relative;
  background: var(--sand);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.frame[data-aspect="wide"]   { aspect-ratio: 4 / 3; }
.frame[data-aspect="square"] { aspect-ratio: 1 / 1; }
.frame img,
.frame > a > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: transparent;
  display: block;
}
.frame:hover { transform: scale(0.995); }

/* info rail */
.info-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;                 /* tight base — keeps the identity cluster together */
  padding-top: 8px;
}
/* Grouping rhythm: each block that starts a new "chapter" gets extra air above,
   so the rail reads as distinct zones (identity · price · options · buy · trust · details)
   instead of one evenly-spaced wall. */
.info-rail .price-row   { margin-top: 16px; }
.info-rail form.cart,
.info-rail .variations_form { margin-top: 8px; }
.info-rail .meta-strip  { margin-top: 18px; }
.info-rail .accordion   { margin-top: 18px; }
.info-rail .style-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.product-title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.price-row .price {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.price-row .price del { color: var(--stone); margin-right: 8px; font-weight: 400; font-size: 16px; }
.price-row .price ins { text-decoration: none; background: transparent; }
.price-row .tax {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.review-stars {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
}
.stars { display: inline-flex; gap: 2px; }
.stars i {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--ink);
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.stars i.empty { background: var(--stone-soft); }

/* swatches (color) */
.swatch-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.swatch-block .header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.swatch-block .current {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.swatch {
  width: 38px;
  height: 38px;
  border-radius: 0;
  border: 1px solid var(--line);
  padding: 3px;
  background: transparent;
  position: relative;
  transition: border-color .15s ease;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.swatch i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--c);
  pointer-events: none;
}
.swatch[aria-pressed="true"] {
  border-color: var(--ink);
  border-width: 2px;
  padding: 2px;
}
.swatch[aria-pressed="true"]::after {
  display: none;
}
.swatch:hover { border-color: var(--stone); }
.swatch[data-low-stock="1"] i::after,
.swatch[disabled] i::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, transparent calc(50% - .5px), var(--stone) 50%, transparent calc(50% + .5px));
  opacity: 0.5;
}

/* sizes */
.size-block { display: flex; flex-direction: column; gap: 12px; }
.size-block .header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.size-block .size-guide {
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.size {
  position: relative;
  padding: 14px 0;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
  transition: all .15s ease;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;          /* min touch target on mobile */
}
.size:hover { border-color: var(--stone); }
.size[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.size[data-out="1"],
.size[disabled] {
  color: var(--stone-soft);
  border-color: var(--line);
  cursor: not-allowed;
}
.size[data-out="1"]::before,
.size[disabled]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top left, transparent calc(50% - .5px), var(--stone-soft) calc(50% - .5px), var(--stone-soft) calc(50% + .5px), transparent calc(50% + .5px));
}
.size[data-low="1"]::after {
  content: "LOW";
  position: absolute;
  top: -7px; right: -1px;
  background: var(--ink);
  color: var(--paper);
  font-size: 7px;
  letter-spacing: 0.08em;
  padding: 2px 4px;
}

/* CTA */
.cta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta {
  width: 100%;
  padding: 18px 24px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
  transition: background .15s ease, transform .15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
}
.cta:hover { background: var(--ink-soft); }
.cta:disabled,
.cta.disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
}
.cta .price-suffix {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.cta.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta.secondary:hover { background: var(--ink); color: var(--paper); }

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.meta-strip .item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.meta-strip .item strong {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* ── accordions ───────────────────────────────────────────────────────────── */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item > summary,
.accordion-item > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.accordion-item > summary::-webkit-details-marker { display: none; }
.accordion-item .plus {
  width: 12px; height: 12px;
  position: relative;
  transition: transform .25s ease;
  display: inline-block;
}
.accordion-item .plus::before,
.accordion-item .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  inset: 0;
  margin: auto;
}
.accordion-item .plus::before { height: 1px; }
.accordion-item .plus::after { width: 1px; transition: opacity .2s ease; }
.accordion-item[open] .plus::after,
.accordion-item[data-open="1"] .plus::after { opacity: 0; }
.accordion-item .content {
  overflow: hidden;
}
.accordion-item .content-inner {
  padding: 4px 0 28px;
  font-size: 14px;
  line-height: 1.65;
  /* Corpo em tom cinza (--stone) para criar contraste com os títulos/subtítulos
     em --ink. Sem isto, --ink-soft (#1c1c1c) é quase igual a --ink e tudo lê
     como a mesma cor (era esse o problema). */
  color: var(--stone);
  max-width: 70ch;
}
.accordion-item .content-inner p { margin: 0 0 12px; }
.accordion-item .content-inner p:last-child { margin-bottom: 0; }
.accordion-item .content-inner ul,
.accordion-item .content-inner ol {
  margin: 8px 0 12px;
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
}
.accordion-item .content-inner ul { list-style: disc; }
.accordion-item .content-inner ol { list-style: decimal; }
.accordion-item .content-inner li {
  color: var(--stone);
}
.accordion-item .content-inner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Títulos/subtítulos dentro do conteúdo — destacam-se do corpo cinza:
   --ink, mais peso. Apanha tanto headings (h2–h6) como texto a negrito
   (ex.: "Prazos e Condições:") que o cliente escreva no editor. */
.accordion-item .content-inner h2,
.accordion-item .content-inner h3,
.accordion-item .content-inner h4,
.accordion-item .content-inner h5,
.accordion-item .content-inner h6 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 18px 0 8px;
}
.accordion-item .content-inner h2:first-child,
.accordion-item .content-inner h3:first-child,
.accordion-item .content-inner h4:first-child { margin-top: 0; }
.accordion-item .content-inner h2 { font-size: 16px; }
.accordion-item .content-inner h3 { font-size: 15px; }
.accordion-item .content-inner h4,
.accordion-item .content-inner h5,
.accordion-item .content-inner h6 { font-size: 14px; }
.accordion-item .content-inner strong,
.accordion-item .content-inner b { color: var(--ink); font-weight: 600; }

/* Legacy two-column label/value list (meta-style rows inside a panel). */
.accordion-item .content-inner ul.cos-spec-list {
  padding-left: 0;
  list-style: none;
}
.accordion-item .content-inner ul.cos-spec-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.accordion-item .content-inner ul.cos-spec-list li span:first-child {
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── section wrappers ─────────────────────────────────────────────────────── */
.section {
  padding: 100px var(--gutter);
}
.section.tight { padding: 60px var(--gutter); }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-head .right {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

/* recommendations */
.recs-section { background: var(--paper); }
.recs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.rec-card .frame { aspect-ratio: 3 / 4; cursor: pointer; }
.rec-card .rec-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rec-card .rec-name {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.rec-card .rec-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.04em;
}

/* reviews */
.reviews-section { background: var(--paper); }
.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}
.reviews-summary .score {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reviews-summary .score .big {
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.reviews-summary .score .based {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.review-list { display: grid; gap: 0; }
.review-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.review-card:last-child { border-bottom: 1px solid var(--line); }
.review-card .who {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.review-card .who strong {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.review-card .body h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.review-card .body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 70ch;
}

/* ── footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 0;
  /* Full-bleed: a faixa escura rompe o cap de 1800px da .cos-shell e corre
     edge-to-edge (mesma técnica do marquee). O padding lateral usa a fórmula do
     painel de menu do header para recolocar o conteúdo alinhado com a grelha de
     produtos — em ecrãs largos as colunas ficam por cima dos produtos. */
  width: 100vw;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 80px max(var(--gutter), calc((100vw - 1800px) / 2 + var(--gutter))) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--paper);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer li a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-65);
}
.footer li a:hover { color: var(--paper); }
.footer .brand-block .brand {
  color: var(--paper);
  margin-bottom: 18px;
  text-align: left;
}
.footer .brand-block .brand small { color: var(--paper-50); }
/* Logótipo no rodapé (próprio ou herdado do site) — limita para não rebentar o layout. */
.footer .brand-block .brand img,
.footer .brand-block .brand .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 40px;
}
.footer .brand-block .brand .custom-logo-link { display: inline-block; }
.footer .brand-block p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--paper-65);
  max-width: 38ch;
  margin: 0;
}
/* Tira de logos de pagamento. */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 24px;
}
/* .footer prefixo: bate a especificidade do WooCommerce (.woocommerce-page img). */
.footer .footer-payments__logo {
  display: block;
  height: 32px;          /* altura fixa — largura automática mantém a proporção */
  width: auto;
  max-width: 100px;      /* trava logos muito largos */
  object-fit: contain;
  border-radius: 4px;
}

.footer-base {
  border-top: 1px solid var(--paper-15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-50);
}
.footer-base__credit a { color: var(--paper-65); }
.footer-base__credit a:hover { color: var(--paper); }

/* ── sticky add-to-cart bar ───────────────────────────────────────────────── */
.stuck-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  z-index: 80;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--shadow-sticky-bar);
}
.stuck-bar[data-on="1"] { transform: translateY(0); }
.stuck-bar .left {
  display: flex;
  gap: 16px;
  align-items: center;
}
.stuck-bar .mini-frame {
  width: 56px; height: 70px;
  background: var(--ph-color, var(--sand));
}
.stuck-bar .stuck-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stuck-bar .stuck-name {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.stuck-bar .stuck-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.04em;
}

/* Stuck-bar CTA — same look as the primary in info-rail */
.stuck-bar .cos-stuck-cta {
  width: auto;
  min-width: 220px;
  height: 52px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: background .15s ease;
}
.stuck-bar .cos-stuck-cta:hover { background: var(--ink-soft); color: var(--paper); }
.stuck-bar .cos-stuck-cta .cta-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  flex: 1;
  text-align: left;
}
.stuck-bar .cos-stuck-cta .cta-text {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
}
.stuck-bar .cos-stuck-cta .cta-price {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-transform: none;
  opacity: 0.85;
}
.stuck-bar .cos-stuck-cta .cta-price:empty { display: none; }
.stuck-bar .cos-stuck-cta .cta-icon { font-size: 18px; flex: none; }

/* Disabled variant — keeps the look but communicates "select options" */
.stuck-bar .cos-stuck-cta--disabled {
  background: var(--ink);                  /* still solid ink so it remains clickable visually */
  cursor: pointer;
}
.stuck-bar .cos-stuck-cta--disabled:hover { background: var(--ink-soft); }

/* Sold-out variant — visually muted and non-interactive */
.stuck-bar .cos-stuck-cta--soldout,
.stuck-bar .cos-stuck-cta--soldout:hover {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

/* Flash highlight when stuck-bar triggers a scroll to variations */
.cos-flash {
  animation: cos-flash-anim 0.7s ease-out;
}
@keyframes cos-flash-anim {
  0%, 100% { background: transparent; }
  50%      { background: var(--ink-04); }
}

/* ── mini cart drawer ─────────────────────────────────────────────────────── */
.scrim {
  position: fixed;
  inset: 0;
  background: var(--ink-00);
  z-index: 99;
  pointer-events: none;
  transition: background .3s ease;
}
.scrim[data-on="1"] {
  background: var(--overlay-scrim);
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: var(--paper);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-drawer);
}
.drawer[data-on="1"] { transform: translateX(0); }
.drawer-head {
  flex: 0 0 auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
/* Specificity bumped (.drawer ancestor) to beat the global `.cos-woo h3`
   rule, which otherwise leaks a border-bottom + padding + margin onto the
   drawer title (the underline under "O teu carrinho"). */
.drawer .drawer-head h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
}
.drawer-close {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.drawer-close .material-symbols-outlined { font-size: 22px; }
.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 28px;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.drawer-foot {
  flex: 0 0 auto;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
}
.drawer-foot[hidden] { display: none; }
.drawer-foot .subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.drawer-foot .subtotal strong {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.drawer-foot .drawer-cta {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.drawer-foot .drawer-cta:hover { background: var(--ink-soft); color: var(--paper); }
.drawer-foot .drawer-cta--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.drawer-foot .drawer-cta--secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.drawer-foot .drawer-cta .material-symbols-outlined { font-size: 18px; }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line .thumb {
  width: 80px;
  height: 100px;
  background: var(--sand);
  overflow: hidden;
}
.cart-line .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cart-line .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cart-line .info .name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
.cart-line .info .name a { color: inherit; }
.cart-line .info .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.cart-line .info .meta dl { margin: 0; }
.cart-line .info .meta dt {
  display: inline;
  font-weight: 500;
  margin-right: 4px;
}
.cart-line .info .meta dd { display: inline; margin: 0; }
.cart-line .info .meta dd p { display: inline; margin: 0; }
.cart-line .info .meta dd::after { content: ""; display: block; margin-bottom: 2px; }
.cart-line .info .qty-amount {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.cart-line .price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.cart-line .remove {
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cart-empty .material-symbols-outlined { font-size: 48px; color: var(--stone-soft); margin-bottom: 12px; }
.drawer-loading {
  text-align: center;
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
/* Lock page scroll while drawer is open. The JS also sets `position: fixed` +
   top offset on <body> to fully prevent iOS Safari's rubber-band scroll. */
body.cart-drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  /* `top: -<scrollY>px` is set inline by JS */
}
html.cart-drawer-open { overflow: hidden; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1fr; }
  /* Drop the hero's side gutter on mobile: the gallery is full-bleed and the
     info-rail already applies its own gutter — keeping both double-padded the
     content. The info-rail is now the single source of horizontal inset. */
  .hero[data-layout="split"] { grid-template-columns: 1fr; padding: 0; }
  .hero[data-layout="split"] .gallery-column {
    position: relative;
    top: 0;
    height: auto;
    min-height: 60vh;
    padding: 16px;
  }
  .hero[data-layout="split"] .info-rail { padding: 40px var(--gutter); }
  .info-rail { position: static; padding-top: 32px; }
  .recs-grid, .reviews-summary {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .recs-grid { grid-template-columns: repeat(2, 1fr); }
  /* Footer em tablet: marca a toda a largura, 4 colunas de links lado a lado. */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
    margin-bottom: 56px;
  }
  .footer-grid .brand-block { grid-column: 1 / -1; }
  .review-card { grid-template-columns: 1fr; gap: 16px; }
  .nav-left, .nav-right { gap: 16px; font-size: 11px; }
}

/* Mobile stuck-bar: stack vertically with full-width CTA */
@media (max-width: 720px) {
  .stuck-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px var(--gutter);
  }
  .stuck-bar .left { gap: 12px; }
  .stuck-bar .mini-frame { width: 44px; height: 56px; }
  .stuck-bar .cos-stuck-cta {
    width: 100%;
    min-width: 0;
    height: 50px;
  }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .sizes { grid-template-columns: repeat(3, 1fr); }
  /* Footer em mobile: 2 colunas de links (marca continua a toda a largura). */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
}
