/* =========================================================================
   MAISON — Loja editorial minimalista
   Design system + estética "revista": tipografia grande, layouts
   desenquadrados mas coerentes, tratamento de "negativo" fotográfico.
   ========================================================================= */

/* ----------------------------- Tokens ----------------------------------- */
:root {
  --ink: #0f0f0f;
  --ink-soft: #4a4a48;
  --paper: #f4f1ea;      /* off-white "papel de revista" */
  --paper-pure: #fbfaf7;
  --line: #d9d4c8;
  --accent: #b5623f;     /* terracota discreta */

  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step: clamp(1rem, 0.6rem + 2vw, 2rem);
  --gutter: clamp(1.25rem, 3vw, 3.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;
}

/* ----------------------------- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* Foco acessível */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Utilities de acessibilidade */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ----------------------------- Tipografia ------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.overline {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transition: background var(--dur) var(--ease);
}
.site-header .brand {
  font-family: var(--serif);
  font-size: 1.35rem; letter-spacing: 0.35em; text-transform: uppercase;
  padding-left: 0.35em;
}
.site-header nav ul { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-header nav a {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; padding-bottom: 2px;
}
.site-header nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: width 0.4s var(--ease);
}
.site-header nav a:hover::after { width: 100%; }
/* Header sólido em páginas de conteúdo (não hero) */
.site-header.solid { mix-blend-mode: normal; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }

/* ----------------------------- HERO ------------------------------------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; place-items: center; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.1) 40%, rgba(0,0,0,.5));
}
.hero__title {
  color: #fff; text-align: center; padding: 0 var(--gutter);
  font-size: clamp(3.5rem, 16vw, 15rem);
  mix-blend-mode: screen;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: 0.12s; }
.hero__sub {
  position: absolute; bottom: clamp(1.5rem, 5vh, 4rem); left: 50%;
  transform: translateX(-50%); color: #fff; text-align: center;
  opacity: 0; animation: fade 1s var(--ease) 0.9s forwards;
}
.hero__scroll {
  display: inline-block; margin-top: 0.5rem; font-size: 1.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ----------------------- Seleção de categorias -------------------------- */
.picker {
  padding: clamp(4rem, 12vh, 9rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}
.picker__lead {
  max-width: 40ch; margin-bottom: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.01em;
}
.picker__lead .overline { display: block; margin-bottom: 1.2rem; font-family: var(--sans); }
.cats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 800px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat {
  position: relative; display: block; background: var(--paper);
  aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
}
.cat img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform 1s var(--ease), filter 0.8s var(--ease);
}
.cat:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1); }
.cat__label {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.5rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  color: #fff; mix-blend-mode: difference;
}
.cat__label h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 0.9;
}
.cat__label .idx { font-size: 0.7rem; letter-spacing: 0.2em; }
.cat__arrow {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  color: #fff; mix-blend-mode: difference; font-size: 1.5rem;
  transform: translate(-6px, 6px); opacity: 0; transition: 0.5s var(--ease);
}
.cat:hover .cat__arrow { transform: translate(0,0); opacity: 1; }

