:root {
  --ink: #202325;
  --page-bg: #f4f1ea;
  --surface: #fff;
  --surface-soft: #f8f6f1;
  --accent: #a04226;
  --muted: #625e58;
  --line: rgba(32, 35, 37, 0.16);
  --success: #4f6925;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font-family: "Inter", sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.product-main { width: min(calc(100% - 32px), 1180px); margin: 0 auto; padding: 25px 0 68px; }
.breadcrumbs { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 54px; align-items: start; }
.gallery { min-width: 0; }
.gallery-main,
.gallery-empty {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.gallery-main { object-fit: contain; }
.gallery-empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.thumbs { display: flex; gap: 9px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.thumb.active { border: 2px solid var(--accent); }
.thumb img { display: block; width: 100%; height: 100%; border-radius: 4px; object-fit: contain; }
.product-info { min-width: 0; }
.brand { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.product-info h1 { margin: 5px 0 5px; font-family: "EB Garamond", Georgia, serif; font-size: clamp(36px, 4vw, 54px); font-weight: 600; line-height: 1.02; }
.category { display: inline-block; margin-bottom: 15px; color: var(--muted); font-size: 12px; text-underline-offset: 3px; }
.lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.price { margin: 22px 0 3px; color: var(--accent); font-size: 31px; font-variant-numeric: tabular-nums; font-weight: 800; }
.price s { margin-right: 8px; color: var(--muted); font-size: 16px; font-weight: 500; }
.sale { margin-left: 7px; font-size: 12px; }
.stock { color: var(--success); font-size: 13px; font-weight: 750; }
.stock.out { color: var(--muted); }
.field-label { display: block; margin: 23px 0 8px; font-size: 12px; font-weight: 750; }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.variant {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 5px 8px;
  border: 1px solid rgba(32,35,37,.24);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.variant img, .variant-image-empty { display: block; width: 40px; height: 40px; border-radius: 5px; background: var(--surface-soft); object-fit: contain; }
.variant-name { overflow: hidden; font-size: 11px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; }
.variant-status { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.variant.active { border: 2px solid var(--accent); color: var(--accent); }
.variant.out { opacity: .64; }
.buy-row { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.quantity { display: grid; grid-template-columns: 38px minmax(36px, 1fr) 38px; min-height: 48px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow: hidden; }
.quantity button { border: 0; background: transparent; color: var(--ink); font-size: 19px; }
.quantity button:disabled { color: #aaa; }
.quantity input { width: 100%; border: 0; border-inline: 1px solid var(--line); background: transparent; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 750; text-align: center; appearance: textfield; }
.quantity input::-webkit-inner-spin-button { appearance: none; }
.add { min-height: 48px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 800; }
.add:hover:not(:disabled) { background: #34383a; }
.add:disabled { opacity: .52; }
.action-feedback { min-height: 20px; margin: 8px 0 0; color: var(--success); font-size: 12px; font-weight: 650; }
.secondary-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 7px; font-size: 12px; font-weight: 650; }
.secondary-actions a { text-underline-offset: 3px; }
.whatsapp { color: #17763b; }
.purchase-facts { display: grid; gap: 8px; margin: 24px 0 0; padding: 15px 0; border-block: 1px solid var(--line); }
.purchase-fact { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 12px; line-height: 1.4; }
.purchase-fact strong { font-weight: 750; }
.purchase-fact span { color: var(--muted); }
.purchase-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.product-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 54px; margin-top: 55px; padding-top: 36px; border-top: 1px solid var(--line); }
.product-details h2 { margin: 0 0 12px; font-family: "EB Garamond", Georgia, serif; font-size: 29px; font-weight: 600; }
.long-description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; white-space: pre-line; }
.specs { display: grid; grid-template-columns: minmax(100px, auto) 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.specs dt { padding-right: 18px; font-weight: 750; }
.specs dd { color: var(--muted); }

@media (max-width: 800px) {
  .product-main { width: min(calc(100% - 28px), 1180px); padding-top: 18px; }
  .product-layout { grid-template-columns: 1fr; gap: 26px; }
  .gallery { max-width: 620px; margin-inline: auto; }
  .product-details { grid-template-columns: 1fr; gap: 32px; margin-top: 42px; }
}
@media (max-width: 420px) {
  .product-main { width: min(calc(100% - 24px), 1180px); }
  .breadcrumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-info h1 { font-size: 35px; }
  .variants { grid-template-columns: 1fr 1fr; }
  .buy-row { grid-template-columns: 108px minmax(0, 1fr); }
  .quantity { grid-template-columns: 34px minmax(32px, 1fr) 34px; }
  .purchase-fact { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
