:root {
  color-scheme: light;
  --ink: #1e1819;
  --black: #0c090a;
  --paper: #f8f3ec;
  --white: #fffaf5;
  --muted: #6b5958;
  --pink: #b70e48;
  --gold: #f2c77d;
  --border: #e4d8cc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #cb3870; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: #000; color: var(--white); border-bottom: 1px solid #3c2d26; }
.header-content, .footer-content { display: flex; justify-content: space-between; align-items: center; }
.header-content { min-height: 80px; }
.brand { display: block; width: 195px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 54px); font-size: 14px; }
nav a:hover, .social-link:hover { color: var(--gold); }
.social-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.instagram-icon { position: relative; display: inline-block; width: 17px; height: 17px; border: 1.6px solid currentColor; border-radius: 4px; }
.instagram-icon::before, .instagram-icon::after { content: ''; position: absolute; border-radius: 50%; }
.instagram-icon::before { width: 7px; height: 7px; border: 1.5px solid currentColor; top: 3.5px; left: 3.5px; }
.instagram-icon::after { width: 2px; height: 2px; background: currentColor; top: 2px; right: 2px; }

.hero {
  display: grid;
  align-items: center;
  min-height: clamp(460px, 40vw, 610px);
  color: var(--white);
  background: linear-gradient(90deg, #160e13 0%, #160e13e8 23%, #160e1354 58%, transparent 83%), url('assets/vitrine-editorial.jpg') center 45% / cover, #211319;
}
.hero-content { padding-block: 60px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 0 0 18px; font-size: .73rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.05em; }
h1 { margin: 0; font-size: clamp(3.25rem, 6.1vw, 6rem); line-height: .99; }
h1 em { color: var(--gold); font-weight: 400; }
.hero-content > p:not(.eyebrow) { max-width: 360px; margin: 24px 0 28px; color: #f1e1db; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 43px; padding: 8px 13px; border: 1px solid transparent; border-radius: 5px; font-size: .84rem; font-weight: 650; text-align: center; transition: background-color .15s, color .15s; }
.hero-button { min-height: 49px; padding-inline: 18px; }
.button-pink { background: var(--pink); color: white; }
.button-pink:hover { background: #970735; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #582135; }
.button-outline { background: transparent; border-color: #d7b5be; color: #8b143b; }
.button-outline:hover { background: #fae9ee; }

.catalog { padding-block: 53px 65px; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catalog-label { color: #962545; margin-bottom: 12px; }
h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.03; }
.demo-note { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.filters button { min-height: 37px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: 30px; color: var(--ink); background: transparent; font-size: .8rem; overflow-wrap: anywhere; }
.filters button:hover { border-color: #ae697e; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 23px); }
.product { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--white); }
.product-photo { width: 100%; aspect-ratio: 1 / 1.07; display: block; padding: 0; border: 0; background: #e8d2c9; overflow: hidden; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-photo:hover img { transform: scale(1.035); }
.product-photo:focus-visible { outline-offset: -4px; }
.product-body { padding: 15px; }
.product-meta { margin: 0 0 6px; color: #804359; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.product h3 { margin: 0; }
.product-title { padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: 400 1.28rem/1.2 var(--serif); }
.product-title:hover { text-decoration: underline; }
.product-price { margin: 10px 0 14px; font-size: 1.05rem; font-weight: 700; }
.product-price small { font-size: .8rem; font-weight: 400; }
.sale-price { color: #8b143b; }
.sale-price del { margin-right: 5px; color: var(--muted); font-size: .85em; font-weight: 400; }
.lot-label { padding: 2px 5px; border-radius: 4px; background: #f5e3b9; color: #583701; }
.product-actions { display: grid; gap: 8px; }

.buy-section { padding-block: 46px; border-top: 1px solid var(--border); background: #f1e6dc; }
.buy-content { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }
.buy-content h2 { font-size: 2.5rem; }
.buy-content h3 { margin: 0 0 8px; }
.buy-content p { margin: 0; color: var(--muted); line-height: 1.55; }
.payment-info { margin-top: 24px; }
.payment-info h2, .payment-info h3 { margin: 0 0 8px; font: 650 1rem/1.3 var(--sans); letter-spacing: normal; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 9px; padding: 0; list-style: none; }
.payment-methods li { padding: 5px 10px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); font-size: .85rem; }
.payment-info p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.cookie-preferences { padding-block: 14px; font-size: .9rem; }
.cookie-preferences details { border: 1px solid var(--border); border-radius: 8px; padding: 12px 15px; background: var(--white); }
.cookie-preferences summary { cursor: pointer; font-weight: 650; }
.cookie-preferences p { margin-block: 10px; color: var(--muted); }
.cookie-preferences form { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer { background: #000; color: var(--white); padding-block: 16px; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; }
.footer-navigation { display: grid; justify-items: end; gap: 12px; }
.footer-policies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 15px; color: #e7d4cd; font-size: .78rem; }
.footer-policies a { padding-block: 4px; }
.footer-year { margin-top: 12px; margin-bottom: 0; padding-top: 12px; border-top: 1px solid #3c2d26; color: #e7d4cd; text-align: center; font-size: .78rem; }

dialog { width: min(470px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid var(--border); border-radius: 13px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #12090dcc; }
.dialog-inner { position: relative; padding: clamp(20px, 6vw, 35px); }
.dialog-inner h2 { font-size: 2.1rem; padding-right: 25px; }
.dialog-photo { display: block; width: 100%; max-height: 235px; object-fit: contain; border-radius: 6px; background: var(--paper); }
.close-button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink); background: #f1e6dc; font-size: 1.45rem; }
#dialog-product { font-weight: 700; }
#dialog-description, #dialog-code { color: var(--muted); line-height: 1.5; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-photo { aspect-ratio: 1.17; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .header-content { min-height: 62px; }
  .brand { width: clamp(114px, 34vw, 150px); }
  .footer-content { gap: 15px; }
  nav, .social-link { font-size: .78rem; }
  nav { gap: 11px; }
  .site-header .social-link span:last-child { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .site-header .social-link { min-width: 36px; min-height: 36px; justify-content: center; }
  .hero { background-position: center, 58% center; min-height: 420px; background-image: linear-gradient(90deg, #160e13f0, #160e138c 75%, #160e1355), url('assets/vitrine-editorial.jpg'); }
  .hero-content { padding-block: 50px; }
  h1 { font-size: clamp(2.7rem, 9.5vw, 4rem); }
  .hero-content > p:not(.eyebrow) { max-width: 280px; }
  .catalog { padding-block: 37px; }
  .product-grid { gap: 10px; }
  .product-photo { aspect-ratio: 1; }
  .product-body { padding: 10px; }
  .product-title { font-size: 1.13rem; }
  .product-actions .button { font-size: .75rem; padding-inline: 6px; }
  .buy-content { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
