/*
 * Funny Cool T-Shirts — visual da loja.
 * Letras: Archivo Black e DM Sans (licença SIL Open Font 1.1), guardadas em assets/fonts.
 */

/* letras: início */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* letras: fim */

:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #1d2219;
  --muted: #505345;
  --line: #d5d0c3;
  --purple: #5344a0;
  --lilac: #ddd3f6;
  --lime: #e0ee8d;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Archivo Black', 'Arial Black', Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select, input, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
[id] { scroll-margin-top: 22px; }
.wrap { width: min(100% - 104px, 1296px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .65rem 1rem; background: var(--lime); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wordmark { justify-self: start; font-family: var(--display); font-size: 2.1rem; letter-spacing: -.1em; line-height: .92; padding-right: .08em; white-space: nowrap; }
.wordmark small { display: block; margin-top: .5em; font: 800 .3em/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink); }
.wordmark span { color: var(--purple); }
.site-header nav, .header-actions { display: flex; gap: clamp(16px, 2.6vw, 38px); align-items: center; }
.site-header nav { font-weight: 700; font-size: .91rem; }
.site-header nav a:hover, .site-footer > a:last-child:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { justify-content: flex-end; gap: 15px; }
.market { display: inline-flex; padding: 2px; border: 1px solid var(--ink); border-radius: 100px; }
.market button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 100px; background: transparent; color: var(--ink); font-weight: 800; font-size: .81rem; line-height: 1; white-space: nowrap; }
.market button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.market button:not([aria-pressed='true']):hover { background: var(--lime); }
.bag-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 11px; border: 1px solid var(--ink); border-radius: 100px; background: transparent; color: var(--ink); font-size: .84rem; font-weight: 800; }
.bag-button:hover { background: var(--lime); }
.count { min-width: 20px; height: 20px; display: grid; place-items: center; padding-inline: 4px; border-radius: 20px; background: var(--ink); color: white; font-size: .72rem; }