/* ----------------------- Faixa editorial "negativo" --------------------- */
.negative {
  position: relative; margin: clamp(3rem,10vh,8rem) 0; padding: var(--gutter);
  background: var(--ink); color: var(--paper); overflow: hidden;
}
.negative__grid { display: grid; gap: var(--gutter); align-items: center; }
@media (min-width: 900px) { .negative__grid { grid-template-columns: 1.1fr 0.9fr; } }
.negative img { filter: invert(1) grayscale(1) contrast(1.2); transition: filter 0.6s var(--ease); }
.negative img:hover { filter: none; }
.negative h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.02em;
}
.negative p { max-width: 42ch; margin-top: 1.5rem; color: #cfc9bb; }
.negative small { display:block; margin-top:1.5rem; letter-spacing:.2em; text-transform:uppercase; font-size:.7rem; color:#8a8577;}

/* ----------------------------- Footer ----------------------------------- */
.site-footer {
  border-top: 1px solid var(--line); padding: clamp(3rem,8vh,6rem) var(--gutter) 2rem;
}
.site-footer__big {
  font-family: var(--serif); font-size: clamp(3rem, 12vw, 10rem);
  line-height: 0.9; letter-spacing: -0.03em; margin-bottom: 3rem;
}
.site-footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.site-footer__cols h4 { font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; margin-bottom:1rem; color:var(--ink-soft);}
.site-footer__cols a { display:block; padding:.25rem 0; font-size:.9rem; }
.site-footer__cols a:hover { text-decoration: underline; }
.site-footer__base { margin-top:3rem; padding-top:1.5rem; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; font-size:.72rem; color:var(--ink-soft); letter-spacing:.1em; }

/* =========================================================================
   LISTAGEM — grelha editorial desenquadrada (12 colunas)
   ========================================================================= */
.listing-head {
  padding: clamp(7rem, 14vh, 11rem) var(--gutter) clamp(2rem,5vh,4rem);
  display: grid; gap: 1rem;
}
.listing-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 13vw, 11rem); line-height: 0.85; letter-spacing: -0.03em;
}
.listing-head .meta { display:flex; flex-wrap:wrap; gap:1.5rem; align-items:baseline; }
.listing-head .meta .count { font-size:.75rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-soft);}
.filters { display:flex; gap:1.25rem; flex-wrap:wrap; }
.filters button {
  font-size:.72rem; letter-spacing:.15em; text-transform:uppercase;
  padding-bottom:3px; border-bottom:1px solid transparent; color:var(--ink-soft);
}
.filters button.is-active { color:var(--ink); border-color:var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter) var(--gutter); padding: 0 var(--gutter) clamp(5rem,10vh,8rem);
}
/* Card base */
.card {
  grid-column: span 6; position: relative;
  opacity: 0; transform: translateY(30px);
}
.card.in { animation: cardIn 0.9s var(--ease) forwards; }
@keyframes cardIn { to { opacity:1; transform:none; } }

/* Layouts "desenquadrados" mas coerentes -------------------------------- */
@media (min-width: 760px) {
  .card--normal { grid-column: span 4; }
  .card--wide   { grid-column: span 7; }
  .card--tall   { grid-column: span 5; }
  .card--offset { grid-column: span 4; margin-top: clamp(3rem, 9vw, 8rem); }
  /* Empurra alguns cards para criar ritmo/desalinhamento */
  .card--wide  + .card--tall { margin-top: clamp(2rem, 6vw, 5rem); }
  .card:nth-child(6n+3) { margin-top: clamp(2rem, 7vw, 6rem); }
}

.card__media {
  position: relative; overflow: hidden; background: var(--line);
  aspect-ratio: 3 / 4;
}
.card--wide .card__media { aspect-ratio: 4 / 3; }
.card--tall .card__media { aspect-ratio: 2 / 3; }
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 1.4s var(--ease), filter .7s var(--ease);
  filter: grayscale(1) contrast(1.08);
}
.card__media .front { opacity: 1; }
.card__media .back { opacity: 0; }
.card:hover .card__media .front { opacity: 0; }
.card:hover .card__media .back { opacity: 1; transform: scale(1.04); filter: grayscale(0); }
.card__edi {
  position:absolute; top:0.9rem; left:0.9rem; z-index:2; color:#fff;
  mix-blend-mode:difference; font-family:var(--serif); font-size:1.1rem;
}
.card__info { display:flex; justify-content:space-between; gap:1rem; padding-top:0.9rem; align-items:baseline; }
.card__info h3 { font-weight:400; font-size:1rem; letter-spacing:.01em; }
.card--wide .card__info h3 { font-family:var(--serif); font-size:clamp(1.3rem,2.5vw,2rem); }
.card__price { font-size:.9rem; white-space:nowrap; color:var(--ink-soft); }
.card__swatches { display:flex; gap:5px; margin-top:.4rem; }
.card__swatches i { width:10px; height:10px; border-radius:50%; border:1px solid rgba(0,0,0,.15); display:inline-block; }

