/* =========================================
   DREVIK — STYLE.CSS COMPLETO
   Duas cores que trocam de lugar, como as camisetas:
   preto e off white. O dourado é a luz da porta da Phase One.
   ========================================= */

/* =========================================
   RESET & VARIÁVEIS
   ========================================= */
:root {
    --preto: #0b0b0a;
    --osso: #ece8df;
    --luz: #e8b14a;

    --bg: var(--preto);
    --fg: var(--osso);

    --font-body: 'Archivo', Arial, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, Consolas, monospace;
    --font-script: 'Pinyon Script', 'Snell Roundhand', cursive;

    --gutter: clamp(1rem, 2.4vw, 2.25rem);
    --header-height: 68px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-tone="light"] {
    --bg: var(--osso);
    --fg: var(--preto);
}

/* Troca de página: a foto da peça viaja do card até o produto */
@view-transition {
    navigation: auto;
}

::view-transition-group(*) {
    animation-duration: 0.6s;
    animation-timing-function: var(--ease-out);
}

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

html {
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--luz);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -5rem;
    z-index: 1100;
    padding: 0.75rem 1rem;
    background: var(--luz);
    color: var(--preto);
    font-weight: 600;
}

.skip-link:focus {
    top: 0.5rem;
}

/* =========================================
   TIPOGRAFIA
   ========================================= */
.display {
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-transform: uppercase;
}

.label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.script {
    font-family: var(--font-script);
    font-weight: 400;
    line-height: 1.1;
}

/* O recorte das máscaras não pode cortar acentos nem cedilha */
.split-line-mask,
.split-char-mask {
    padding-block: 0.2em;
    margin-block: -0.2em;
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-stretch: 110%;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--fg);
    border: 1px solid currentColor;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.btn-primary:hover {
    background: var(--luz);
    color: var(--preto);
    border-color: var(--luz);
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-height);
    padding: 0 var(--gutter);
    color: #fff;
    /* Sempre legível, sobre preto ou off white */
    mix-blend-mode: difference;
}

.logo {
    justify-self: start;
    display: block;
    padding: 0.5rem 0;
}