.hero { display: grid; grid-template-columns: 1.03fr 1fr; min-height: 570px; background: var(--lilac); border-radius: 24px; overflow: clip; }
.hero-copy { padding: clamp(34px, 4.8vw, 76px); align-self: center; }
.eyebrow { display: flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.accent-mark { font-size: 1.5rem; line-height: .8; color: var(--purple); }
.hero h1 { margin-block: 22px; font-family: var(--display); font-size: clamp(2rem, 4.38vw, 4.6rem); line-height: .98; letter-spacing: -.085em; }
.hero h1 em { color: var(--purple); font-style: normal; }
.hero-summary { max-width: 31ch; margin-bottom: 28px; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.48; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: var(--paper); font-weight: 800; text-align: left; transition: color .18s ease, background-color .18s ease; }
.button:hover { background: var(--lime); color: var(--ink); }
.button > span:last-child { font-size: 1.26rem; }
.hero-visual { position: relative; display: grid; align-items: end; justify-items: center; min-width: 0; isolation: isolate; background: #e4ed98; }
.hero-visual::before { content: ''; position: absolute; inset: 8% 10% 10%; z-index: -1; border-radius: 50%; border: 1px dashed #6c774b; transform: rotate(-15deg); }
.hero-visual img { width: min(94%, 540px); margin-block: 28px 0; filter: drop-shadow(0 12px 12px #37432140); }
.hero-visual figcaption, .image-caption { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 100px; background: var(--paper); color: var(--ink); font-size: .76rem; font-weight: 800; }
.swatch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.hero-visual img.swap { animation: tee-swap-hero .34s ease-out; }
.product-visual img.swap { animation: tee-swap .34s ease-out; }
@keyframes tee-swap-hero { from { transform: translateY(14px) scale(.98); opacity: .45; } to { transform: none; opacity: 1; } }
@keyframes tee-swap { from { transform: rotate(-3deg) scale(.965); opacity: .5; } to { transform: none; opacity: 1; } }

.shop { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 6vw, 105px); align-items: center; padding-block: clamp(58px, 8vw, 112px); }
.product-visual { min-width: 0; align-self: stretch; position: relative; display: grid; place-items: end center; min-height: 450px; border-radius: 18px; overflow: hidden; background: #e6dcc9; transition: background-color .18s ease; }
.product-visual[data-color='black'] { background: #d7cfee; }
.product-visual img { width: min(92%, 520px); margin-block: 26px 0; filter: drop-shadow(0 12px 12px #3d352933); }
.product-copy { max-width: 480px; }
.product-copy .eyebrow, .story-copy .eyebrow { color: var(--purple); }
.product-copy h2, .story h2 { font: 400 clamp(2.25rem, 4.3vw, 4.35rem)/1 var(--display); letter-spacing: -.075em; margin-block: 12px 14px; }
.product-description, .story-copy p:last-child { color: var(--muted); line-height: 1.5; max-width: 44ch; }
.price { display: flex; gap: 11px; align-items: baseline; flex-wrap: wrap; margin-block: 18px 20px; }
.price strong { font-size: 1.35rem; }
.price span, .preview-note { font-size: .81rem; color: var(--muted); }
.option-group { margin: 0 0 15px; padding: 0; border: 0; min-width: 0; }
.option-group legend { margin-bottom: 8px; padding: 0; font-size: .88rem; font-weight: 800; }
.value { margin-left: 5px; color: var(--muted); font-weight: 500; }
.options { display: flex; gap: 7px; flex-wrap: wrap; }
.choice, .swatch { position: relative; min-width: 44px; min-height: 44px; display: grid; place-items: center; cursor: pointer; }
.choice input, .swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice > span { width: 100%; height: 100%; display: grid; place-items: center; padding-inline: 12px; border: 1px solid #827f73; border-radius: 6px; font-size: .82rem; font-weight: 800; pointer-events: none; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span, .swatch input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 3px; }
.swatch > span:not(.sr-only) { width: 33px; height: 33px; border: 1px solid #827f73; border-radius: 50%; pointer-events: none; }
.swatch .white { background: #f5eedf; }
.swatch .black { background: #24251e; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.add { width: 100%; margin: 3px 0 9px; }
.offer { margin: -12px 0 18px; font-size: .88rem; font-weight: 800; color: var(--purple); }
.product-note { margin: -8px 0 18px; font-size: .88rem; color: var(--muted); }
.bundle-link { display: block; margin: 12px 0 0; padding: 6px 0; font-size: .92rem; font-weight: 800; text-align: center; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bundle-link[hidden] { display: none; }
/* trava contra robô (quadro da Cloudflare) e plano B do pedido por e-mail */
.pay-robot { min-height: 65px; }
.pay-robot[hidden] { display: none; }
.email-order { display: block; padding: 6px 0; font-size: .92rem; font-weight: 800; text-align: center; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.email-order[hidden] { display: none; }
.button[aria-disabled='true'], .button:disabled { opacity: .45; pointer-events: none; }
.pay-form, .pay-result { padding-block: 20px; display: grid; gap: 4px; align-content: start; }
.field { display: grid; gap: 5px; margin-bottom: 12px; font-size: .84rem; font-weight: 800; }
.field input, .field textarea { font-weight: 500; font-size: 1rem; padding: 11px 12px; border: 1px solid #827f73; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.ships { display: grid; gap: 8px; }
.bag-line { margin: 0 0 10px; font-size: .88rem; font-weight: 800; color: var(--purple); }
.bag-footer > .bag-line:first-child { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.bag-footer > .bag-line:first-child:not([hidden]) + .bag-total { border-top: 0; padding-top: 6px; }
.field [aria-invalid='true'] { border-color: #a3261b; box-shadow: 0 0 0 1px #a3261b; }
.form-error { margin: 6px 0 0; padding: 10px 12px; border-radius: 6px; background: #fbe4e0; color: #7c1d14; font-size: .88rem; font-weight: 700; }
.pay-form .preview-note { margin-top: 10px; line-height: 1.45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript { margin: 0; padding: 12px 16px; background: var(--lime); font-weight: 700; text-align: center; }
.ship { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.ship input { width: 18px; height: 18px; accent-color: var(--ink); }
.pay-form .button, .pay-result .button { width: 100%; margin-top: 10px; }
.qr { width: 212px; margin: 10px auto; background: #fff; padding: 6px; border-radius: 8px; }
.qr:empty { display: none; }
.qr svg { display: block; width: 100%; height: auto; }
.pix-code { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 500 .74rem/1.4 ui-monospace, Consolas, monospace; resize: none; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.link-button { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 0; background: transparent; color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.swatch.soon > span:not(.sr-only) { opacity: .35; }
.size-table { margin: 0 0 15px; font-size: .86rem; }
.size-table summary { cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.size-table table { margin-top: 10px; border-collapse: collapse; }
.size-table th, .size-table td { padding: 6px 14px 6px 0; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.legal { order: 9; flex-basis: 100%; margin: 0 0 22px; font-size: .78rem; line-height: 1.45; }

.story { background: var(--lime); display: grid; grid-template-columns: minmax(180px, 1fr) 1.36fr; gap: clamp(20px, 4vw, 58px); align-items: center; padding: clamp(24px, 5vw, 66px); border-radius: 18px; }
.story-art img { max-height: 225px; width: auto; margin: 0 auto; object-fit: contain; transform: rotate(-8deg); }
.story h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
.story-copy p:last-child { color: var(--ink); }
.site-footer { min-height: 120px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--muted); font-size: .86rem; }
.site-footer .wordmark { color: var(--ink); font-size: 1.8rem; }

.bag { position: fixed; margin: 0 0 0 auto; inset: 0 0 0 auto; width: min(100%, 470px); height: 100%; max-height: none; max-width: none; padding: 0; border: 0; color: var(--ink); background: var(--paper); }
.bag::backdrop { background: #1d2219a0; }
dialog:not([open]) { display: none; } /* navegador antigo, sem <dialog>: as janelas ficam escondidas */
body:has(.bag[open]) { overflow: hidden; }
.bag-panel { min-height: 100%; padding: 24px; display: flex; flex-direction: column; }
.bag-header, .bag-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bag-header h2 { font: 400 1.9rem/1 var(--display); letter-spacing: -.075em; }
.close { border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; }
.bag-items { padding-block: 22px; flex: 1; }
.empty { color: var(--muted); }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.bag-item img { background: var(--lilac); border-radius: 5px; padding: 4px; }
.bag-item p { font-size: .83rem; color: var(--muted); }
.item-actions { display: flex; align-items: center; gap: 5px; }
.item-actions button { min-width: 33px; min-height: 38px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); }
.bag-total { border-top: 1px solid var(--line); padding-block: 14px; }
.bag-footer .button { margin-top: 12px; width: 100%; }

/* páginas de políticas (politicas.html e policies.html) */
.legal a, .policy a, .policy-switch { text-decoration: underline; text-underline-offset: 3px; }
.legal a { font-weight: 700; color: var(--ink); }
.policy-page .wrap { max-width: 720px; }
.policy-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.policy-switch { font-weight: 700; font-size: .91rem; white-space: nowrap; }
.policy { padding-block: 26px 72px; }
.policy .eyebrow { color: var(--purple); }
.policy h1 { margin-top: 14px; font: 400 clamp(2rem, 7vw, 3rem)/1.02 var(--display); letter-spacing: -.05em; }
.policy h2 { margin: 40px 0 10px; font: 800 1.16rem/1.25 var(--sans); }
.policy p, .policy li { font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.policy p + p { margin-top: 10px; }
.policy ul { margin: 12px 0 0; padding-left: 1.15em; }
.policy li + li { margin-top: 10px; }
.policy .policy-updated { margin-top: 14px; color: var(--muted); font-size: .86rem; }
.policy-back { display: inline-block; margin-top: 44px; font-weight: 800; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 52px); }
  .hero { min-height: 450px; }
  .hero-copy { padding: 32px; }
  .hero h1 { font-size: clamp(2.15rem, 5.15vw, 4.1rem); }
  .product-visual { min-height: 410px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { min-height: 68px; grid-template-columns: 1fr auto; gap: 8px; }
  .site-header nav { display: none; }
  .wordmark { font-size: 1.42rem; }
  .wordmark small { font-size: .36em; letter-spacing: .3em; }
  .header-actions { gap: 8px; }
  .market button { padding: 0 10px; }
  .bag-label { display: none; }
  .hero, .shop { grid-template-columns: 1fr; }
  .hero { border-radius: 16px; min-height: 0; }
  .hero-copy { padding: 28px 20px 30px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.35rem); margin-block: 15px; }
  .hero-summary { margin-bottom: 20px; }
  .hero-visual img { width: min(88%, 400px); margin-block: 18px 0; }
  .hero-visual figcaption, .image-caption { right: 11px; bottom: 11px; }
  .shop { gap: 25px; padding-block: 46px; }
  .product-visual { min-height: 0; }
  .product-visual img { width: min(88%, 400px); margin-block: 18px 0; }
  .product-copy { max-width: none; }
  .story { grid-template-columns: 1fr; gap: 16px; }
  .story-art img { max-height: 140px; }
  .site-footer { min-height: 100px; gap: 8px; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