/* =========================================================================
   SINGLE PRODUTO
   ========================================================================= */
.product {
  padding-top: clamp(6rem, 12vh, 9rem);
  display: grid; gap: var(--gutter);
}
@media (min-width: 900px) { .product { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }

/* Slider de imagens */
.gallery { position: relative; padding-left: var(--gutter); }
@media (min-width:900px){ .gallery { padding-left: 0; } }
.gallery__stage {
  position: relative; overflow: hidden; background: var(--line);
  aspect-ratio: 3/4;
}
.gallery__track { display:flex; height:100%; transition: transform 0.8s var(--ease); }
.gallery__track img { min-width:100%; height:100%; object-fit:cover; }
.gallery__nav {
  position:absolute; inset:auto 0 0 0; display:flex; justify-content:space-between;
  padding:1rem; align-items:flex-end;
}
.gallery__btns { display:flex; gap:.5rem; }
.gallery__btns button {
  width:44px; height:44px; border:1px solid #fff; color:#fff; mix-blend-mode:difference;
  border-radius:50%; display:grid; place-items:center; transition:.3s var(--ease);
}
.gallery__btns button:hover { background:#fff; color:var(--ink); mix-blend-mode:normal; }
.gallery__count { color:#fff; mix-blend-mode:difference; font-size:.8rem; letter-spacing:.2em; align-self:flex-end; }
.gallery__dots { display:flex; gap:.4rem; margin-top:1rem; padding:0 var(--gutter); }
@media(min-width:900px){ .gallery__dots{ padding:0; } }
.gallery__dots button { width:34px; height:2px; background:var(--line); }
.gallery__dots button.is-active { background:var(--ink); }

/* Detalhes */
.details { padding: 0 var(--gutter) clamp(4rem,8vh,7rem); position: sticky; top: 6rem; align-self:start; }
.details .breadcrumb { font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:1.5rem; }
.details h1 {
  font-family: var(--serif); font-weight:400;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height:0.95; letter-spacing:-0.02em; margin-bottom:1rem;
}
.details .price { font-size:1.25rem; margin-bottom:2rem; }
.details .desc { max-width:46ch; color:var(--ink-soft); margin-bottom:2.5rem; }

.opt { margin-bottom: 2rem; }
.opt__head { display:flex; justify-content:space-between; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; margin-bottom:.85rem; color:var(--ink-soft); }
.swatch-row { display:flex; gap:.6rem; }
.swatch {
  width:30px; height:30px; border-radius:50%; position:relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.swatch[aria-pressed="true"]::after {
  content:""; position:absolute; inset:-5px; border:1px solid var(--ink); border-radius:50%;
}
.size-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.size {
  min-width:52px; padding:.7rem .5rem; text-align:center; font-size:.85rem;
  border:1px solid var(--line); transition:.25s var(--ease);
}
.size:hover { border-color:var(--ink); }
.size[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }

.add {
  width:100%; padding:1.15rem; background:var(--ink); color:var(--paper);
  letter-spacing:.2em; text-transform:uppercase; font-size:.78rem;
  transition:.3s var(--ease); margin-top:.5rem;
}
.add:hover { background:var(--accent); }
.add:disabled { opacity:.4; cursor:not-allowed; }
.details .note { font-size:.75rem; color:var(--ink-soft); margin-top:1rem; }
.accordion { margin-top:2rem; border-top:1px solid var(--line); }
.accordion details { border-bottom:1px solid var(--line); }
.accordion summary { padding:1.1rem 0; font-size:.75rem; letter-spacing:.15em; text-transform:uppercase; cursor:pointer; display:flex; justify-content:space-between; list-style:none; }
.accordion summary::-webkit-details-marker { display:none; }
.accordion summary::after { content:"+"; }
.accordion details[open] summary::after { content:"–"; }
.accordion .body { padding:0 0 1.2rem; color:var(--ink-soft); font-size:.9rem; max-width:48ch; }

/* Relacionados */
.related { padding: clamp(3rem,7vh,5rem) var(--gutter) clamp(5rem,10vh,8rem); border-top:1px solid var(--line); }
.related h2 { font-family:var(--serif); font-weight:400; font-size:clamp(1.5rem,4vw,2.5rem); margin-bottom:2rem; }
.related .grid { grid-template-columns: repeat(12,1fr); padding:0; }
.related .card { grid-column: span 6; }
@media(min-width:760px){ .related .card { grid-column: span 3; margin-top:0 !important; } }

/* =========================================================================
   LOADER de transição entre páginas
   ========================================================================= */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease);
}
.loader[hidden] { display: none; }
.loader.reveal { clip-path: inset(0 0 100% 0); }         /* sobe a "cortina" ao sair */
.loader__inner { text-align:center; }
.loader__word {
  font-family: var(--serif); font-size: clamp(2.5rem, 9vw, 7rem); line-height:1;
  overflow:hidden;
}
.loader__word span { display:inline-block; transform: translateY(110%); animation: rise .8s var(--ease) forwards; }
.loader__bar { width: min(60vw, 320px); height:1px; background: rgba(255,255,255,.25); margin: 1.5rem auto 0; overflow:hidden; }
.loader__bar i { display:block; height:100%; width:100%; background:var(--paper); transform: scaleX(0); transform-origin:left; animation: load 0.9s var(--ease) .1s forwards; }
.loader__meta { margin-top:1rem; font-size:.7rem; letter-spacing:.3em; text-transform:uppercase; opacity:0; animation: fade .5s ease .3s forwards; }
@keyframes load { to { transform: scaleX(1); } }

/* Estado de entrada da página (fade suave do conteúdo) */
.page-fade { animation: pageFade .8s var(--ease); }
@keyframes pageFade { from { opacity:0; transform: translateY(12px);} to { opacity:1; transform:none;} }

/* =========================================================================
   BADGE do cesto no header
   ========================================================================= */
[data-cart-count] { font-variant-numeric: tabular-nums; }

/* =========================================================================
   CARRINHO
   ========================================================================= */
.cart-layout {
  display: grid; gap: var(--gutter);
  padding: 0 var(--gutter) clamp(5rem,10vh,8rem);
}
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 0.9fr; align-items: start; } }

