:root {
  --navy: #0B1726;
  --navy-2: #15253A;
  --navy-line: #2C3E57;
  --navy-text: #C8D3E1;
  --navy-muted: #A9B8CC;
  --tech: #1D4ED8;
  --tech-dark: #1E3A8A;
  --tech-soft: #EAF0FD;
  --ferre: #C2410C;
  --ferre-dark: #9A3412;
  --ferre-soft: #FDEEE3;
  --ferre-bg: #FFF7F0;
  --ferre-line: #FBD9BF;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --ok: #15803D;
  --ok-dot: #16A34A;
  --warn: #B45309;
  --wa: #15803D;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(11, 23, 38, .10);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tech); }
a:hover { color: var(--tech-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { min-height: 60vh; outline: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--tech); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand-sub { font-size: 11px; letter-spacing: .28em; color: var(--navy-muted); }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 0 14px; height: 44px; color: var(--muted); }
.search input { border: 0; outline: none; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); background: transparent; }
.mainnav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; font-weight: 500; font-size: 15px; }
.mainnav a { color: #fff; text-decoration: none; padding: 10px 0; }
.mainnav a:hover { color: #BFDBFE; }
.mainnav .nav-ferre { color: #FDBA74; }
.mainnav .nav-ferre:hover { color: #FED7AA; }
.cart-link { display: flex; align-items: center; gap: 8px; border: 1px solid var(--navy-line); border-radius: 10px; padding: 9px 14px !important; }
.cart-count { background: var(--tech); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
.infobar { border-top: 1px solid #1C2B40; }
.infobar-row { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; color: var(--navy-text); }
.infobar-row span { display: inline-flex; align-items: center; gap: 8px; }
.infobar-row a { color: var(--navy-text); text-decoration: none; }
.infobar-row a:hover { color: #fff; }

@media (max-width: 720px) {
  .topbar { position: static; }
  .topbar-row { gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .mainnav { margin-left: auto; gap: 4px 14px; }
  .cart-label { display: none; }
  .infobar-row span:nth-child(n+3) { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--tech); color: #fff; }
.btn-primary:hover { background: var(--tech-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1C2B40; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #E2E8F0; color: var(--navy); }
.btn-ferre { background: var(--ferre); color: #fff; }
.btn-ferre:hover { background: var(--ferre-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #166534; color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 52px 0 88px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #93C5FD; border: 1px solid var(--navy-line); border-radius: 999px; padding: 6px 14px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 18px; color: var(--navy-text); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 380px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hero-tile { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--navy-text); text-decoration: none; min-height: 118px; }
.hero-tile:hover { border-color: #3B5578; color: #fff; }
.hero-tile svg { color: #93C5FD; }
.hero-tile.ferre svg { color: #FDBA74; }
.hero-tile strong { color: #fff; font-weight: 600; font-size: 15px; }
.hero-tile span { font-size: 13px; }
@media (max-width: 520px) { .hero-art { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Department cards ---------- */
.depts { margin-top: -48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.dept { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.dept:hover { color: var(--ink); border-color: var(--line-2); }
.dept-icon { flex: none; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; }
.dept.tech .dept-icon { background: var(--tech-soft); color: var(--tech); }
.dept.ferre .dept-icon { background: var(--ferre-soft); color: var(--ferre); }
.dept-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dept-txt strong { font-family: var(--display); font-size: 21px; font-weight: 600; }
.dept-txt span { color: var(--muted); font-size: 15px; }
.dept-go { font-weight: 600; font-size: 15px; white-space: nowrap; }
.dept.tech .dept-go { color: var(--tech); }
.dept.ferre .dept-go { color: var(--ferre); }

/* ---------- Sections ---------- */
.section { padding-top: 64px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.01em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { font-weight: 600; text-decoration: none; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); }
.cat:hover { color: var(--ink); border-color: var(--tech); }
.cat.ferre:hover { border-color: var(--ferre); }
.cat svg { color: var(--tech); }
.cat.ferre svg { color: var(--ferre); }
.cat strong { font-weight: 600; font-size: 16px; }
.cat span { font-size: 14px; color: var(--muted); }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { position: relative; overflow: hidden; display: grid; place-items: center; height: 200px; border: 0; padding: 0; width: 100%; background: #EEF2F6; color: #94A3B8; }
.card-media.ferre { background: #FBF1E8; color: #E0A27A; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 12px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 600; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { color: var(--tech); }
.card-title button:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; border-radius: 4px; }
.card-brand { font-size: 13px; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.price { font-family: var(--display); font-weight: 700; font-size: 20px; }
.price.ask { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink-2); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.order { color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.qty button { width: 44px; height: 42px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink); }
.qty button:hover { background: #F1F5F9; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.qty.full { width: 100%; justify-content: space-between; }

/* ---------- Steps / bands ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.panel h2 { margin: 0 0 24px; font-family: var(--display); font-size: 26px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.step { display: flex; gap: 14px; }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--tech-soft); color: var(--tech); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.step strong { display: block; font-size: 17px; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 15px; }

.ferre-band { background: var(--ferre-bg); border: 1px solid var(--ferre-line); border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.ferre-band-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.ferre-band-copy .tag { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--ferre); }
.ferre-band h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 30px); font-weight: 600; }
.ferre-band p { margin: 0; color: var(--muted); font-size: 16px; }
.ferre-band .btn { align-self: flex-start; }
.ferre-badge { flex: 0 1 340px; display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--ferre-line); border-radius: 16px; padding: 22px; }
.ferre-badge svg { flex: none; color: var(--ferre); }
.ferre-badge strong { display: block; font-size: 17px; }
.ferre-badge span { color: var(--muted); font-size: 14px; }

/* ---------- Catalog ---------- */
.page { padding-top: 28px; padding-bottom: 96px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.cat-head h1 { margin: 0; font-family: var(--display); font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 500; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.seg button[aria-pressed="true"].tech { background: var(--tech); }
.seg button[aria-pressed="true"].ferre { background: var(--ferre); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .7; margin-left: 4px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.toolbar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.toolbar select { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; color: var(--ink); }
.toolbar input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); }

.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 16px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.empty h2 { margin: 0; color: var(--ink); font-size: 20px; }
.skel { background: linear-gradient(90deg, #EEF2F6 25%, #F8FAFC 50%, #EEF2F6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 330px; }
@keyframes sk { to { background-position: -200% 0; } }

.cartbar { position: sticky; bottom: 0; z-index: 15; background: var(--navy); color: #fff; border-top: 1px solid #1C2B40; }
.cartbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; padding-bottom: 12px; }

/* ---------- Cart ---------- */
.cart-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cart-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cart-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 140px; }
@media (max-width: 920px) { .cart-side { position: static; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.box-pad { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.box h2 { margin: 0; font-size: 19px; font-weight: 600; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #EEF2F6; }
.line:last-child { border-bottom: 0; }
.line-img { position: relative; flex: none; width: 76px; height: 76px; border-radius: 10px; background: #EEF2F6; display: grid; place-items: center; color: #94A3B8; overflow: hidden; }
.line-img.ferre { background: #FBF1E8; color: #E0A27A; }
.line-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.line-info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.line-info strong { font-weight: 600; }
.line-info span { font-size: 14px; color: var(--muted); }
.line-sub { min-width: 110px; text-align: right; font-family: var(--display); font-weight: 600; }
.line-del { border: 0; background: transparent; color: var(--muted); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.line-del:hover { background: #FEF2F2; color: #B91C1C; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-weight: 400; background: #fff; color: var(--ink); }
.field textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tech); box-shadow: 0 0 0 3px #BFDBFE; }
.field .err { color: #B91C1C; font-weight: 500; font-size: 13px; }
.field input[aria-invalid="true"] { border-color: #B91C1C; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; }
.choice button[aria-pressed="true"] { border-color: var(--tech); background: #F5F8FF; }
.choice button strong { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.choice button span { color: var(--muted); font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills button { height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 500; }
.pills button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--tech-soft); color: var(--tech-dark); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.note svg { flex: none; margin-top: 2px; }

.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); }
.sum-total { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total strong { font-size: 16px; }
.sum-total .price { font-size: 26px; }
.small { font-size: 13px; color: var(--muted); margin: 0; }
.alert { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; border-radius: 12px; padding: 12px 14px; font-size: 14px; }

.success { max-width: 620px; margin: 40px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; }
.success-icon { width: 64px; height: 64px; border-radius: 999px; background: #DCFCE7; color: var(--ok); display: grid; place-items: center; }
.success h1 { margin: 0; font-family: var(--display); font-size: 28px; }
.success p { margin: 0; color: var(--muted); }
.success .code { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); }

/* ---------- Dialog ---------- */
.pdialog { border: 0; border-radius: 20px; padding: 0; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(11, 23, 38, .35); }
.pdialog::backdrop { background: rgba(11, 23, 38, .55); }
.pd { display: flex; flex-wrap: wrap; }
.pd-media { position: relative; overflow: hidden; flex: 1 1 320px; min-height: 340px; background: #EEF2F6; display: grid; place-items: center; color: #94A3B8; }
.pd-media.ferre { background: #FBF1E8; color: #E0A27A; }
.pd-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 20px; }
.pd-info { flex: 1 1 340px; padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.pd-info h2 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.25; padding-right: 40px; }
.pd-desc { color: var(--ink-2); white-space: pre-line; margin: 0; }
.pd-meta { font-size: 14px; color: var(--muted); }
.pd-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 10px; border: 0; background: #F1F5F9; display: grid; place-items: center; }
.pd-close:hover { background: #E2E8F0; }
.pd-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }

/* ---------- Footer ---------- */
.footer { margin-top: 80px; background: var(--navy); color: var(--navy-text); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 44px; font-size: 15px; }
.footer-grid div { display: flex; flex-direction: column; gap: 8px; }
.footer strong { color: #fff; font-weight: 600; }
.footer .f-brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; }
.footer a { color: var(--navy-text); }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1C2B40; font-size: 13px; padding-top: 16px; padding-bottom: 20px; color: var(--navy-muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Galería y colores en el detalle ---------- */
.pd-gallery { flex: 1 1 320px; display: flex; flex-direction: column; background: #fff; min-width: 0; }
.pd-gallery .pd-media { flex: none; height: 360px; min-height: 0; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px 12px 14px; overflow-x: auto; border-top: 1px solid var(--line); }
.pd-thumbs button { flex: none; width: 60px; height: 60px; padding: 4px; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--tech); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-colors { display: flex; flex-direction: column; gap: 8px; }
.pd-colors .pills button { height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 620px) { .pd-gallery .pd-media { height: 260px; } }

/* ---------- Libro de Reclamaciones ---------- */
.lr { max-width: 860px; }
.lr-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--ink); }
.lr-title svg { width: 34px; height: 34px; color: var(--tech); }
.lr-title h1 { margin: 0; font-family: var(--display); font-size: clamp(26px, 4vw, 34px); }
.lr-intro { color: var(--muted); margin: 0 0 18px; }
.lr-form { display: flex; flex-direction: column; gap: 16px; }
.lr-prov { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
.lr-prov span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lr-prov b { font-weight: 600; }
.lr-check { align-items: flex-start; }
.lr-check input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; }
.radio-pill:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.radio-pill input { accent-color: var(--tech); }
.field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B91C1C; }
.lr-sheet { gap: 18px; }
.lr-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.lr-num span { color: var(--muted); }
.lr-num b { font-family: var(--display); font-size: 26px; }
.lr-dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 18px; margin: 0; }
.lr-dl dt { color: var(--muted); font-size: 14px; }
.lr-dl dd { margin: 0; white-space: pre-line; }
@media (max-width: 560px) { .lr-dl { grid-template-columns: 1fr; gap: 2px; } .lr-dl dd { margin-bottom: 10px; } }
.lr-link { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--navy-line); border-radius: 10px; padding: 10px 14px; text-decoration: none; color: #fff !important; align-self: flex-start; }
.lr-link:hover { border-color: #93C5FD; }
@media print {
  .topbar, .footer, .crumbs, .lr-actions, .toast { display: none !important; }
  body { background: #fff; }
  .box { border: 1px solid #999; }
}
[hidden] { display: none !important; }

/* ---------- Pago Yape / Plin ---------- */
.pay { width: 100%; border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pay h2 { margin: 0; font-size: 20px; }
.pay p { margin: 0; }
.pay-qr { width: 220px; height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }

.legal h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 34px); margin: 8px 0 4px; }
.legal-body { gap: 4px; line-height: 1.65; }
.legal-body h2 { font-size: 17px; margin: 18px 0 4px; font-family: var(--display); }
.legal-body p { margin: 0; color: var(--ink); }
.legal-body a, .box .small a { color: var(--tech); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.f-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.f-legal a { color: inherit; text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 14px; }
#pedidoForm input { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.ped { gap: 12px; }
.ped-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ped-top .code { font-family: var(--display); font-weight: 700; font-size: 24px; }
.ped-badge { padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; background: #FEF3C7; color: #92400E; }
.ped-aceptada { background: #DCFCE7; color: #166534; }
.ped-venta { background: #DBEAFE; color: #1E40AF; }
.ped-rechazada { background: #FEE2E2; color: #991B1B; }
.ped-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ped-items li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ped-other { margin-top: 16px; }
.ped-other summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
