/* C&L Presentes · direção "Photographs at uneven sizes" (taste-skill, seed 1718403003)
   Tokens de DIRECAO_VISUAL.md §3–§4. Base: taste-skill/assets/base.css (reset, passos, movimento). */

/* ---------- tokens ---------- */
:root {
  --bg: #FFFFFF;
  --surface: #F3F1EE;
  --ink: #161314;
  --muted: #5C5753;
  --accent: #A3161F;
  --accent-hover: #86111A;
  --accent-ink: #FFFFFF;
  --gold: #B8924A;
  --gold-on-ink: #CDAA63;

  --font: "Work Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.5rem, 8.3vw, 8rem);

  --m: 20px;                   /* margem lateral */
  --g: 12px;                   /* gutter */
  --section: 128px;
  --radius: 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}
@media (min-width: 48em) { :root { --m: 6vw; --g: 16px; --section: 176px; } }
@media (min-width: 64em) { :root { --g: 24px; --section: 200px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }
.head { font-size: var(--step-head); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 10; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* bloco neutro no lugar de cada imagem (tamanho e proporção exatos) */
img { color: transparent; }

/* ---------- controles ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; border-radius: var(--radius);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:active { transform: scale(0.98); }
.arrow-link {
  display: inline-block; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  transition: text-underline-offset var(--t-hover) var(--ease-out);
}
/* seta inline e sem espaço antes: quando o rótulo quebra, ela desce junto com a última palavra */
.arrow-link span { position: relative; left: 0; padding-left: 0.3em; transition: left var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
  .arrow-link:hover { text-underline-offset: 0.35em; }
  .arrow-link:hover span { left: 4px; }
}

/* ---------- navegação ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--m) 0; }
/* O SVG tem margem branca larga em volta do desenho: a caixa recorta essa margem e mostra só o logo. */
.nav__logo { --logo: 96px; grid-column: 2; display: block; width: calc(var(--logo) * 0.78); height: calc(var(--logo) * 0.65); overflow: hidden; }
.nav__logo img { width: var(--logo); height: var(--logo); max-width: none; margin: calc(var(--logo) * -0.15) 0 0 calc(var(--logo) * -0.1); background: none; }
@media (min-width: 48em) { .nav__logo { --logo: 120px; } }
@media (min-width: 64em) { .nav__logo { --logo: 136px; } }
.nav__link { font-size: var(--step-small); font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; min-height: 44px; display: inline-flex; align-items: center; }
.nav__left { grid-column: 1; justify-self: start; }
.nav__right { grid-column: 3; justify-self: end; }
.nav__menu { display: none; }
@media (max-width: 47.99em) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__logo { grid-column: 1; }
  .nav__link { display: none; }
  .nav__menu { display: block; grid-column: 2; justify-self: end; position: relative; }
  .nav__menu summary { list-style: none; cursor: pointer; font-size: var(--step-body); font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; min-height: 44px; display: flex; align-items: center; }
  .nav__menu summary::-webkit-details-marker { display: none; }
  .nav__menu:not([open]) .nav__list { display: none; }
  .nav__list { position: absolute; right: 0; top: 100%; background: var(--surface); padding: 8px 0; min-width: 200px; }
  .nav__list a { display: block; padding: 12px 20px; text-decoration: none; font-size: var(--step-body); }
}

/* ---------- 7.1 hero ---------- */
.hero { position: relative; padding: 96px var(--m) 0; display: flex; flex-direction: column; }
.hero__copy { order: 3; }
.hero__shot { order: 4; }
.hero__facade { width: 46%; margin-left: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; }
.hero__title { font-size: 14vw; margin-top: 24px; }
.hero__l1, .hero__l2 { display: block; }
.hero__l2 { padding-left: 22vw; }
.hero__copy { margin-top: 28px; display: grid; gap: 16px; justify-items: start; }
.hero__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.status { font-size: var(--step-body); color: var(--muted); }
.status strong { color: var(--ink); font-weight: 500; }
.hero__shot { position: relative; width: 72%; aspect-ratio: 4 / 5; margin-top: 40px; overflow: hidden; background: var(--surface); }
.hero__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero__shot img.is-on { opacity: 1; }
a.hero__shot { display: block; }
.shot__link { display: block; overflow: hidden; }
a.hero__shot img, .shot__link img { transition: opacity 1.6s ease, transform 600ms var(--ease-out), clip-path 1100ms var(--ease-in-out); }
a.hero__shot:active img.is-on, .shot__link:active img { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  a.hero__shot:hover img.is-on, .shot__link:hover img { transform: scale(1.03); }
  .shot__link:hover + figcaption { color: var(--ink); }
}
.shot figcaption { transition: color var(--t-hover) ease; }
a.hero__shot:focus-visible, .shot__link:focus-visible, .frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero__shot img:nth-child(3) { object-position: 35% 50%; }

@media (min-width: 64em) {
  .hero { display: block; }
  .hero {
    --d: var(--step-display);
    --col: calc((100cqw - 2 * var(--m) - 11 * var(--g)) / 12);
    container-type: inline-size;
    height: 100svh; min-height: 720px; max-height: 1080px; padding: 0; overflow: clip;
    font-size: var(--d);
  }
  .hero > * { position: absolute; }
  .hero__title { margin: 0; font-size: var(--d); left: calc(var(--m) + 1 * (var(--col) + var(--g))); right: var(--m); top: calc(44% - 0.86 * var(--d)); }
  .hero__l1, .hero__l2 { white-space: nowrap; }
  .hero__l2 { padding-left: calc(4 * (var(--col) + var(--g))); }
  .hero__facade {
    left: calc(var(--m) + 9 * (var(--col) + var(--g)));
    width: min(400px, calc(3 * var(--col) + 2 * var(--g)));
    top: 10%; margin: 0;
  }
  .hero__shot {
    left: calc(var(--m) + 1 * (var(--col) + var(--g)));
    width: calc(4 * var(--col) + 3 * var(--g));
    top: calc(44% + 24px); margin: 0;
  }
  .hero__copy {
    left: calc(var(--m) + 5 * (var(--col) + var(--g)));
    width: calc(6 * var(--col) + 5 * var(--g));
    top: calc(44% + 1.14 * var(--d) + 40px); margin: 0; font-size: 1rem;
  }
}

/* ---------- 7.2 vitrines ---------- */
.vitrines { padding: var(--section) 0 0 var(--m); }
.vitrines__side { padding-right: var(--m); display: grid; gap: 20px; justify-items: start; }
.vitrines__notes { font-size: var(--step-body); display: grid; gap: 12px; max-width: 34ch; }
.run { --h: 34vw; margin-top: 40px; }
.run__rest { scrollbar-width: none; scroll-snap-type: x mandatory; }
.run__rest { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; margin-right: var(--m); padding-bottom: 4px; margin-top: 28px; }
.run__rest::-webkit-scrollbar { display: none; }
.run__hint { margin-top: 12px; padding-right: var(--m); font-size: var(--step-small); color: var(--muted); }
.frame { color: inherit; text-decoration: none; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; width: calc(var(--h) * (var(--r))); }
.frame__img { display: block; height: var(--h); width: 100%; overflow: hidden; background: var(--surface); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.frame[data-vitrine="Chinelos"] .frame__img img { object-position: 50% 85%; }
.frame[data-vitrine="Feminino"] .frame__img img { object-position: 35% 50%; }
/* nome em cima, fato embaixo: nenhum dos dois disputa largura com o outro */
.frame__cap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: var(--step-body); line-height: 1.35; }
.frame__name { font-weight: 500; padding: 2px 6px; margin-left: -6px; overflow-wrap: anywhere; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.frame__fact { color: var(--muted); font-size: var(--step-small); }
.frame:active .frame__img img { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .frame:hover .frame__name { background: var(--accent); color: var(--accent-ink); }
  .frame:hover .frame__img img { transform: scale(1.03); }
}
/* celular e tablet: o quadro elevado em largura total, o resto rola para o lado (com dica) */
@media (max-width: 63.99em) {
  .frame--lifted { width: auto; margin-right: var(--m); }
  .frame--lifted .frame__img { height: auto; aspect-ratio: 4 / 5; }
  .run__rest .frame { width: calc((100vw - 2 * var(--m) - 4px) / 2); }
  .run__rest .frame .frame__img { height: auto; aspect-ratio: 4 / 5; }
}
@media (min-width: 48em) and (max-width: 79.99em) {
  .vitrines__side { grid-template-columns: 1fr 1fr; column-gap: var(--g); }
  .vitrines__side .head, .vitrines__side .arrow-link { grid-column: 1; }
  .vitrines__notes { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .run__rest .frame { width: calc((100vw - 2 * var(--m) - 8px) / 3); }
  .frame--lifted .frame__img { aspect-ratio: 16 / 10; }
}
/* desktop: os 6 quadros cabem inteiros no grid, em duas linhas ao lado do elevado (nada sangra) */
@media (min-width: 64em) {
  .vitrines { padding-right: var(--m); }
  .run__hint { display: none; }
  .run {
    container-type: inline-size; margin-top: 56px;
    display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: stretch;
  }
  .run > .frame--lifted, .run__rest { --h: min(300px, (100cqw - 80px) / 4.35); }
  .frame--lifted { width: calc(var(--h) * 1.6 + 56px); }
  .frame--lifted .frame__img { flex: 1; height: auto; min-height: calc(var(--h) * 2); }
  .run__rest {
    display: flex; flex-wrap: wrap; align-content: flex-end; gap: 16px 6px; margin: 0; overflow: visible; padding: 0;
    max-width: calc(var(--h) * 2.75 + 14px);
  }
}
@media (min-width: 80em) {
  .vitrines { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .vitrines__side { grid-column: 1 / span 3; grid-row: 1; padding-right: 0; align-content: start; grid-template-rows: auto auto 1fr; }
  .vitrines__notes { align-self: end; padding-bottom: 48px; }
  .run { grid-column: 4 / -1; grid-row: 1; margin: 0; }
}

/* ---------- 7.3 sobre ---------- */
.sobre { padding: var(--section) var(--m) 0; display: grid; gap: 24px; }
.sobre__title { font-size: var(--step-head); }
.sobre__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.sobre__photo { margin-top: 24px; }
.sobre__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; }
.sobre__note { margin-top: 20px; font-size: var(--step-body); max-width: 46ch; }
.map-tile { position: relative; background: var(--accent); color: var(--accent-ink); aspect-ratio: 3 / 2; overflow: hidden; }
.map-tile__ruas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tile__ruas path { fill: none; stroke: rgb(255 255 255 / 0.15); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map-tile__ruas circle { fill: #fff; }
.map-tile__actions { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; font-size: var(--step-small); }
.map-tile__open { font-weight: 500; min-height: 44px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.map-tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; font-size: var(--step-body); line-height: 1.4; }
.facts dt { color: var(--muted); font-size: var(--step-small); }
.facts dd { font-weight: 500; }
@media (min-width: 64em) {
  .sobre { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 0; }
  .sobre__title { grid-column: 1 / -1; }
  .sobre__lead { grid-column: 1 / span 6; margin-top: 24px; }
  .sobre__photo { grid-column: 1 / span 8; margin-top: 72px; position: relative; }
  .sobre__photo img { aspect-ratio: 16 / 10; }
  .sobre__note { position: absolute; top: 0; right: 0; width: 320px; margin: 0; padding: 20px; background: var(--bg); }
  .sobre__side { grid-column: 9 / -1; margin-top: 72px; margin-left: calc(16px - var(--g)); }
  .map-tile { aspect-ratio: auto; height: calc(var(--photo-h, 33vw) * 0.6); }
  .sobre__side { --photo-h: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12 * 8 * 10 / 16 + 7 * var(--g) * 10 / 16); }
}

/* ---------- 7.4 novidades ---------- */
.novidades { padding: var(--section) var(--m) 0; }
.novidades__title { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.pair { display: grid; gap: 64px; margin-top: 64px; }
.shot img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.shot--8 img { object-position: 64% 70%; }
.shot--4 img { object-position: 35% 50%; }
.shot--7 img { object-position: 50% 85%; }
.shot figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
/* celular: larguras e lados alternados 70 / 84 / 56 / 100 */
.shot--1, .shot--5 { width: 70%; }
.shot--2, .shot--6 { width: 84%; justify-self: end; }
.shot--3, .shot--7 { width: 56%; }
.shot--4, .shot--8 { width: calc(100% + 2 * var(--m)); margin-inline: calc(var(--m) * -1); }
.shot--4 figcaption, .shot--8 figcaption { padding-inline: var(--m); }
@media (min-width: 48em) {
  .pair { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; margin-top: 24vh; gap: 0 var(--g); }
  .pair:first-of-type { margin-top: 72px; }
  .shot { width: auto !important; margin-inline: 0 !important; justify-self: stretch !important; grid-row: 1; }
  .shot figcaption { padding-inline: 0 !important; }
  .shot--1 { grid-column: 1 / span 4; }
  .shot--2 { grid-column: 7 / -1; margin-top: 30vh; }
  .shot--3 { grid-column: 6 / span 6; }
  .shot--4 { grid-column: 2 / span 3; margin-top: 24vh; }
  .shot--5 { grid-column: 9 / -1; }
  .shot--6 { grid-column: 1 / span 6; margin-top: 30vh; }
  .shot--7 { grid-column: 2 / span 6; }
  .shot--8 { grid-column: 9 / span 3; margin-top: 24vh; }
}

/* ---------- 7.5 contato ---------- */
.contato { padding: var(--section) var(--m) 120px; display: grid; gap: 28px; grid-template-columns: 96px 1fr; }
.contato__say { grid-column: 1 / -1; display: grid; gap: 20px; }
.contato__title { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.contato__statement { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; font-weight: 300; max-width: 22ch; }
.contato__photo { width: 96px; height: 96px; object-fit: cover; object-position: 50% 55%; }
.contato__links { display: grid; gap: 14px; align-content: start; }
.contato__q { font-size: var(--step-body); font-weight: 500; }
.contato__list { display: grid; gap: 10px; font-size: var(--step-body); }
.contato__list a { min-height: 32px; }
.contato__addr { font-size: var(--step-body); color: var(--muted); }
.contato__addr.status { margin-top: -8px; }
@media (max-width: 47.99em) {
  .contato__links { display: contents; }
  .contato__q, .contato__list { grid-column: 2; }
  .contato__q { grid-row: 2; align-self: start; }
  .contato__list { grid-row: 2; margin-top: 36px; }
  .contato__addr { grid-column: 1 / -1; }
}
@media (min-width: 48em) {
  .contato { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; padding-top: 160px; }
  .contato__say { grid-column: 1 / span 5; }
  .contato__photo { grid-column: 8 / span 2; width: 160px; height: 160px; }
  .contato__links { grid-column: 10 / -1; }
  .contato__list { margin-top: 6px; }
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .contato__say { grid-column: 1 / span 6; }
  .contato__photo { grid-column: 7 / span 2; width: 120px; height: 120px; }
  .contato__links { grid-column: 9 / -1; }
}

/* ---------- 7.6 rodapé ---------- */
.footer { position: relative; min-height: 88svh; color: #fff; display: grid; grid-template-rows: auto 1fr auto; overflow: clip; }
.footer__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% 62%; filter: brightness(0.62); background: var(--ink); }
.footer__top, .footer__bottom { position: relative; padding-inline: var(--m); }
.footer__top { padding-top: 32px; display: grid; gap: 24px; font-size: var(--step-body); line-height: 1.5; }
.footer__nav { display: grid; gap: 4px; }
.footer__nav a, .footer__contact a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; text-decoration-color: rgb(255 255 255 / 0.5); transition: text-decoration-color var(--t-hover) ease; }
.footer__bottom { grid-row: 3; padding-bottom: 32px; }
.footer__mark { font-weight: 300; letter-spacing: -0.045em; line-height: 0.9; font-size: 13.4vw; white-space: nowrap; margin-left: -0.04em; }
.footer__legal { margin-top: 12px; font-size: var(--step-small); max-width: 60ch; color: rgb(255 255 255 / 0.86); }
.footer__legal a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: rgb(255 255 255 / 0.5); }
.footer__sign { margin-top: 4px; }
.footer__sign a { display: inline-block; padding-block: 6px; margin-block: -6px; } /* área de toque maior sem mudar o visual */
@media (hover: hover) and (pointer: fine) { .footer a:hover { text-decoration-color: #fff; } }
@media (min-width: 48em) {
  .footer { min-height: 100svh; }
  .footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .footer__top nav { grid-column: 1 / span 3; }
  .footer__contact { grid-column: 8 / -1; text-align: right; }
  .footer__bottom { padding-bottom: 40px; }
  .footer__mark { font-size: 14.1vw; }
}

/* ---------- movimento (o conteúdo nunca fica oculto sem JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shot[data-reveal] { transform: none; }
  .js .shot[data-reveal] img { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .shot[data-reveal].is-in img { clip-path: inset(0); }
  .js .hero__copy > *, .js .hero__facade { animation: rise 900ms var(--ease-out) both; }
  .js .hero__facade { animation-delay: 160ms; }
  .js .hero__copy > :nth-child(1) { animation-delay: 220ms; }
  .js .hero__copy > :nth-child(2) { animation-delay: 300ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 380ms; }
  .footer__photo { animation: drift 24s var(--ease-soft) infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.04); } }

/* =====================================================================
   Avisos do painel ([data-notice], js/conteudo.js). Ficam ocultos (hidden) até existir aviso no ar.
   Formato escolhido pelo Lucas (2026-11-24): só a faixa no topo, em todas as páginas. Nada de sombra, gradiente ou ícone.
   ===================================================================== */
.nav { top: var(--faixa, 0px); }
.aviso__title { font-weight: 500; overflow-wrap: anywhere; }
.aviso__body { overflow-wrap: anywhere; }
.aviso__link { padding-block: 10px; }
/* A · faixa no topo: tinta, uma linha, em todas as páginas */
.aviso--faixa { background: var(--ink); color: #fff; font-size: var(--step-small); line-height: 1.4; }
.aviso--faixa .aviso__in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 8px var(--m); }
.aviso--faixa .aviso__body { color: rgb(255 255 255 / 0.86); }
.aviso--faixa .aviso__link { margin-left: auto; text-decoration-color: rgb(255 255 255 / 0.6); }
@media (prefers-reduced-motion: no-preference) {
  .aviso:not([hidden]) { opacity: 0; transition: opacity 240ms ease, transform 320ms var(--ease-out); }
  .aviso.is-in { opacity: 1; transform: none; }
}

/* =====================================================================
   Página de categoria /categoria/<slug>/ (DIRECAO_CATEGORIA.md). Nenhum token novo.
   ===================================================================== */
.nav__list-sep { margin-top: 8px; }

/* ---------- cabeçalho: a vitrine que cresce ---------- */
.cat-head { position: relative; padding: 88px var(--m) 0; display: flex; flex-direction: column; }
.cat-head__cover { width: 58%; margin-left: auto; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.cat-head__cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-head__title { font-size: 15vw; margin-top: 24px; }
.cat-head__l1, .cat-head__l2 { display: block; }
.cat-head__l2 { padding-left: 22vw; }
.cat-head__copy { margin-top: 28px; display: grid; gap: 16px; justify-items: start; }
.cat-head__fact { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
@media (min-width: 48em) and (max-width: 63.99em) {
  .cat-head__cover { width: 46%; }
  .cat-head__title { font-size: 11vw; }
}
@media (min-width: 64em) {
  .cat-head {
    --d: var(--step-display);
    --col: calc((100cqw - 2 * var(--m) - 11 * var(--g)) / 12);
    container-type: inline-size; display: block; padding: 0; overflow: clip;
    height: min(88svh, 920px); min-height: 640px;
  }
  .cat-head > * { position: absolute; margin: 0; }
  .cat-head__title { font-size: var(--d); left: var(--m); top: calc(46% - 0.86 * var(--d)); }
  .cat-head__l1, .cat-head__l2 { white-space: nowrap; }
  .cat-head__l2 { padding-left: calc(2 * (var(--col) + var(--g))); }
  .cat-head__cover { left: calc(var(--m) + 8 * (var(--col) + var(--g))); width: calc(4 * var(--col) + 3 * var(--g)); top: 96px; }
  .cat-head__copy { left: calc(var(--m) + 2 * (var(--col) + var(--g))); width: calc(5 * var(--col) + 4 * var(--g)); top: calc(46% + 1.14 * var(--d) + 40px); }
  .cat-head:not(:has(.cat-head__l2)) .cat-head__copy { top: calc(46% + 0.14 * var(--d) + 48px); }
}

/* ---------- "Na vitrine agora": parede de produtos em pares desiguais ---------- */
.pecas { padding: 88px var(--m) 0; }
.pecas__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.pecas__count { font-size: var(--step-small); color: var(--muted); }
.pecas__load { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pecas__load span { aspect-ratio: 4 / 5; background: var(--surface); }
.pecas__load span:nth-child(even) { margin-top: 48px; }
.js .pecas:not([data-estado]) .pecas__load { display: grid; }
.js .pecas:not([data-estado]) .pecas__head { visibility: hidden; }
.js .pecas:not([data-estado]) .fecho { display: none; }

.parede { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 40px; align-items: start; margin-top: 28px; }
.peca--m-dir { margin-top: 48px; }
.peca--m-full { grid-column: 1 / -1; }
.peca article { display: flex; flex-direction: column; align-items: flex-start; }
.peca__foto { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.peca__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.peca__foto:active img { transform: scale(0.985); transition-duration: var(--t-press); }
.peca__sem-foto { display: flex; align-items: flex-end; height: 100%; padding: 16px; font-size: var(--step-lead); line-height: 1.2; overflow-wrap: anywhere; }
.peca__nome { margin-top: 12px; font-size: var(--step-body); font-weight: 500; line-height: 1.35; letter-spacing: 0; padding: 2px 6px; margin-left: -6px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.peca__desc { margin-top: 4px; font-size: var(--step-small); color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.peca__preco { margin-top: 8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.peca__preco--consulte { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.peca__quero { margin-top: 2px; padding-block: 10px; }
@media (hover: hover) and (pointer: fine) {
  .peca article:has(a:hover) .peca__nome { background: var(--accent); color: var(--accent-ink); }
  .peca__foto:hover img { transform: scale(1.03); }
}
.pecas__mais { margin-top: 56px; padding-block: 10px; }

@media (min-width: 48em) and (max-width: 63.99em) {
  .parede { column-gap: var(--g); row-gap: 56px; }
  .peca--m-dir { margin-top: 64px; }
  .peca--m-full { width: 66%; }
}
@media (min-width: 64em) {
  .pecas { padding-top: 96px; }
  .pecas__load { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); margin-top: 48px; align-items: start; }
  .pecas__load span:nth-child(1) { grid-column: 1 / span 6; }
  .pecas__load span:nth-child(2) { grid-column: 8 / span 4; margin-top: 34%; }
  .pecas__load span:nth-child(3) { grid-column: 2 / span 4; margin-top: 0; }
  .pecas__load span:nth-child(4) { grid-column: 7 / span 6; margin-top: 12vh; }
  .parede { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 96px; margin-top: 48px; }
  .peca { grid-row: var(--row); margin-top: 0; width: auto; }
  .peca--A1 { grid-column: 1 / span 6; }
  .peca--A2 { grid-column: 8 / span 4; margin-top: 34%; }
  .peca--B1 { grid-column: 2 / span 4; }
  .peca--B2 { grid-column: 7 / span 6; margin-top: 12vh; }
  .peca--ultima { grid-column: 3 / span 6; }
  .peca--solo { grid-column: 2 / span 6; }
}

/* ---------- fecho e estado vazio (o mesmo bloco; sem JS ele é o estado vazio) ---------- */
.fecho { margin-top: 28px; display: grid; gap: 20px; justify-items: start; }
.fecho__frase { font-size: var(--step-lead); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; max-width: 30ch; }
.pecas[data-estado="cheia"] .fecho { margin-top: 56px; }
@media (min-width: 64em) { .pecas[data-estado="cheia"] .fecho { margin-top: 96px; } }
@media (min-width: 64em) {
  .fecho { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; margin-top: 48px; }
  .fecho__frase { grid-column: 1 / span 7; max-width: 28ch; }
  .fecho .arrow-link { grid-column: 9 / -1; }
  .pecas[data-estado="cheia"] .fecho__frase { grid-column: 1 / span 6; }
  .pecas[data-estado="cheia"] .fecho .arrow-link { grid-column: 8 / -1; }
  /* uma peça só: o fecho ocupa as col. 9–12 ao lado dela */
  .pecas--uma { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .pecas--uma > * { grid-column: 1 / -1; }
  .pecas--uma .parede { grid-row: 2; }
  .pecas--uma[data-estado="cheia"] .fecho { grid-column: 9 / -1; grid-row: 2; align-self: end; margin: 0; grid-template-columns: 1fr; }
  .pecas--uma[data-estado="cheia"] .fecho > * { grid-column: 1; }
}

/* ---------- Veja também: a fileira de quadros da home, sangrando pela direita ---------- */
.outras { padding: var(--section) 0 var(--section) var(--m); }
.outras .head { padding-right: var(--m); }
.outras__run { --h: min(300px, 22vw); display: flex; align-items: flex-start; gap: 6px; margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.outras__run::-webkit-scrollbar { display: none; }
.outras__run .frame:last-child { margin-right: var(--m); }
@media (max-width: 63.99em) {
  .outras__run .frame { width: 44vw; }
  .outras__run .frame__img { height: auto; aspect-ratio: 4 / 5; }
}
@media (min-width: 64em) {
  .outras__run { scrollbar-width: thin; }
  .outras .run__hint { display: none; }
}

/* ---------- transição entre páginas: o quadro tocado cresce até virar a capa ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-in-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- movimento da página de categoria ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cat-head__cover img { animation: drift 14s var(--ease-soft) infinite alternate; }
  .js .cat-head__l1, .js .cat-head__l2, .js .cat-head__copy > * { animation: rise 900ms var(--ease-out) both; }
  .js .cat-head__l2 { animation-delay: 70ms; }
  .js .cat-head__copy > :nth-child(1) { animation-delay: 140ms; }
  .js .cat-head__copy > :nth-child(2) { animation-delay: 210ms; }
  .js .cat-head__copy > :nth-child(3) { animation-delay: 280ms; }
  .peca.is-anim .peca__foto { clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-in-out) var(--d, 0ms); }
  .peca.is-anim article > :not(.peca__foto) { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out) calc(var(--d, 0ms) + 80ms), transform 600ms var(--ease-out) calc(var(--d, 0ms) + 80ms), background-color var(--t-hover) ease, color var(--t-hover) ease; }
  .peca.is-in .peca__foto { clip-path: inset(0); }
  .peca.is-in article > :not(.peca__foto) { opacity: 1; transform: none; }
  .peca.is-pronta .peca__foto, .peca.is-pronta article > * { transition: none; }
}

/* =====================================================================
   Vitrines criadas no painel (PLANO §10.1)
   ===================================================================== */
/* o atributo hidden sempre esconde (o display dos componentes não pode vencer) */
[hidden] { display: none !important; }
/* home com mais de 6 vitrines: o quadro elevado não estica junto com as linhas extras */
@media (min-width: 64em) {
  .run--muitas { align-items: start; }
  .run--muitas .run__rest { max-width: none; align-content: flex-start; }
}

/* página genérica /vitrine/?v=: o título cabe mesmo com nome longo (até 60 caracteres) */
.pg-vitrine .cat-head__title { overflow-wrap: anywhere; }
@media (max-width: 47.99em) { .pg-vitrine .cat-head__title { font-size: min(15vw, var(--fit, 15vw)); } }
@media (min-width: 48em) and (max-width: 63.99em) { .pg-vitrine .cat-head__title { font-size: min(11vw, var(--fit, 11vw)); } }
@media (min-width: 64em) { .pg-vitrine .cat-head { --d: min(var(--step-display), var(--fit, var(--step-display))); } }

/* vitrine oculta, inexistente ou que não abriu: página amigável com o WhatsApp */
.vitrine-fora { padding: 136px var(--m) 24px; display: grid; gap: 20px; justify-items: start; }
.vitrine-fora__title { font-size: var(--step-head); line-height: 1.05; max-width: 15ch; text-wrap: balance; }
.vitrine-fora__text { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.vitrine-fora__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; }
@media (min-width: 64em) {
  .vitrine-fora { padding: 200px var(--m) 40px calc(var(--m) + 2 * ((100vw - 2 * var(--m) - 11 * var(--g)) / 12 + var(--g))); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .vitrine-fora:not([hidden]) > * { animation: rise 900ms var(--ease-out) both; }
  .js .vitrine-fora > :nth-child(2) { animation-delay: 70ms; }
  .js .vitrine-fora > :nth-child(3) { animation-delay: 140ms; }
  .js .vitrine-fora > :nth-child(4) { animation-delay: 210ms; }
}
/* nome e frase vindos do painel, mesmo sem espaço, não estouram o quadro nem a página (REVISAO_PAINEL_V2 I8) */
.frame__fact, .cat-head__fact, .cat-head__title, .vitrine-fora__title, .vitrine-fora__text { overflow-wrap: anywhere; }
.frame__cap { min-width: 0; max-width: 100%; }
@media (min-width: 64em) { .pg-vitrine .cat-head__l1, .pg-vitrine .cat-head__l2 { white-space: normal; } }