.cart-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .line { grid-template-columns: 120px 1fr; gap: 1.75rem; } }
.line__media { display:block; background:var(--line); overflow:hidden; aspect-ratio:3/4; }
.line__media img { width:100%; height:100%; object-fit:cover; filter:grayscale(.4); transition:filter .5s var(--ease); }
.line:hover .line__media img { filter:none; }
.line__body { display:flex; flex-direction:column; }
.line__top { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.line__top h3 { font-family:var(--serif); font-weight:400; font-size:clamp(1.15rem,2.4vw,1.6rem); line-height:1; }
.line__remove { font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); border-bottom:1px solid transparent; }
.line__remove:hover { color:var(--ink); border-color:var(--ink); }
.line__variant { color:var(--ink-soft); font-size:.85rem; margin-top:.4rem; }
.line__foot { margin-top:auto; padding-top:1rem; display:flex; justify-content:space-between; align-items:center; }
.qty { display:inline-flex; align-items:center; border:1px solid var(--line); }
.qty button { width:38px; height:38px; font-size:1.1rem; display:grid; place-items:center; transition:.2s var(--ease); }
.qty button:hover { background:var(--ink); color:var(--paper); }
.qty span { min-width:38px; text-align:center; font-variant-numeric:tabular-nums; }
.line__price { font-size:1rem; }

