:root {
  color-scheme: dark;
  --background: #101113;
  --ink: #f5f3ed;
  --gold: #e6bd65;
  --muted: #cbc9c4;
  --line: #2d2d30;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; color: var(--gold); font-size: .64rem; letter-spacing: .22em; }
.insignia { width: 32px; height: 36px; border: 1px solid var(--gold); border-radius: 3px; display: flex; align-items: stretch; gap: 3px; padding: 6px; }
.insignia i { background: var(--gold); flex: 1; }
.gold { border: 0; border-radius: 8px; padding: .75rem 1.1rem; background: var(--gold); color: #16130d; font: inherit; font-size: .89rem; font-weight: 850; text-decoration: none; cursor: pointer; display: inline-flex; gap: 9px; align-items: center; }
.gold:hover { background: #f4ce7d; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#count { background: #16130d; color: var(--gold); min-width: 24px; border-radius: 50%; text-align: center; line-height: 24px; }
.hero { border-bottom: 1px solid var(--line); padding: 52px 0 46px; background: radial-gradient(ellipse at 77% 29%, #544028 0%, #1c1c1e 43%, #121317 79%); }
.eyebrow { color: var(--gold); font-size: .72rem; text-transform: uppercase; font-weight: 850; letter-spacing: .23em; margin: 0 0 14px; }
h1 { margin: 0; font-size: clamp(2.55rem, 6.4vw, 4.5rem); line-height: 1.03; letter-spacing: -.047em; font-weight: 850; }
h1 span { color: var(--gold); }
.intro { color: var(--muted); max-width: 635px; margin: 18px 0 12px; }
.hero .gold { text-transform: uppercase; }
.collection { padding-block: 38px 54px; }
h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.15; letter-spacing: -.025em; }
.empty { color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 19px 0 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); padding: 18px 0; font-size: .85rem; }
dialog { width: min(92%, 460px); padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #191a1d; color: var(--ink); }
dialog::backdrop { background: #000b; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.close { background: none; border: 1px solid var(--line); color: inherit; border-radius: 6px; width: 36px; height: 36px; cursor: pointer; }
@media (max-width: 480px) {
  .hero { padding-block: 38px; }
  .brand { gap: 8px; font-size: .85rem; }
  .top .gold { padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  margin-top: 20px;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #191a1d;
}
.product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #191a1d;
}
.product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(8px, 2vw, 20px);
}
.product h3 { margin: 0; font-size: clamp(.88rem, 2.5vw, 1.3rem); overflow-wrap: anywhere; }
.product p { margin: 6px 0; font-size: clamp(.76rem, 2vw, 1rem); }
.product .price { color: var(--gold); font-size: clamp(.9rem, 2.5vw, 1.35rem); font-weight: 800; }
.add-product { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-fields { display: grid; grid-template-columns: minmax(0, 1fr) clamp(38px, 25%, 72px); gap: 6px; }
.product-fields label { display: block; font-size: .78rem; }
.product-fields select, .product-fields input { width: 100%; min-width: 0; height: 38px; font: inherit; font-size: .82rem; padding-inline: 4px; border-radius: 6px; border: 1px solid #747478; }
.add-product button { justify-content: center; padding-inline: 4px; font-size: clamp(.74rem, 2vw, .9rem); }
.cart-feedback:empty { display: none; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

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

.custom-quote {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  padding-inline: 6px;
}
#uniformes-personalizados p { margin-bottom: 14px; }

.product img[src*="bone-"], .product img[src*="mangote-"] { object-position: center 23%; }
.color-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.color-options legend { padding: 0; font-size: .78rem; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.color-swatches label { position: relative; display: grid; place-items: center; width: 37px; height: 40px; cursor: pointer; }
.color-swatches input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch { width: 25px; height: 25px; border-radius: 50%; border: 1px solid #888; }
.swatch-preto, .swatch-preta { background: #08090a; }
.swatch-branco, .swatch-branca { background: #fff; }
.swatch-marinho { background: #142a56; }
.color-swatches input:checked + .swatch { outline: 2px solid var(--gold); outline-offset: 3px; }
.color-swatches input:focus-visible + .swatch { box-shadow: 0 0 0 6px #ffffff65; }
