:root {
  --paper: #fffdf9;
  --ivory: #f4efe7;
  --ink: #171614;
  --terracotta: #c6542d;
  --sand: #d7c7b2;
  --muted: #77716a;
  --line: rgba(23, 22, 20, 0.18);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.locked { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.demo-bar { min-height: 30px; display: grid; place-items: center; padding: 7px 20px; background: var(--ink); color: var(--paper); font: 500 10px var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.site-header { position: sticky; z-index: 50; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; padding: 0 4vw; background: rgba(255, 253, 249, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { width: max-content; font-size: 20px; font-weight: 700; letter-spacing: .22em; }
.site-header nav { display: flex; gap: 36px; font-size: 13px; }
.site-header nav a { position: relative; }
.site-header nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.icon-button, .cart-button, .close-button, .text-button, .filter, .dialog-close { border: 0; background: transparent; cursor: pointer; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-button { min-height: 42px; padding: 0 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cart-button span { display: inline-grid; width: 24px; height: 24px; margin-left: 4px; place-items: center; border-radius: 50%; background: var(--terracotta); color: #fff; }

.hero { position: relative; min-height: calc(100svh - 106px); display: grid; align-items: center; padding: 9vw 7vw; overflow: hidden; background: linear-gradient(90deg, rgba(244,239,231,.2), rgba(23,22,20,.03)), url('/assets/hero-aurora.webp') 50% center / cover no-repeat; }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.eyebrow { margin: 0 0 18px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(64px, 8.4vw, 132px); line-height: .76; }
h1 em { color: var(--terracotta); font-weight: 500; }
.hero-copy { max-width: 420px; margin: 34px 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; }
.primary-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 26px; border: 1px solid var(--ink); border-radius: 1px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; transition: background .25s ease, color .25s ease, transform .25s ease; cursor: pointer; }
.primary-button:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-2px); }
.primary-button:disabled { background: #aaa49d; border-color: #aaa49d; cursor: not-allowed; transform: none; }
.primary-button.full { width: 100%; }
.hero-caption { position: absolute; right: 3vw; bottom: 3vw; margin: 0; color: rgba(255,255,255,.82); font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; writing-mode: vertical-rl; }
.marquee { min-height: 72px; display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; gap: 16px; padding: 16px 4vw; background: var(--terracotta); color: #fff; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.catalog-section { padding: 110px 4vw 130px; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 48px; margin-bottom: 72px; }
.section-heading h2, .manifesto h2 { font-size: clamp(54px, 6.2vw, 96px); line-height: .9; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.7; }
.search-panel { margin: -38px 0 42px; padding: 26px; background: var(--ivory); }
.search-panel label { display: block; margin-bottom: 12px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.search-panel div { display: flex; border-bottom: 1px solid var(--ink); }
.search-panel input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; font-size: 20px; outline: 0; }
.search-panel button { border: 0; background: transparent; cursor: pointer; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 42px; padding: 0 16px; border-radius: 99px; font-size: 12px; }
.filter.active { background: var(--ink); color: var(--paper); }
.sort-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.sort-label select { min-height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin-top: 40px; }
.product-card { cursor: pointer; }
.product-image, .dialog-image { background-color: #d2d0cd; background-image: url('/assets/produtos-aurora.webp'); background-repeat: no-repeat; background-size: 200% 200%; }
.product-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.product-image::after { position: absolute; inset: 0; background: var(--terracotta); content: ""; mix-blend-mode: color; opacity: 0; transition: opacity .35s ease; }
.product-card:hover .product-image::after { opacity: .18; }
.product-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 7px 9px; background: var(--paper); font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.product-info { display: flex; justify-content: space-between; gap: 12px; padding: 16px 2px; }
.product-info h3 { margin: 0 0 6px; font: 600 14px var(--sans); }
.product-info p { margin: 0; color: var(--muted); font-size: 12px; }
.product-price { flex: none; font: 500 12px var(--mono); }
.empty-state { padding: 80px 20px; text-align: center; }
.text-button { min-height: 44px; padding: 0; border-bottom: 1px solid currentColor; font-weight: 600; }

.manifesto { min-height: 660px; display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; align-items: start; padding: 110px 7vw; background: var(--ink); color: var(--paper); }
.manifesto-index { margin: 6px 0 0; color: var(--sand); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.manifesto h2 { color: var(--sand); }
.manifesto div p { max-width: 600px; margin: 70px 0 0 auto; font-size: clamp(18px, 2vw, 28px); line-height: 1.5; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-strip article { min-height: 250px; padding: 48px 4vw; border-right: 1px solid var(--line); }
.service-strip span { color: var(--terracotta); font: 500 11px var(--mono); }
.service-strip h3 { margin: 52px 0 10px; font-size: 17px; }
.service-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

footer { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 80px 4vw 120px; background: var(--ivory); border-top: 1px solid var(--line); }
.footer-brand { display: inline-block; margin-bottom: 14px; }
footer p { color: var(--muted); font-size: 13px; line-height: 1.7; }
footer > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
.footer-title { margin: 0 0 12px; color: var(--ink); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.copyright { position: absolute; right: 4vw; bottom: 32px; left: 4vw; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }

.overlay { position: fixed; z-index: 80; inset: 0; background: rgba(23,22,20,.58); backdrop-filter: blur(3px); }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; padding: 28px; background: var(--paper); box-shadow: -30px 0 80px rgba(0,0,0,.14); transform: translateX(105%); transition: transform .32s cubic-bezier(.22,.7,.2,1); }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: 44px; }
.close-button, .dialog-close { min-height: 44px; font: 500 11px var(--mono); text-decoration: underline; text-underline-offset: 5px; }
.cart-items { flex: 1; overflow: auto; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { width: 84px; aspect-ratio: 4/5; background-image: url('/assets/produtos-aurora.webp'); background-size: 200% 200%; }
.cart-item h3 { margin: 0 0 6px; font-size: 14px; }
.cart-item p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.quantity-controls { display: flex; align-items: center; gap: 9px; }
.quantity-controls button, .remove-button { min-width: 32px; min-height: 32px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.remove-button { align-self: start; border: 0; color: var(--muted); text-decoration: underline; }
.cart-empty { margin: auto; text-align: center; }
.cart-summary { padding-top: 22px; border-top: 1px solid var(--line); }
.cart-summary > div, .checkout-total { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.cart-summary p { color: var(--muted); font-size: 11px; }

dialog { max-width: calc(100% - 32px); border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(23,22,20,.64); backdrop-filter: blur(4px); }
.product-dialog { width: min(980px, calc(100% - 32px)); grid-template-columns: 1.05fr .95fr; }
.product-dialog[open] { display: grid; }
.dialog-image { min-height: 620px; }
.dialog-content { display: flex; flex-direction: column; justify-content: center; padding: 70px 54px 48px; }
.dialog-content h2, .checkout-dialog h2 { font-size: clamp(45px, 5vw, 72px); line-height: .9; }
.dialog-content > p:not(.eyebrow):not(.dialog-price), .checkout-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.dialog-price { margin: 20px 0; font: 500 15px var(--mono); }
.dialog-content fieldset { margin: 26px 0; padding: 0; border: 0; }
.dialog-content legend { margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.size-options { display: flex; gap: 8px; }
.size-option { width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.size-option.selected { background: var(--ink); color: var(--paper); }
.dialog-close { position: absolute; z-index: 3; top: 18px; right: 24px; }
.checkout-dialog { width: min(540px, calc(100% - 32px)); padding: 64px 50px 46px; }
.checkout-total { margin: 34px 0 22px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: 360px; padding: 16px 20px; background: var(--ink); color: var(--paper); box-shadow: 0 14px 50px rgba(0,0,0,.25); font-size: 13px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .site-header nav { display: none; }
  .hero { min-height: 760px; align-items: end; padding: 80px 24px 70px; background-position: 68% center; }
  .hero::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,20,.08) 15%, rgba(23,22,20,.82) 92%); content: ""; }
  .hero-content { color: var(--paper); }
  h1 { font-size: clamp(58px, 17vw, 86px); }
  .hero-copy { margin: 26px 0; }
  .hero .primary-button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
  .hero-caption { display: none; }
  .marquee { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .filters { align-items: flex-start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .manifesto { grid-template-columns: 1fr; min-height: auto; padding: 80px 24px; }
  .manifesto div p { margin-top: 48px; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip article { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip h3 { margin-top: 38px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > div:first-child { grid-column: 1 / -1; }
  .product-dialog[open] { display: block; overflow: auto; }
  .dialog-image { min-height: 55vh; }
  .dialog-content { padding: 50px 24px 30px; }
}

@media (max-width: 520px) {
  .demo-bar { font-size: 9px; }
  .site-header { padding: 0 18px; }
  .brand { font-size: 17px; }
  .icon-button { display: none; }
  .cart-button { padding-left: 0; }
  .hero { min-height: calc(100svh - 96px); }
  .catalog-section { padding: 80px 18px 90px; }
  .section-heading h2, .manifesto h2 { font-size: 52px; }
  .search-panel { display: block !important; margin: -22px 0 30px; padding: 18px; }
  .search-panel input { font-size: 16px; }
  .filter-group { flex-wrap: nowrap; width: calc(100vw - 36px); padding-bottom: 4px; overflow-x: auto; }
  .filter { flex: none; }
  .product-info { display: block; }
  .product-price { display: block; margin-top: 8px; }
  .manifesto { padding: 72px 18px; }
  footer { grid-template-columns: 1fr; padding: 64px 18px 120px; }
  footer > div:first-child { grid-column: auto; }
  .drawer { padding: 22px 18px; }
  .drawer-header h2 { font-size: 38px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-image { width: 72px; }
  .remove-button { grid-column: 2; width: max-content; }
  .checkout-dialog { padding: 58px 24px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