.cart-empty { padding:4rem 0; text-align:left; display:grid; gap:1rem; border-top:1px solid var(--line); }
.cart-empty .display { font-size:clamp(2rem,6vw,3.5rem); }
.cart-empty p:nth-child(2) { color:var(--ink-soft); max-width:42ch; }

/* Resumo (cesto + checkout partilham) */
.summary, .checkout__summary {
  border:1px solid var(--line); padding:clamp(1.5rem,3vw,2.25rem);
  position:sticky; top:6rem; align-self:start; background:var(--paper-pure);
}
.summary__title { font-family:var(--serif); font-weight:400; font-size:1.5rem; margin-bottom:1.5rem; }
.summary__rows { display:grid; gap:.85rem; margin:0 0 1.25rem; }
.summary__rows > div { display:flex; justify-content:space-between; font-size:.95rem; }
.summary__rows dt { color:var(--ink-soft); }
.summary__total { padding-top:.85rem; border-top:1px solid var(--line); font-size:1.15rem; }
.summary__total dt, .summary__total dd { font-weight:400; }
.summary__total dd { font-family:var(--serif); }
.summary__note { font-size:.78rem; color:var(--accent); margin-bottom:1.25rem; letter-spacing:.02em; }
.summary__cont { display:block; text-align:center; margin-top:1rem; font-size:.8rem; letter-spacing:.08em; color:var(--ink-soft); }
.summary__cont:hover { color:var(--ink); }
.add.is-disabled { opacity:.35; pointer-events:none; }
.summary__secure { text-align:center; font-size:.72rem; color:var(--ink-soft); margin-top:1rem; }

/* =========================================================================
   CHECKOUT
   ========================================================================= */
.sandbox-badge {
  background:var(--accent); color:#fff; padding:.25rem .6rem; border-radius:2px;
  letter-spacing:.15em; font-size:.62rem;
}
.checkout {
  display:grid; gap:var(--gutter);
  padding:0 var(--gutter) clamp(5rem,10vh,8rem);
}
@media (min-width: 940px) { .checkout { grid-template-columns: 1.4fr 0.9fr; align-items:start; } }
.checkout__main { display:grid; gap:var(--gutter); }
.block { border:0; border-top:1px solid var(--ink); padding:1.75rem 0 0; margin:0; }
.block legend { display:flex; align-items:baseline; gap:.75rem; font-family:var(--serif); font-size:clamp(1.3rem,3vw,1.9rem); padding:0; margin-bottom:1.5rem; }
.block legend .step { font-family:var(--sans); font-size:.7rem; letter-spacing:.2em; color:var(--ink-soft); }