.logo-mark {
    display: block;
    width: 62px;
    aspect-ratio: 136 / 76;
    background: currentColor;
    -webkit-mask: url("img/dk.svg") center / contain no-repeat;
    mask: url("img/dk.svg") center / contain no-repeat;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a,
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-btn:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-actions {
    justify-self: end;
    display: flex;
    gap: 1.5rem;
}

.nav-count::before {
    content: '(';
}

.nav-count::after {
    content: ')';
}

.nav-btn-menu {
    display: none;
}

/* =========================================
   ENTRADA
   ========================================= */
#ink-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}

main,
.site-footer {
    position: relative;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: var(--header-height) var(--gutter) var(--gutter);
}

/* Sem WebGL, o monograma aparece como vetor */
.hero-fallback {
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(56vw, 760px);
    translate: -50% -50%;
}

.gl-on .hero-fallback {
    display: none;
}

.hero-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.hero-title {
    font-size: clamp(2.1rem, 5.2vw, 6.25rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2.5rem;
}

.hero-scroll {
    display: inline-flex;
    gap: 0.5rem;
    min-height: 44px;
    align-items: center;
    text-decoration: none;
}

.hero-scroll:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* =========================================
   CAPÍTULOS DO PERCURSO
   ========================================= */
.chapter {
    height: 175svh;
}

.chapter.tone-light,
.chapter.tone-light .chapter-pin {
    background: var(--osso);
    color: var(--preto);
}

.chapter.tone-dark,
.chapter.tone-dark .chapter-pin {
    background: var(--preto);
    color: var(--osso);
}

/* Com a tinta ligada, quem pinta o fundo é a jornada */
.gl-on .chapter.tone-light,
.gl-on .chapter.tone-dark,
.gl-on .chapter .chapter-pin {
    background: transparent;
    color: var(--fg);
}

.chapter-pin {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
}

.chapter-art {
    position: absolute;
    left: 50%;
    top: 40%;
    height: 66svh;
    max-width: 90vw;
    object-fit: contain;
    translate: -50% -50%;
}

.tone-light .chapter-art {
    filter: invert(1);
    mix-blend-mode: multiply;
}

.tone-dark .chapter-art {
    mix-blend-mode: screen;
}

.gl-on .chapter-art {
    display: none;
}

.chapter-side {
    position: absolute;
    top: calc(var(--header-height) + 5svh);
    width: min(21vw, 320px);
}

.chapter-side-left {
    left: var(--gutter);
}

.chapter-side-right {
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chapter-tagline {
    margin-top: 1rem;
    font-size: clamp(2rem, 3vw, 3.25rem);
}

.chapter-story {
    font-size: 1.05rem;
    line-height: 1.4;
}

.chip {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
    text-decoration: none;
}

.chip img {
    width: 92px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    transition: transform 0.5s var(--ease-out);
}

.chip:hover img {
    transform: scale(1.05);
}

.chip-text {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.3;
}

.chip-text strong {
    font-weight: 600;
}

.chip-cta {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chip:hover .chip-cta {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.chapter-verb {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 1.5svh;
    font-size: 13.2vw;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: -0.055em;
    line-height: 0.86;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.chapter-buy {
    min-height: 48px;
}

/* =========================================
   NAVEGAÇÃO DA JORNADA
   ========================================= */
.journey-nav {
    position: fixed;
    left: var(--gutter);
    top: 50%;
    z-index: 800;
    translate: 0 -40%;
    color: #fff;
    mix-blend-mode: difference;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.journey-nav.is-visible {
    opacity: 1;
    visibility: visible;
}

.journey-nav ol {
    list-style: none;
}

.journey-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 34px;
    text-decoration: none;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.journey-nav a:hover,
.journey-nav a[aria-current="step"],
.journey-skip {
    opacity: 1;
}

.journey-nav a[aria-current="step"] .journey-name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.journey-nav .journey-skip {
    margin-top: 0.75rem;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Sem a jornada ligada os capítulos rolam normalmente e os links seguem úteis */

/* =========================================
   COLEÇÃO (trilho horizontal)
   ========================================= */
.rail {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}

.rail-progress {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 1rem;
    height: 1px;
    background: color-mix(in srgb, var(--fg) 25%, transparent);
}

.rail-progress span {
    display: block;
    height: 100%;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
}

.rail-track {
    display: flex;
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2rem);
    width: max-content;
    padding: calc(var(--header-height) + 1rem) var(--gutter) 2rem;
}

.rail-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    width: min(38vw, 560px);
}

.rail-title {
    font-size: clamp(3rem, 7.2vw, 8rem);
}

.rail-lead {
    max-width: 24rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.rail-cards {
    display: flex;
    gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.rail-cards .product-card {
    width: min(53svh, 34vw);
}

.rail-end {
    display: flex;
    align-items: flex-end;
    width: min(32vw, 460px);
    padding-left: 1.5rem;
    font-size: clamp(2.2rem, 5vw, 5rem);
    text-decoration: none;
}

.rail-end:hover {
    color: var(--luz);
}

/* =========================================
   MANIFESTO
   ========================================= */
.manifesto {
    padding: clamp(6rem, 14vw, 14rem) var(--gutter);
    background: var(--bg);
}

.manifesto-title {
    margin-top: 1.5rem;
    font-size: clamp(3rem, 11.4vw, 14rem);
    line-height: 0.95;
}

.manifesto-text {
    max-width: 36rem;
    margin: clamp(2rem, 5vw, 4rem) 0 0 auto;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.4;
}

/* =========================================
   COMO COMPRAR
   ========================================= */
.howto {
    padding: clamp(4rem, 9vw, 9rem) var(--gutter);
    background: var(--osso);
    color: var(--preto);
    --fg: var(--preto);
    --bg: var(--osso);
}

.howto-title {
    max-width: 14em;
    font-size: clamp(2.6rem, 7vw, 8rem);
}

.howto-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(2.5rem, 6vw, 6rem);
    list-style: none;
    counter-reset: passo;
}

.howto-steps li {
    counter-increment: passo;
    padding-top: 1rem;
    border-top: 1px solid currentColor;
}

.howto-steps li::before {
    content: counter(passo);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.howto-steps h3 {
    margin-top: 2.5rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 600;
    font-stretch: 112%;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.howto-steps p {
    max-width: 24rem;
    margin-top: 0.6rem;
}

.list-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-top: clamp(3rem, 7vw, 7rem);
    padding-top: 1.25rem;
    border-top: 1px solid currentColor;
}

.list-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.25rem;
    background: var(--preto);
    color: var(--osso);
    overflow: hidden;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 2rem clamp(2rem, 6vw, 6rem);
}

.footer-columns .label {
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.footer-columns a {
    display: block;
    width: fit-content;
    padding: 0.2rem 0;
    text-decoration: none;
}

.footer-columns a:hover {
    color: var(--luz);
}

.footer-columns p:not(.label) {
    padding: 0.2rem 0;
}

/* Mesmo espaçamento aberto do DREVIK impresso nas camisetas */
.footer-wordmark {
    margin-top: clamp(3rem, 7vw, 6rem);
    font-size: 17.3vw;
    font-weight: 200;
    font-stretch: 125%;
    line-height: 0.95;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.footer-legal {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* =========================================
   CARD DE PRODUTO
   ========================================= */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.vira {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d9d6ce;
}

.vira-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform 1.1s var(--ease-out);
}

/* O outro lado entra como uma cortina, da direita para a esquerda */
.vira-face-back {
    clip-path: inset(0 0 0 100%);
    transition: clip-path 0.7s var(--ease-out), transform 1.1s var(--ease-out);
}

.vira.is-turned .vira-face-back {
    clip-path: inset(0);
}

.vira:hover .vira-face {
    transform: scale(1.025);
}

.vira-hit {
    position: absolute;
    inset: 0;
}

.vira-btn {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    min-height: 40px;
    padding: 0.3rem 0.7rem;
    background: var(--preto);
    color: var(--osso);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vira-btn:hover {
    background: var(--luz);
    color: var(--preto);
}

.save-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--preto);
    background: rgba(236, 232, 223, 0.85);
    transition: background-color 0.2s ease;
}

.save-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.save-btn:hover {
    background: var(--luz);
}

.save-btn.active svg {
    fill: currentColor;
}

.save-btn-inline {
    position: static;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    color: var(--fg);
    background: transparent;
    border: 1px solid currentColor;
}

.save-btn-inline:hover {
    color: var(--preto);
    border-color: var(--luz);
}

.card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.2rem 0.5rem;
    background: var(--preto);
    color: var(--osso);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.card-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    /* Botões alinhados mesmo quando uma peça mostra preço antigo */
    grid-template-rows: auto auto 1fr;
    flex: 1;
    gap: 0 1rem;
    margin-top: 0.75rem;
}

.card-step {
    grid-column: 1 / -1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
}

.card-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.card-info h3 a {
    text-decoration: none;
}

.card-info h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-price {
    font-size: 1.05rem;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.card-price s {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
}

.quick-btn {
    grid-column: 1 / -1;
    align-self: end;
    min-height: 44px;
    margin-top: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-stretch: 110%;
    text-transform: uppercase;
    border: 1px solid currentColor;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quick-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

/* =========================================
   COLEÇÃO (página)
   ========================================= */
.shop-page {
    padding: calc(var(--header-height) + 1.5rem) var(--gutter) clamp(3rem, 6vw, 6rem);
}

.shop-title {
    font-size: clamp(3.5rem, 9.5vw, 11rem);
    font-stretch: 100%;
    letter-spacing: -0.055em;
    line-height: 0.82;
    white-space: nowrap;
}

.shop-script {
    margin-top: 0.5rem;
    font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.shop-empty {
    grid-column: 1 / -1;
    padding: 3rem 0;
    font-size: 1.1rem;
}

.shop-controls {
    position: sticky;
    top: var(--header-height);
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 1rem;
    padding: 0.4rem 0;
    background: var(--bg);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.filter-btn {
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    opacity: 1;
}

.filter-btn.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.shop-control-meta,
.sort-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.sort-group {
    gap: 0.5rem;
}

.sort-select {
    min-height: 44px;
    padding: 0 0.25rem;
    background: var(--bg);
    border: 0;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem) clamp(0.5rem, 1vw, 1rem);
}

/* =========================================
   PRODUTO
   ========================================= */
.product-page {
    padding: calc(var(--header-height) + 0.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.breadcrumbs a {
    text-underline-offset: 3px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(1.5rem, 3vw, 3.5rem);
    align-items: start;
}

.tee-column {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
}

.tee-stage {
    position: relative;
    height: calc(100svh - var(--header-height) - 5.5rem);
    min-height: 420px;
    touch-action: pan-y;
    cursor: grab;
    overflow: hidden;
}

.tee-stage.is-dragging {
    cursor: grabbing;
}

.tee-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.tee-stage.is-ready .tee-canvas {
    opacity: 1;
}

.tee-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.6s ease;
}

.tee-stage.is-ready .tee-fallback {
    opacity: 0;
}

.tee-hint {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    translate: -50% 0;
    display: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tee-stage.is-ready .tee-hint {
    display: block;
}

.tee-stage.was-touched .tee-hint {
    opacity: 0;
}

.tee-controls {
    display: none;
    justify-content: center;
    gap: 1.25rem;
}

.tee-on .tee-controls {
    display: flex;
}

.tee-side {
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
}

#tee-zoom {
    margin-left: 1rem;
    opacity: 1;
    text-decoration: none;
}

.tee-side:hover,
.tee-side.active {
    opacity: 1;
}

.tee-side.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-bottom: 2rem;
}

.product-name {
    font-size: clamp(2.6rem, 4.6vw, 5.5rem);
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: -0.05em;
    line-height: 0.92;
    text-transform: uppercase;
}

.product-tagline {
    font-size: clamp(1.9rem, 2.6vw, 2.75rem);
}

.product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.product-price-old {
    opacity: 0.6;
}

.selector-group {
    border: 0;
}

.selector-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.selector-label strong {
    font-weight: 400;
}

.size-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin-bottom: 0.5rem;
}

.size-header legend {
    float: left;
}

.size-help {
    font-size: 0.9rem;
    text-underline-offset: 3px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: var(--fg);
    border: 1px solid var(--fg);
}

.size-btn {
    min-height: 56px;
    background: var(--bg);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.size-btn:hover:not(:disabled) {
    background: var(--luz);
    color: var(--preto);
}

.size-btn.active {
    background: var(--fg);
    color: var(--bg);
}

.size-btn:disabled {
    color: color-mix(in srgb, var(--fg) 35%, var(--bg));
    text-decoration: line-through;
    cursor: not-allowed;
}

.size-error {
    margin-top: 0.5rem;
    font-weight: 600;
}

.size-error:empty {
    display: none;
}

.color-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--fg);
}

.color-btn.active {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.product-actions-row {
    display: flex;
    gap: 0.6rem;
}

.product-hints {
    list-style: none;
    font-size: 0.95rem;
}

.product-hints li + li {
    margin-top: 0.15rem;
}

.size-note {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.size-note a {
    text-underline-offset: 3px;
}

.product-desc {
    border-top: 1px solid var(--fg);
}

.product-desc summary {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.product-desc p,
.product-desc ul {
    max-width: 38rem;
    margin-bottom: 0.9rem;
}

.product-desc ul {
    padding-left: 1.1rem;
}

.product-missing {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 3rem 0;
}

.product-missing h1 {
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.92;
    text-transform: uppercase;
}

.photos {
    margin: clamp(2rem, 5vw, 5rem) calc(var(--gutter) * -1) 0;
}

.embla {
    overflow: hidden;
    cursor: grab;
}

.embla:active {
    cursor: grabbing;
}

.embla-container {
    display: flex;
    gap: 0.5rem;
    padding: 0 var(--gutter);
    /* Sem a biblioteca, a faixa rola nativamente */
    overflow-x: auto;
    scrollbar-width: none;
    touch-action: pan-y pinch-zoom;
}

.embla-slide {
    flex: 0 0 min(42vw, 620px);
    background: #d9d6ce;
}

.photo-open {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.embla-slide img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    user-select: none;
    -webkit-user-drag: none;
}

.photos-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0.5rem var(--gutter) 0;
}

.photos-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.photos-arrow:hover {
    color: var(--luz);
}

.related-section {
    margin-top: clamp(3rem, 7vw, 7rem);
}

.related-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.2rem, 6.4vw, 7rem);
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================
   BARRA DE COMPRA (mobile)
   ========================================= */
.buy-bar {
    display: none;
}

/* =========================================
   PAINÉIS
   ========================================= */
.panel {
    --bg: #111110;
    --fg: var(--osso);
    border: 0;
    color: var(--fg);
    background: var(--bg);
    max-width: none;
    max-height: none;
}

.panel::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel[open] {
    display: flex;
    flex-direction: column;
    animation: painel 0.5s var(--ease-out);
}

@keyframes painel {
    from { transform: translateX(48px); opacity: 0; }
}

.panel-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(480px, 100%);
    height: 100%;
    margin: 0;
}

.panel-search,
.panel-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.panel-search {
    height: fit-content;
    max-height: 100%;
    padding-bottom: 1.5rem;
    overflow-y: auto;
}

.panel-search[open] {
    animation-name: painel-topo;
}

@keyframes painel-topo {
    from { transform: translateY(-32px); opacity: 0; }
}

.panel-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 var(--gutter);
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.panel-close {
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-transform: uppercase;
    text-underline-offset: 4px;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--gutter);
}

.panel-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 0 2rem;
    font-size: 1.1rem;
}

.line-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(236, 232, 223, 0.2);
}

.line-item-img {
    display: block;
    aspect-ratio: 4 / 5;
    background: #d9d6ce;
    overflow: hidden;
}

.line-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.line-item-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.line-item-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.line-item-info h3 a {
    text-decoration: none;
}

.line-item-meta {
    font-size: 0.9rem;
    opacity: 0.65;
}

.line-item-remove {
    min-height: 44px;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(236, 232, 223, 0.35);
}

.qty-btn:hover {
    border-color: var(--luz);
    color: var(--luz);
}

.qty-value {
    min-width: 2rem;
    text-align: center;
}

.qty .line-item-remove {
    margin-left: 0.75rem;
}

.cart-footer {
    flex: 0 0 auto;
    padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
}

.cart-footer[hidden] {
    display: none;
}

.shipping-note {
    font-size: 0.95rem;
}

.shipping-note.done {
    color: var(--luz);
}

.shipping-bar {
    height: 2px;
    margin-top: 0.5rem;
    background: rgba(236, 232, 223, 0.2);
}

.shipping-bar span {
    display: block;
    height: 100%;
    background: var(--luz);
    transition: width 0.5s var(--ease-out);
}

.cart-subtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1rem 0;
}

.cart-subtotal strong {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cart-footnote {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.65;
}

.cart-suggest {
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(236, 232, 223, 0.2);
}

.suggest-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.6rem;
    text-align: left;
}

.suggest-item img {
    width: 52px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    background: #d9d6ce;
}

.suggest-item strong {
    display: block;
    font-weight: 600;
}

.suggest-add {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(236, 232, 223, 0.35);
}

.suggest-item:hover .suggest-add {
    border-color: var(--luz);
    color: var(--luz);
}

.quick-head {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.quick-head img {
    width: 130px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    background: #d9d6ce;
}

.quick-name {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.quick-tagline {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.6rem;
}

.quick-price {
    font-size: 1.35rem;
    font-weight: 600;
}

.quick-installments {
    font-size: 0.9rem;
    opacity: 0.75;
}

#quick-body .selector-label {
    display: block;
    margin-bottom: 0.5rem;
}

#quick-body .btn {
    margin-top: 1rem;
}

.quick-more {
    display: block;
    margin: 1rem 0 1.5rem;
    text-underline-offset: 3px;
}

.panel-photo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.panel-photo[open] {
    animation-name: painel-topo;
}

.photo-view {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 var(--gutter) var(--gutter);
}

.photo-view img {
    flex: 1;
    min-width: 0;
    height: 100%;
    object-fit: contain;
}

.search-input {
    margin: 0 var(--gutter);
    width: calc(100% - var(--gutter) * 2);
    padding: 0.25rem 0 0.75rem;
    background: transparent;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    border: 0;
    border-bottom: 1px solid var(--fg);
    border-radius: 0;
    outline: none;
}

.search-input:focus {
    border-bottom-color: var(--luz);
}

.search-input::placeholder {
    color: rgba(236, 232, 223, 0.4);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 210px));
    gap: 1rem 0.5rem;
    padding: 0 var(--gutter);
}

.search-results:not(:empty) {
    margin-top: 1.25rem;
}

.search-result {
    display: block;
    text-decoration: none;
}

.search-result img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 22%;
    background: #d9d6ce;
}

.search-result-name {
    display: block;
    margin-top: 0.4rem;
    font-weight: 600;
}

.search-result:hover .search-result-name {
    text-decoration: underline;
}

.search-result-price {
    font-size: 0.95rem;
    opacity: 0.7;
}

.search-empty {
    grid-column: 1 / -1;
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 1.5rem var(--gutter);
}

.menu-links a,
.menu-links button {
    font-size: clamp(2.6rem, 13vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.08;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-links a:hover,
.menu-links button:hover {
    color: var(--luz);
}

.menu-links button {
    font-size: clamp(1.6rem, 7vw, 3rem);
}

.menu-links a + button {
    margin-top: 1.25rem;
}

/* =========================================
   TOASTS
   ========================================= */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    translate: -50% 0;
    pointer-events: none;
}

.toast {
    padding: 0.6rem 1rem;
    background: var(--luz);
    color: var(--preto);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    animation: painel-topo 0.35s var(--ease-out) reverse backwards;
}

/* =========================================
   RESPONSIVIDADE — 1024px
   ========================================= */
@media (max-width: 1024px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .nav-links,
    .nav-btn-desktop {
        display: none;
    }

    .nav-btn-menu {
        display: inline-flex;
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tee-column {
        position: static;
    }

    .tee-stage {
        height: min(92vw, 62svh);
    }
}

/* =========================================
   RESPONSIVIDADE — 768px
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .logo-mark {
        width: 54px;
    }

    .hero-copy {
        gap: 1rem;
    }

    .hero-title {
        font-size: 7.8vw;
        white-space: nowrap;
    }

    .hero-meta {
        width: 100%;
        justify-content: space-between;
    }

    .hero-meta .btn {
        width: 100%;
        order: -1;
    }

    .hero-fallback {
        width: 84vw;
    }

    /* CAPÍTULOS: estampa no alto, texto empilhado embaixo */
    .chapter {
        height: 165svh;
    }

    .chapter-pin {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 var(--gutter) 1rem;
    }

    .chapter-art {
        top: 30%;
        height: 44svh;
    }

    .chapter-side,
    .chapter-verb {
        position: static;
        width: auto;
    }

    .chapter-side-left .label {
        white-space: nowrap;
    }

    .chapter-side-left {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        order: 0;
    }

    .chapter-tagline {
        margin-top: 0;
        font-size: 1.9rem;
        text-align: right;
    }

    .chapter-verb {
        order: 1;
        margin: 0.25rem 0 0.75rem;
        font-size: 16.4vw;
        text-align: left;
    }

    .chapter-side-right {
        order: 2;
        gap: 0.75rem;
    }

    .chapter-story {
        font-size: 1rem;
    }

    /* Resumo da peça e botão na mesma linha */
    .chapter-side-right {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .chapter-story {
        grid-column: 1 / -1;
    }

    .chapter-buy {
        padding-inline: 1.1rem;
    }

    .chip-cta {
        display: none;
    }

    /* Jornada: faixa fina logo abaixo do header */
    .journey-nav {
        left: 0;
        right: 0;
        top: var(--header-height);
        translate: 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 var(--gutter);
    }

    .journey-nav ol {
        display: flex;
        gap: 0.1rem;
    }

    .journey-name {
        display: none;
    }

    .journey-nav a {
        min-width: 32px;
        min-height: 36px;
    }

    .journey-nav a[aria-current="step"] .journey-number {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .journey-nav .journey-skip {
        margin-top: 0;
    }

    .rail-progress {
        display: none;
    }

    .chip {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .chip img {
        width: 64px;
    }

    /* TRILHO: arrasto nativo no celular */
    .rail {
        display: block;
        min-height: 0;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .rail-track {
        padding: 3rem var(--gutter) 2.5rem;
    }

    .rail-intro {
        width: 76vw;
        scroll-snap-align: start;
    }

    .rail-cards .product-card {
        width: 72vw;
        scroll-snap-align: center;
    }

    .rail-end {
        width: 60vw;
    }

    .howto-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .howto-steps h3 {
        margin-top: 1rem;
    }

    .list-cta .btn {
        width: 100%;
    }

    .manifesto-title {
        font-size: 12vw;
    }

    .shop-controls {
        align-items: stretch;
    }

    .shop-control-meta {
        width: 100%;
        justify-content: space-between;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-head {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .quick-head img {
        width: 104px;
    }

    .card-info {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-price {
        text-align: left;
    }

    .card-price s {
        display: inline;
        margin-right: 0.35rem;
    }

    .embla-slide {
        flex-basis: 78vw;
    }

    /* Espaço para a barra de compra fixa */
    body[data-page="product"] {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .buy-bar:not([hidden]) {
        position: fixed;
        inset: auto 0 0;
        z-index: 800;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
        background: var(--bg);
        border-top: 1px solid var(--fg);
    }

    .buy-bar-info {
        min-width: 0;
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .buy-bar-info span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .buy-bar .btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .toast-container {
        bottom: 5rem;
    }
}

/* =========================================
   SEM ANIMAÇÃO
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    /* Capítulos deixam de prender a rolagem */
    .chapter {
        height: auto;
    }

    .chapter-pin {
        position: relative;
    }
}
