:root {
  --black: #161616;
  --black-ink: #ffffff;
  --orange: #e2480b;
  --orange-dark: #b8390a;
  --bg: #fefdfc;
  --panel: #f7f4f1;
  --ink: #222222;
  --text: #444444;
  --muted: #8a847f;
  --line: #e9e4df;
  --ok: #3a7a50;
  --warn: #b0662a;
  --field: #ffffff;
  --btn: var(--black);
}
/* Modo noturno */
:root[data-theme="dark"] {
  --bg: #121212;
  --panel: #1c1c1c;
  --ink: #f2f2f2;
  --text: #cfcfcf;
  --muted: #9a9a9a;
  --line: #2d2d2d;
  --field: #1e1e1e;
  --ok: #5cbf7d;
  --warn: #f0954a;
  --btn: var(--orange);
  color-scheme: dark;
}
:root[data-theme="dark"] .pcard .pimg, :root[data-theme="dark"] .stage,
:root[data-theme="dark"] .thumbs button, :root[data-theme="dark"] .line img { border-radius: 6px; }
:root[data-theme="dark"] .utility, :root[data-theme="dark"] .footer { background: #000; }
:root[data-theme="dark"] .dot { color: var(--ink); }
:root[data-theme="dark"] .burger span { background: var(--ink); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.55 Outfit, "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pad { padding: 64px 16px; }
.orange-text { color: var(--orange); }

/* ---------- Header ---------- */
.utility { background: var(--black); color: var(--black-ink); font-size: 12px; }
.utility-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.u-left { display: flex; gap: 22px; }
.u-left a:hover, .u-right:hover { text-decoration: underline; }
.u-right { font-weight: 500; color: var(--orange); }
.u-tools { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 4px; }
.lang { border: 0; background: none; padding: 2px; border-radius: 3px; opacity: .55; display: grid; line-height: 0; }
.lang svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.lang.on, .lang:hover { opacity: 1; }
.lang.on { box-shadow: 0 0 0 1.5px var(--orange); }
.theme-btn { border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; width: 26px; height: 22px; border-radius: 4px; display: grid; place-items: center; padding: 0; }
.theme-btn:hover { border-color: var(--orange); color: var(--orange); }

.masthead { background: var(--bg); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.mast-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 14px; padding-bottom: 8px; }
.mast-left { display: flex; gap: 20px; align-items: center; font-size: 13px; }
.mast-link:hover { color: var(--orange); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--orange); }
.logo-main { font-size: 38px; font-weight: 500; letter-spacing: -0.5px; }
.logo-sub { font-size: 10px; letter-spacing: 6px; color: var(--muted); margin-top: 4px; padding-left: 6px; }
.dot { color: var(--black); }
.mast-right { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--ink); padding: 0 6px 0 14px; width: 210px; }
.search input { border: 0; outline: 0; background: none; font: inherit; padding: 8px 0; width: 100%; }
.search button { border: 0; background: none; padding: 6px; display: grid; color: var(--ink); }
.cart-btn { position: relative; color: var(--ink); display: grid; }
.badge { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.burger { display: none; border: 0; background: none; padding: 6px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

.mainnav { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.mainnav .msearch { display: none; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 10px 18px 12px; font-size: 13.5px; color: var(--text); }
.nav-item > a:hover, .nav-item > a.on { color: var(--orange); }
.dropdown {
  display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 100%; min-width: 240px;
  background: var(--field); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 10px 0; z-index: 30;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 7px 22px; font-size: 13px; white-space: nowrap; }
.dropdown a:hover { background: var(--panel); color: var(--orange); }

/* ---------- Home ---------- */
.hero { position: relative; height: min(68vh, 620px); min-height: 380px; overflow: hidden; background: #ddd; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; color: #fff; z-index: 2; }
.hero-text .kicker { font-size: 22px; font-weight: 300; }
.hero-text h1 { color: #fff; font-size: 46px; margin: 0 0 18px; font-weight: 400; }
.btn-light { display: inline-block; padding: 11px 30px; border: 1px solid #fff; color: #fff; font-size: 14px; letter-spacing: .5px; }
.btn-light:hover { background: #fff; color: var(--ink); }
.dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); }
.dots button.on { background: #fff; }

.section { padding-top: 46px; padding-bottom: 10px; }
.section-title { text-align: center; color: var(--orange); font-size: 22px; font-weight: 500; margin: 0 0 22px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border-bottom: 1px solid var(--line); }
.perk { padding: 18px 16px; text-align: center; font-size: 13px; }
.perk b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }

.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 22px) / 6); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.arrow { position: absolute; top: 34%; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--field); color: var(--ink); display: grid; place-items: center; z-index: 2; font-size: 18px; line-height: 1; }
.arrow.prev { left: -14px; } .arrow.next { right: -14px; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--panel); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 16px; color: #fff; text-align: center; font-size: 17px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }

/* ---------- Product card ---------- */
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pcard .pimg { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.pcard:hover .pimg img { transform: scale(1.03); }
.swatches { display: flex; gap: 6px; justify-content: center; min-height: 20px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.pname { text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--text); padding: 0 6px; }
.pname .code { color: var(--orange); }
.pprice { text-align: center; font-size: 15px; color: var(--ink); font-weight: 500; }
.stock { font-size: 12px; color: var(--ok); }
.stock.low { color: var(--warn); }

/* ---------- Listing ---------- */
.crumbs { font-size: 11.5px; color: var(--muted); padding: 14px 0 6px; }
.crumbs a:hover { color: var(--orange); }
.crumbs i { font-style: normal; margin: 0 6px; }
.listing { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding-bottom: 50px; }
.side h2 { font-size: 17px; margin: 4px 0 14px; }
.fgroup { border-top: 1px solid var(--line); }
.fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 0; cursor: pointer; font-weight: 500; color: var(--ink); font-size: 13px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; font-size: 16px; color: var(--muted); }
.fgroup[open] summary::after { content: "–"; }
.fopts { padding: 0 0 12px; display: grid; gap: 5px; }
.fopt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.fopt input { margin: 0; accent-color: var(--black); }
.fopt .sq { width: 13px; height: 13px; border: 1px solid rgba(0,0,0,.2); flex-shrink: 0; }
.fopt .n { color: var(--muted); }
.fopt a.on { color: var(--orange); font-weight: 500; }
.clear { border: 0; background: none; padding: 0 0 10px; color: var(--orange); text-decoration: underline; font-size: 12.5px; }

.main-head { text-align: center; margin-bottom: 6px; }
.main-head h1 { color: var(--orange); font-size: 22px; margin: 0; }
.main-head .count { font-size: 12.5px; color: var(--muted); }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 26px; font-size: 12.5px; }
.toolbar label { display: flex; align-items: center; gap: 8px; }
.toolbar select { border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.filters-btn { display: none; border: 1px solid var(--line); background: var(--field); color: var(--ink); padding: 7px 14px; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 13px; }
.pager button.on { background: var(--black); color: #fff; border-color: var(--black); }
.pager button:disabled { opacity: .4; cursor: default; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 380px; gap: 0; border-top: 1px solid var(--line); }
.pdp-media { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 22px 30px 40px 0; align-items: start; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; }
.thumbs button { padding: 0; border: 1px solid transparent; background: #fff; aspect-ratio: 1; }
.thumbs button.on { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.stage { background: #fff; aspect-ratio: 4/3; display: grid; place-items: center; }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { background: var(--panel); border-left: 1px solid var(--line); padding: 26px 26px 40px; }
.pdp-info h1 { font-size: 18px; line-height: 1.35; margin: 0 0 4px; font-weight: 500; }
.sku { font-size: 12px; color: var(--muted); }
.big-price { font-size: 26px; color: var(--ink); margin: 16px 0 2px; }
.buy { display: flex; gap: 10px; margin: 18px 0 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); background: var(--field); color: var(--ink); }
.qty button { width: 34px; height: 42px; border: 0; background: none; font-size: 17px; }
.qty input { width: 38px; text-align: center; border: 0; font: inherit; background: none; }
.btn { padding: 12px 22px; border: 0; background: var(--btn); color: #fff; font-weight: 500; letter-spacing: .3px; }
.btn:hover { background: var(--orange); }
.btn.orange { background: var(--orange); } .btn.orange:hover { background: var(--orange-dark); }
.btn.wide { width: 100%; }
.pdp-info h3 { font-size: 14px; margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.pdp-info p { margin: 0 0 10px; font-size: 13px; }
.bullets { padding: 0; margin: 0; list-style: none; font-size: 13px; }
.bullets li { position: relative; padding-left: 16px; margin: 4px 0; }
.bullets li::before { content: "•"; position: absolute; left: 2px; color: var(--orange); }
.spec { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec th, .spec td { text-align: left; padding: 5px 0; vertical-align: top; }
.spec th { color: var(--text); font-weight: 400; width: 48%; }
.spec td { color: var(--ink); }
.spec tr.sub th { color: var(--muted); font-size: 11.5px; padding-top: 10px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Cart & pages ---------- */
.page { padding: 10px 0 60px; }
.page h1 { color: var(--orange); font-size: 24px; text-align: center; margin: 10px 0 28px; }
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.line { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 90px; height: 90px; object-fit: contain; background: #fff; }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; text-decoration: underline; }
.panel { background: var(--panel); padding: 24px; border: 1px solid var(--line); }
.panel h2 { font-size: 17px; margin: 0 0 14px; }
.sumrow { display: flex; justify-content: space-between; margin: 6px 0; }
.sumrow.total { font-size: 17px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.form { display: grid; gap: 10px; margin-top: 18px; }
.form label { font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.form input, .form textarea { padding: 10px 12px; border: 1px solid var(--line); font: inherit; background: var(--field); color: var(--ink); }
.note { font-size: 12px; color: var(--muted); }
.prose { max-width: 720px; margin: 0 auto; font-size: 15px; }
.prose h2 { font-size: 18px; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #e4e4e4; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.footer h4 { color: var(--orange); font-size: 14px; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; }
.footer a:hover { text-decoration: underline; }
.foot-logo { font-size: 26px; color: #fff; font-weight: 500; }
.foot-logo .dot { color: var(--orange); }
.foot-tag { font-size: 13px; max-width: 280px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 11.5px; padding: 14px; color: #9e9e9e; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; font-size: 13px; z-index: 50; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: calc((100% - 3 * 22px) / 4); }
  .pdp { grid-template-columns: 1fr 340px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .mast-in { grid-template-columns: auto 1fr auto; gap: 10px; }
  .mast-link { display: none; }
  .burger { display: block; }
  .logo { align-items: flex-start; }
  .logo-main { font-size: 26px; }
  .logo-sub { font-size: 8px; letter-spacing: 4px; padding-left: 2px; }
  .search { display: none; }
  .mainnav { display: none; flex-direction: column; align-items: stretch; padding: 6px 16px 14px; }
  .mainnav.open { display: flex; }
  .nav-item > a { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .dropdown { display: none !important; }
  .mainnav .msearch { display: flex; width: 100%; margin: 8px 0 4px; }
  .hero-text h1 { font-size: 30px; }
  .hero-text .kicker { font-size: 16px; }
  .perks { grid-template-columns: 1fr; }
  .perk { padding: 10px; }
  .track { grid-auto-columns: 44%; gap: 14px; }
  .arrow { display: none; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .listing { grid-template-columns: 1fr; gap: 0; }
  .side { display: none; }
  .side.open { display: block; padding-bottom: 14px; }
  .filters-btn { display: inline-block; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .grid { gap: 30px 14px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { grid-template-columns: 1fr; padding: 14px 0; }
  .thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .thumbs button { flex: 0 0 64px; }
  .pdp-info { border-left: 0; border-top: 1px solid var(--line); margin: 0 -16px; }
  .cart { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .u-left { gap: 14px; }
  .u-left a:nth-child(3) { display: none; }
  .u-right { display: none; }
}