.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field { display:flex; flex-direction:column; gap:.4rem; }
.field--full { grid-column:1 / -1; }
.field span { font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); }
.field input {
  border:1px solid var(--line); background:var(--paper-pure); padding:.85rem .9rem;
  font:inherit; color:var(--ink); transition:border-color .2s var(--ease);
}
.field input:focus { outline:none; border-color:var(--ink); }
.field.is-invalid input { border-color:#a3342b; background:#fbf2f0; }

/* Métodos de pagamento */
.pay-methods { display:grid; gap:.6rem; margin-bottom:1.5rem; }
.pay-method {
  display:flex; align-items:center; gap:1rem; cursor:pointer;
  border:1px solid var(--line); padding:1rem 1.1rem; transition:border-color .2s var(--ease);
}
.pay-method:has(input:checked) { border-color:var(--ink); }
.pay-method input { position:absolute; opacity:0; }
.pay-method__head { display:flex; flex-direction:column; flex:1; }
.pay-method__head strong { font-weight:500; font-size:.95rem; }
.pay-method__head small { color:var(--ink-soft); font-size:.78rem; }
.pay-method__mark { width:18px; height:18px; border-radius:50%; box-shadow:inset 0 0 0 1px var(--ink-soft); position:relative; }
.pay-method:has(input:checked) .pay-method__mark { box-shadow:inset 0 0 0 1px var(--ink); }
.pay-method:has(input:checked) .pay-method__mark::after { content:""; position:absolute; inset:4px; background:var(--ink); border-radius:50%; }

.pay-panel { border-left:2px solid var(--line); padding:.25rem 0 .25rem 1.25rem; margin-bottom:.5rem; }
.pay-panel__hint { font-size:.82rem; color:var(--ink-soft); line-height:1.6; }
.pay-panel__hint code { background:var(--paper); padding:.1rem .35rem; font-size:.8em; border:1px solid var(--line); }
.pay-panel .field-grid { margin-bottom:1rem; }

/* Mini-linhas do resumo */
.mini-lines { display:grid; gap:1rem; margin-bottom:1.5rem; max-height:320px; overflow:auto; }
.mini-line { display:grid; grid-template-columns:48px 1fr auto; gap:.75rem; align-items:center; position:relative; }
.mini-line img { width:48px; height:64px; object-fit:cover; background:var(--line); }
.mini-line__qty { position:absolute; top:-6px; left:36px; background:var(--ink); color:var(--paper); font-size:.62rem; width:18px; height:18px; border-radius:50%; display:grid; place-items:center; }
.mini-line__name { font-size:.85rem; line-height:1.3; }
.mini-line__name em { display:block; color:var(--ink-soft); font-style:normal; font-size:.72rem; }
.mini-line__price { font-size:.85rem; white-space:nowrap; }

/* =========================================================================
   OVERLAY de pagamento (processamento / resultado)
   ========================================================================= */
.pay-overlay {
  position:fixed; inset:0; z-index:500; display:grid; place-items:center;
  background:rgba(15,15,15,.55); backdrop-filter:blur(4px); padding:1.5rem;
  animation:fade .3s var(--ease);
}
.pay-overlay[hidden] { display:none; }
.pay-overlay__card {
  background:var(--paper); width:min(460px,100%); padding:clamp(1.75rem,5vw,3rem);
  border:1px solid var(--line); max-height:90vh; overflow:auto;
  animation:pageFade .5s var(--ease);
}
.ov-state { display:grid; gap:.85rem; text-align:center; justify-items:center; }
.ov-state .overline { letter-spacing:.2em; }
.ov-big { font-size:clamp(1.8rem,5vw,2.6rem); line-height:1; }
.ov-msg { color:var(--ink-soft); font-size:.9rem; line-height:1.6; max-width:38ch; }
.ov-order { font-size:.85rem; display:flex; gap:.5rem; align-items:baseline; }
.ov-order strong { font-family:var(--serif); font-size:1.05rem; }
.ov-spin { width:44px; height:44px; border:2px solid var(--line); border-top-color:var(--ink); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.ov-check { width:56px; height:56px; border-radius:50%; background:var(--ink); color:var(--paper); display:grid; place-items:center; font-size:1.6rem; }
.ov-x { width:56px; height:56px; border-radius:50%; background:#a3342b; color:#fff; display:grid; place-items:center; font-size:1.5rem; }
.ov-cancel { font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-top:.25rem; }
.ov-cancel:hover { color:var(--ink); }

/* Referência Multibanco */
.mb-ref { display:grid; gap:.6rem; width:100%; margin:.5rem 0 .5rem; }
.mb-ref > div { display:flex; justify-content:space-between; align-items:baseline; border-bottom:1px dashed var(--line); padding-bottom:.5rem; }
.mb-ref span { font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); }
.mb-ref strong { font-family:var(--serif); font-size:1.4rem; letter-spacing:.04em; font-variant-numeric:tabular-nums; }

/* PayPal sandbox mock */
.pp-logo { font-size:1.8rem; letter-spacing:-.02em; }
.pp-logo em { color:#003087; font-style:normal; font-weight:700; }
.pp-logo b { color:#009cde; }
.pp-btn { background:#0070ba; }
.pp-btn:hover { background:#003087; }

/* ----------------------- Preferências de movimento ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__title .line span { transform: none; }
  .card { opacity: 1; transform: none; }
}
