/* HN Store · Sistema visual HN: Geist, superficies definidas y acento azul.
   Fuentes alojadas con la aplicación; no se requieren servicios externos. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  --navy: #0b1f3a; --navy-2: #12305a; --navy-3: #1b3f73;
  --primary: #175cd3; --primary-600: #1849a9; --primary-50: #eff6ff; --primary-100: #dbeafe;
  --accent: #f59e0b; --accent-600: #d97706;
  --ink: #101828; --text: #344054; --muted: #667085; --faint: #98a2b3;
  --line: #dce3ed; --line-2: #c5cfdd; --bg: #f2f5fa; --card: #fff; --soft: #f8fafc;
  --green: #15803d; --green-50: #ecfdf3; --red: #dc2626; --red-50: #fef2f2; --amber: #b45309; --amber-50: #fffbeb; --blue-50: #eff6ff;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 7px;
  --shadow-sm: 0 2px 3px rgba(16, 24, 40, .04), 0 5px 16px -6px rgba(16, 24, 40, .12);
  --shadow: 0 12px 24px -6px rgba(16, 24, 40, .10), 0 4px 8px -4px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 50px rgba(11, 31, 58, .18);
  --font: "Geist", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --container: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 650; }
h3, .h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
b, strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 2px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.main { min-height: 50vh; padding-bottom: 48px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.small-b { font-size: .86rem; font-weight: 650; }
.mono { font-family: var(--mono); font-size: .88em; letter-spacing: -.01em; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.row-center { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.inline, .inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--primary); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 650; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #c7d7ff; border: 1px solid rgba(255, 255, 255, .14); }
.eyebrow-sm { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.req { color: var(--red); }
.free { color: var(--green); }
.show-md { display: none !important; }

/* ---------- Botones ---------- */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 42px; border-radius: var(--radius-sm); border: 1px solid transparent; background: #fff; color: var(--ink); font-weight: 650; font-size: .93rem; line-height: 1.1; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; white-space: nowrap; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #2874e5, var(--primary)); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-success { background: #16a34a; color: #fff; box-shadow: 0 1px 2px rgba(22, 163, 74, .3); }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(15, 23, 42, .05); color: var(--ink); }
.btn-ghost.danger:hover, .icon-btn.danger:hover { color: var(--red); background: var(--red-50); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2ff; color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .84rem; border-radius: 8px; gap: 6px; }
.btn-lg { padding: 13px 24px; min-height: 50px; font-size: 1rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn.disabled, .btn:disabled { opacity: .5; pointer-events: none; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline.loading::after, .btn-ghost.loading::after { border-color: rgba(29, 78, 216, .25); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(15, 23, 42, .06); color: var(--ink); }

/* ---------- Badges, avisos ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: #f1f5f9; color: #475569; border: 1px solid transparent; vertical-align: middle; }
.badge::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-50); color: var(--green); border-color: #bbf7d0; }
.badge-amber { background: var(--amber-50); color: var(--amber); border-color: #fde68a; }
.badge-red { background: var(--red-50); color: var(--red); border-color: #fecaca; }
.badge-blue { background: var(--blue-50); color: var(--primary); border-color: #bfdbfe; }
.badge-purple { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.badge-gray { background: #f1f5f9; color: #475569; border-color: var(--line); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--soft); color: var(--text); margin: 0; }
.notice > .icon { margin-top: 2px; }
.notice > div { flex: 1; min-width: 0; }
.notice form { margin-left: auto; }
.notice-info { background: var(--blue-50); border-color: #bfdbfe; color: #1e3a8a; }
.notice-success { background: var(--green-50); border-color: #bbf7d0; color: #14532d; }
.notice-warn { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.notice-error { background: var(--red-50); border-color: #fecaca; color: #7f1d1d; }
.flash { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 550; box-shadow: var(--shadow-sm); animation: drop .25s ease-out; }
.flash > span { flex: 1; }
.flash-success { background: var(--green-50); border-color: #bbf7d0; color: #14532d; }
.flash-error { background: var(--red-50); border-color: #fecaca; color: #7f1d1d; }
.flash-info { background: var(--blue-50); border-color: #bfdbfe; color: #1e3a8a; }
.flash-warn { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.flash-close { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.flash-close:hover { opacity: 1; background: rgba(0, 0, 0, .05); }
.flash-floating { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; max-width: min(560px, calc(100% - 32px)); margin: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flash-floating { animation: none; }
.maintenance { background: var(--accent); color: #111827; text-align: center; font-weight: 600; font-size: .88rem; padding: 8px 16px; display: flex; gap: 8px; align-items: center; justify-content: center; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: .86rem; font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #f87171; }
input[readonly] { background: var(--soft); color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }
input[type=color] { width: 72px; height: 44px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
input[type=file] { width: 100%; padding: 9px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--soft); font-size: .88rem; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; padding: 7px 12px; font-weight: 600; cursor: pointer; }
.input-sm { min-height: 38px !important; padding: 7px 11px !important; font-size: .9rem; }
.input-xs { min-height: 34px !important; padding: 6px 10px !important; font-size: .85rem; width: 130px !important; }
.input-inline { width: auto !important; min-width: 240px; }
.hint { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.uppercase input { text-transform: uppercase; }
.uppercase input::placeholder { text-transform: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fiscal-import { display: grid; gap: 12px; padding: 18px; margin: 0 0 22px; border: 1px solid #d6e2f8; border-radius: var(--radius-sm); background: #f5f8ff; min-width: 0; }
.fiscal-import strong { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: .9rem; }
.fiscal-import strong .icon { color: var(--primary); }
.fiscal-import p { margin: 6px 0 0; line-height: 1.6; }
.fiscal-import .row-gap { align-items: flex-end; }
.fiscal-import .field { flex: 1 1 240px; min-width: 0; }
.fiscal-import input[type=file] { width: 100%; max-width: 100%; background: #fff; font-size: .8rem; }
.fiscal-import input[type=file]::file-selector-button { border: 0; border-radius: 5px; background: var(--primary-50); color: var(--primary); padding: 6px 9px; margin-right: 9px; cursor: pointer; font: inherit; font-weight: 600; }
.fiscal-import [data-fiscal-status] { margin: 0; font-size: .77rem; overflow-wrap: anywhere; }
.fiscal-import .btn { flex-shrink: 0; margin-bottom: 1px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.form-actions-end { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .93rem; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.check-sm { font-size: .82rem; color: var(--muted); }
.check-sm input { width: 15px; height: 15px; }
.check-lg { width: 100%; padding: 4px 0; }
.check-lg input { width: 20px; height: 20px; }
.check-lg span { display: flex; flex-direction: column; gap: 2px; }
.check-lg small { color: var(--muted); font-size: .84rem; }
.password { position: relative; }
.password input { padding-right: 46px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.password-toggle:hover { color: var(--ink); background: var(--soft); }
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.switch:hover { border-color: var(--line-2); }
.switch input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; transition: background .2s; margin-top: 1px; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 2px; }
.switch:has(input:checked) { border-color: #bfdbfe; background: #f8fbff; }
.switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-text b { font-size: .93rem; color: var(--ink); }
.switch-text small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.copy-field { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.copy-field input { font-family: var(--mono); font-size: .84rem; background: var(--soft); }
.collapse > summary { cursor: pointer; list-style: none; font-weight: 650; }
.collapse > summary::-webkit-details-marker { display: none; }
.collapse[open] > summary.btn { margin-bottom: 12px; }
details.collapse:not(:has(> summary.btn)) > summary { padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
details.collapse:not(:has(> summary.btn)) > summary::before { content: "▸ "; color: var(--muted); }
details.collapse[open]:not(:has(> summary.btn)) > summary::before { content: "▾ "; }

/* ---------- Tablas y listas ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .01em; color: #475467; font-weight: 600; background: var(--soft); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.table th.num { text-align: right; }
.table-sm th { padding: 8px 11px; }
.table-sm td { padding: 8px 11px; font-size: .86rem; }
.table-hover tbody tr { cursor: pointer; transition: background .1s; }
.table-hover tbody tr:hover { background: #f8fbff; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions, .actions { display: table-cell; }
td.actions > * { display: inline-flex; vertical-align: middle; margin: 2px 0 2px 4px; }
td.actions form { margin: 0; }
.row-muted td { opacity: .55; }
.row-highlight td { background: #fffbeb; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 18px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 550; }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.simple-list li:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty > .icon { color: var(--faint); margin: 0 auto 14px; display: block; }
.empty h1, .empty h2, .empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 460px; margin: 0 auto 12px; }
.empty-lg { padding: 72px 20px; margin-top: 28px; }
.empty-sm { padding: 28px 16px; border-style: solid; border-color: var(--line); background: var(--soft); }
.empty-sm > .icon { margin-bottom: 8px; }
.empty-sm p { margin: 0 auto; }

/* ---------- Tarjetas genéricas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-compact { padding: 16px 18px; }
.card-compact p { margin-bottom: .5em; }
.card-compact p:last-child { margin-bottom: 0; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 16px; }
.card-title .icon { color: var(--primary); }
.card-title-sm { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 10px; }
.card-title-sm .icon { color: var(--primary); }

/* ---------- Topbar y encabezado ---------- */
.topbar { background: var(--navy); color: #b9c8e4; font-size: .8rem; }
.topbar-row { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #b9c8e4; white-space: nowrap; }
a.topbar-item:hover { color: #fff; }
.topbar-spacer, .nav-spacer, .toolbar-spacer { flex: 1; }
.header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 23, 42, .04); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.menu-toggle { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { height: auto; max-width: 210px; width: 190px; object-fit: contain; margin: -15px -14px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff; font-weight: 850; font-size: .95rem; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(29, 78, 216, .35); }
.brand-name { font-size: 1.15rem; line-height: 1.1; max-width: 200px; }
.brand-light, .brand-light:hover { color: #fff; }
.search { position: relative; flex: 1; display: flex; align-items: center; max-width: 720px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.search:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(29, 78, 216, .1); }
.search .search-icon { color: var(--muted); }
.search input[type=search] { border: 0; background: transparent; box-shadow: none; min-height: 40px; padding: 8px 10px; }
.search input[type=search]::-webkit-search-cancel-button { display: none; }
.search .btn { min-height: 40px; border-radius: 9px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.suggest-item:hover, .suggest-item.active { background: var(--primary-50); color: var(--ink); }
.suggest-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.suggest-item span { flex: 1; min-width: 0; }
.suggest-item b { display: block; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item small { color: var(--muted); }
.suggest-price { flex: 0 0 auto !important; font-weight: 750; color: var(--ink); font-size: .9rem; }
.suggest-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-weight: 650; font-size: .88rem; background: var(--soft); }
.suggest-empty { padding: 16px; color: var(--muted); font-size: .9rem; text-align: center; }
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.action { display: inline-flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.action:hover { background: var(--soft); color: var(--ink); }
.action > span:not(.cart-icon) { display: flex; flex-direction: column; line-height: 1.15; }
.action small { color: var(--muted); font-size: .74rem; }
.action b { font-size: .9rem; }
.cart-icon { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -7px; right: -9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #111827; font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.nav { background: var(--navy-2); }
.nav-row { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.nav-link { color: #dbe5f7; font-size: .9rem; font-weight: 550; padding: 8px 12px; border-radius: 8px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-cta { color: #fff; background: rgba(245, 158, 11, .16); border: 1px solid rgba(245, 158, 11, .4); }
.nav-cta:hover { background: rgba(245, 158, 11, .28); }
.mega { position: relative; }
.mega > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 14px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 650; font-size: .9rem; margin-right: 6px; user-select: none; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary:hover { background: var(--primary-600); }
.mega[open] > summary .icon:last-child { transform: rotate(180deg); }
.mega-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 55; width: min(760px, 92vw); max-height: 70vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.mega-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 550; font-size: .92rem; }
.mega-panel a:hover { background: var(--primary-50); color: var(--primary); }
.mega-icon { display: inline-flex; width: 32px; height: 32px; border-radius: 8px; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }

/* ---------- Portada ---------- */
.hero { background: radial-gradient(1000px 420px at 85% -10%, rgba(59, 130, 246, .45), transparent 60%), radial-gradient(700px 400px at -10% 120%, rgba(245, 158, 11, .18), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0f2a52 55%, var(--navy-3) 100%); color: #e6edf9; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); letter-spacing: -.03em; margin: 18px 0 16px; line-height: 1.08; }
.hero-copy > p { font-size: 1.1rem; color: #c3d1ea; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c3d1ea; font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: #4ade80; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); transition: transform .3s; }
.hero-card:hover { transform: translateY(-4px); }
.hero-card .icon { color: #93c5fd; margin-bottom: 8px; }
.hero-card b { color: #fff; font-size: 1.02rem; }
.hero-card small { color: #a9badb; }
.hero-card-b, .hero-card-d { transform: translateY(26px); }
.hero-card-b:hover, .hero-card-d:hover { transform: translateY(22px); }
.hero-card-c .icon { color: #fcd34d; }
.hero-card-d .icon { color: #86efac; }
.section { padding: 56px 0 8px; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 56px; margin-top: 48px; }
.section-alt + .section { padding-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--muted); margin: 0; }
.section-tight { margin-top: 44px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 650; font-size: .93rem; line-height: 1.3; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--primary); }
.cat-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-50), #e0e7ff); color: var(--primary); }
.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-strip-lg { margin-bottom: 28px; }
.brand-tile { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 84px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); color: var(--ink); text-align: center; overflow-wrap: anywhere; transition: border-color .15s, box-shadow .15s; }
.brand-tile img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.brand-tile:hover { border-color: #bfdbfe; box-shadow: var(--shadow); }
.brand-tile:hover img { filter: none; opacity: 1; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 44px; border-radius: 22px; color: #dbe6ff; background: radial-gradient(600px 300px at 100% 0, rgba(245, 158, 11, .25), transparent 60%), linear-gradient(120deg, var(--primary) 0%, var(--navy-3) 70%); box-shadow: var(--shadow-lg); flex-wrap: wrap; margin-bottom: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Tarjeta de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid-5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; }
.product-card:hover { border-color: #c7d6f5; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 18px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: .76rem; padding: 4px 9px; border-radius: 7px; box-shadow: 0 4px 10px rgba(220, 38, 38, .3); }
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 6px; flex: 1; }
.product-brand { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--primary); }
.product-title { color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-title:hover { color: var(--primary); }
.product-model { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.product-actions { padding: 10px 16px 16px; }
.product-actions form { margin: 0; }
.price { font-weight: 800; color: var(--ink); font-size: 1.32rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-sign { font-size: .7em; vertical-align: .32em; margin-right: 1px; font-weight: 700; }
.price-dec { font-size: .62em; vertical-align: .5em; font-weight: 700; margin-left: 1px; }
.price-quote { font-size: 1.05rem; color: var(--primary); }
.price-old { color: var(--faint); font-size: .85rem; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 650; margin-top: 2px; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--amber); }
.stock-out { color: var(--muted); }

/* ---------- Catálogo ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 18px 0 6px; font-size: .84rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--ink); font-weight: 600; }
.breadcrumbs .icon { color: var(--faint); }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 0 20px; }
.catalog-head h1 { margin-bottom: 4px; }
.catalog-head p { margin: 0; }
.catalog-brand { max-height: 54px; max-width: 180px; width: auto; object-fit: contain; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 160px); overflow: auto; padding-right: 2px; }
.filter-form { display: flex; flex-direction: column; gap: 14px; }
.filter-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.filter-block h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 2px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.filter-list a { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.filter-list a .icon { color: var(--faint); }
.filter-list a:hover { background: var(--soft); color: var(--primary); }
.filter-list a.active { background: var(--primary-50); color: var(--primary); font-weight: 650; }
.filter-list a.active .icon { color: var(--primary); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; background: var(--primary-50); color: var(--primary); border: 1px solid #bfdbfe; border-radius: 999px; font-size: .82rem; font-weight: 650; }
.chip:hover { background: #dbeafe; }
.sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.sort label { font-size: .85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sort select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; width: auto; font-size: .9rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0 8px; }
.pager a, .pager span { display: inline-flex; align-items: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: .9rem; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager span:not(.current) { border: 0; background: transparent; }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin-top: 12px; align-items: start; }
.gallery { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.gallery-main img.swap { opacity: .25; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 auto; width: 76px; height: 76px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--line-2); }
.thumb.active { border-color: var(--primary); }
.pdp-info h1 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); margin: 10px 0 12px; line-height: 1.25; }
.pdp-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdp-brand img { max-height: 36px; max-width: 140px; width: auto; object-fit: contain; }
.pdp-brand > span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); font-size: .85rem; }
.pdp-brand .link { font-size: .85rem; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.pdp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pdp-meta b { color: var(--ink); font-family: var(--mono); font-size: .92em; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price .price { font-size: 2.2rem; }
.pdp-price .price-old { font-size: 1rem; }
.save { background: var(--green-50); color: var(--green); font-weight: 700; font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.pdp-stock { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.pdp-stock .stock { font-size: .9rem; margin: 0; }
.variants { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.variants-label { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { padding: 7px 13px; border: 1.5px solid var(--line-2); border-radius: 9px; color: var(--text); font-size: .88rem; font-weight: 600; }
.variant:hover { border-color: var(--primary); color: var(--primary); }
.variant.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.buy-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.buy-form .btn { flex: 1 1 170px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; height: 50px; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--soft); color: var(--ink); }
.qty input { width: 52px; min-height: 0; height: 100%; border: 0; border-radius: 0; padding: 0; text-align: center; font-weight: 700; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 38px; border-radius: 10px; }
.qty-sm button { width: 34px; }
.qty-sm input { width: 42px; font-size: .9rem; }
.in-cart { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--green); margin: 0; font-weight: 550; }
.assurances { list-style: none; margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: .87rem; color: var(--muted); }
.assurances li { display: flex; gap: 10px; align-items: flex-start; }
.assurances .icon { color: var(--primary); margin-top: 1px; }
.assurances b { color: var(--ink); }
.features { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.features li { display: flex; gap: 9px; align-items: flex-start; }
.features .icon { color: var(--green); margin-top: 3px; }
.features-full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 22px; }
.tabs { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tab-list { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--soft); }
.tab-list button { border: 0; background: transparent; padding: 15px 16px 13px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; font-size: .93rem; }
.tab-list button:hover { color: var(--ink); }
.tab-list button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { padding: 26px 28px; }
.rich { line-height: 1.7; overflow-wrap: anywhere; }
.rich img { height: auto; margin: 12px 0; border-radius: 10px; }
.rich table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: .9rem; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 7px 10px; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich h1, .rich h2, .rich h3, .rich h4 { font-size: 1.1rem; margin-top: 1.2em; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 600; background: var(--soft); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .9rem; }
.doc span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc .icon:first-child { color: var(--primary); }
.doc .icon:last-child { color: var(--faint); }
.doc:hover { border-color: var(--primary); background: var(--primary-50); }

/* ---------- Carrito ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 20px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 130px 40px; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-line.has-issue { background: #fffbeb; }
.cart-thumb { display: block; width: 88px; height: 88px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-title { color: var(--ink); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-title:hover { color: var(--primary); }
.line-issue { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-size: .82rem; font-weight: 650; }
.cart-price { text-align: right; display: flex; flex-direction: column; }
.cart-price b { font-size: 1.05rem; color: var(--ink); }
.cart-price small { color: var(--muted); }
.cart-tools { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; background: var(--soft); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.summary h2 { font-size: 1.15rem; margin: 0 0 4px; }
.summary-sticky, .cart-layout .summary { position: sticky; top: 140px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.summary-row.muted span:last-child { font-size: .84rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.summary-total b { font-size: 1.45rem; letter-spacing: -.02em; }
.free-ship { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--blue-50); color: #1e3a8a; font-size: .86rem; }
.free-ship.done { background: var(--green-50); color: var(--green); font-weight: 650; }
.secure-note { display: flex; align-items: center; gap: 7px; justify-content: center; color: var(--muted); font-size: .8rem; margin: 2px 0 0; }
.secure-note .icon { color: var(--green); }
.summary .notice { font-size: .86rem; }

/* ---------- Checkout ---------- */
.checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 28px 0 22px; }
.checkout-head h1 { margin: 0; }
.stepper { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; counter-reset: s; }
.stepper li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .88rem; }
.stepper li span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: #e2e8f0; font-size: .8rem; font-weight: 800; color: var(--muted); }
.stepper li.current { color: var(--ink); border-color: #bfdbfe; background: var(--primary-50); }
.stepper li.current span { background: var(--primary); color: #fff; }
.stepper li.done span { background: var(--green); color: #fff; }
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--line-2); }
.choice input[type=radio] { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: #f8fbff; box-shadow: 0 0 0 3px rgba(29, 78, 216, .08); }
.choice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice-body b { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.choice-body small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.choice-price { font-weight: 750; color: var(--ink); white-space: nowrap; }
.choice > .icon { color: var(--muted); }
.choice-logos { display: flex; gap: 4px; }
.choice-logos span, .pay-marks span { font-size: .64rem; font-weight: 800; letter-spacing: .03em; padding: 3px 6px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.review-row { display: flex; gap: 24px; align-items: flex-start; }
.review-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.review-row small { color: var(--muted); }
.invoice-fields { margin-top: 16px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.mini-lines { list-style: none; margin: 0 0 4px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow: auto; }
.mini-lines li { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.mini-lines li > span:last-child { font-weight: 650; white-space: nowrap; }
.mini-thumb { position: relative; flex: 0 0 auto; width: 52px; height: 52px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: inline-flex; }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-thumb b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.mini-title { flex: 1; min-width: 0; line-height: 1.3; display: flex; flex-direction: column; }
.mini-title, .mini-title small { overflow: hidden; text-overflow: ellipsis; }
.mini-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-title small { display: block; color: var(--muted); font-family: var(--mono); font-size: .74rem; }

/* ---------- Pedido ---------- */
.order-page { padding-top: 24px; }
.thanks { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 18px; background: linear-gradient(120deg, #ecfdf3, #f0fdf4 60%, #eff6ff); border: 1px solid #bbf7d0; margin-bottom: 22px; }
.thanks h2 { margin: 0 0 4px; color: #14532d; }
.thanks p { margin: 0; color: #166534; }
.thanks-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #16a34a; color: #fff; box-shadow: 0 8px 20px rgba(22, 163, 74, .3); }
.order-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.order-head h1 { margin: 2px 0 8px; font-family: var(--mono); letter-spacing: -.02em; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tracker { list-style: none; margin: 0 0 24px; padding: 18px 20px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; gap: 0; }
.tracker li { position: relative; flex: 1 1 0; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.tracker li span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: var(--muted); font-weight: 800; font-size: .82rem; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tracker li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: #e2e8f0; }
.tracker li:first-child::before { display: none; }
.tracker li.done { color: var(--ink); }
.tracker li.done span { background: var(--green); color: #fff; box-shadow: 0 0 0 1px var(--green); }
.tracker li.done::before { background: var(--green); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.pay-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: #c8d6ee; box-shadow: var(--shadow); }
.pay-box h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; }
.pay-box p { margin: 0; }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pay-actions form { margin: 0; }
.pay-actions .btn-ghost { color: #c8d6ee; }
.pay-actions .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.bank-box { background: #fff; border: 1.5px solid #bfdbfe; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.bank-box h3 { display: flex; align-items: center; gap: 9px; }
.bank-box h3 .icon { color: var(--primary); }
.bank-box > p { margin: 14px 0 0; font-size: .9rem; }
.bank-data { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; padding: 16px; background: var(--soft); border-radius: 12px; }
.bank-data dt { color: var(--muted); font-size: .88rem; }
.bank-data dd { margin: 0; color: var(--ink); }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row b { font-family: var(--mono); font-size: 1.02rem; letter-spacing: .02em; }
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-lines li:first-child { padding-top: 0; }
.order-lines a { color: var(--ink); font-weight: 600; }
.order-lines a:hover { color: var(--primary); }
.order-lines small { display: block; color: var(--muted); }
.order-lines b { white-space: nowrap; }
.totals { margin-left: auto; max-width: 340px; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals small { color: var(--muted); }
.totals-grand { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 750; color: var(--ink); font-size: 1.15rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: relative; z-index: 1; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); margin-top: 3px; }
.timeline li:first-child .dot { background: var(--primary); }
.timeline b { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
.timeline small { color: var(--muted); }
.timeline li.private .dot { border-color: var(--faint); }
.timeline li.private b { color: var(--muted); font-style: italic; }
.invoice-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invoice-item:last-child { border-bottom: 0; }
.invoice-item small { display: block; color: var(--muted); }
.invoice-links { display: flex; gap: 8px; }
.help-card { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); }
.help-card > .icon { color: var(--primary); }
.help-card div { display: flex; flex-direction: column; gap: 2px; }
.help-card small { color: var(--muted); }

/* ---------- Cuenta ---------- */
.account { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 28px; }
.account-main .page-head { margin-top: 0; }
.account-main > .notice { margin-bottom: 18px; }
.account-nav { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.account-user { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.account-user div { min-width: 0; display: flex; flex-direction: column; }
.account-user b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-user small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff; font-weight: 800; font-size: 1.1rem; }
.account-nav nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 550; font-size: .93rem; }
.account-nav nav a .icon { color: var(--faint); }
.account-nav nav a:hover { background: var(--soft); color: var(--ink); }
.account-nav nav a.active { background: var(--primary-50); color: var(--primary); font-weight: 650; }
.account-nav nav a.active .icon { color: var(--primary); }
.account-nav form { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #111827; font-size: .74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat > span { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); }
.stat div { display: flex; flex-direction: column; }
.stat b { font-size: 1.4rem; color: var(--ink); line-height: 1.1; }
.stat small { color: var(--muted); }
.order-cards { display: flex; flex-direction: column; gap: 12px; }
.order-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.order-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); color: var(--text); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
.order-card-head > div:first-child { display: flex; flex-direction: column; }
.order-card-head b { font-family: var(--mono); color: var(--ink); }
.order-card-head small { color: var(--muted); }
.order-card-body { display: flex; align-items: center; gap: 18px; padding: 14px 18px; flex-wrap: wrap; }
.thumbs { display: flex; gap: 8px; align-items: center; flex: 1; }
.more { font-weight: 700; color: var(--muted); font-size: .88rem; }
.order-card-total { display: flex; flex-direction: column; text-align: right; }
.order-card-total small { color: var(--muted); }
.order-card-total b { font-size: 1.1rem; color: var(--ink); }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.address-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.address-card.is-default { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(29, 78, 216, .06); }
.address-card p { margin: 0; font-size: .9rem; }
.address-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.address-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.address-actions form { margin: 0; }

/* ---------- Acceso ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px); gap: 40px; justify-content: center; align-items: center; padding-top: 44px; padding-bottom: 20px; }
.auth-single { grid-template-columns: minmax(0, 480px); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth-card-wide { max-width: 640px; }
.auth-single .auth-card-wide { width: 100%; }
.auth-card h1 { font-size: 1.6rem; margin: 14px 0 6px; }
.auth-icon { display: inline-flex; width: 54px; height: 54px; border-radius: 15px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-50), #e0e7ff); color: var(--primary); }
.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .92rem; color: var(--muted); }
.auth-alt a { font-weight: 650; }
.auth-side { background: linear-gradient(150deg, var(--navy), var(--navy-3)); color: #c8d6ee; border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-side h2 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; }
.benefits .icon { flex-shrink: 0; color: #93c5fd; padding: 9px; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); }
.benefits span { display: flex; flex-direction: column; gap: 2px; }
.benefits b { color: #fff; font-size: .96rem; }

/* ---------- Páginas informativas y marcas ---------- */
.page-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 28px; }
.page-nav { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.page-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 550; font-size: .93rem; }
.page-nav a:hover { background: var(--soft); }
.page-nav a.active { background: var(--primary-50); color: var(--primary); font-weight: 650; }
.page-body { padding: 34px 38px; line-height: 1.75; }
.page-icon { display: inline-flex; width: 54px; height: 54px; border-radius: 15px; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); margin-bottom: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 20px 0; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); line-height: 1.5; }
.contact-card .icon { color: var(--primary); margin-bottom: 6px; }
.contact-card b { color: var(--ink); }
.contact-card span { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
a.contact-card:hover { border-color: #bfdbfe; background: var(--primary-50); }
.filter-inline { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 4px 4px 4px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 18px; color: var(--muted); }
.filter-inline:focus-within { border-color: var(--primary); }
.filter-inline input { border: 0 !important; box-shadow: none !important; min-height: 40px; }
.brand-list { columns: 5 180px; column-gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.brand-list a { display: block; padding: 6px 8px; border-radius: 7px; color: var(--text); font-size: .92rem; break-inside: avoid; }
.brand-list a:hover { background: var(--primary-50); color: var(--primary); }

/* ---------- Confianza, pie, flotantes ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item > .icon { color: var(--primary); padding: 10px; width: 48px; height: 48px; border-radius: 13px; background: var(--primary-50); }
.trust-item div { display: flex; flex-direction: column; }
.trust-item b { color: var(--ink); font-size: .94rem; }
.trust-item small { color: var(--muted); }
.footer { background: var(--navy); color: #9fb1d1; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer a { color: #b9c8e4; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-brand p { margin: 14px 0; line-height: 1.6; max-width: 380px; }
.footer-brand .brand { padding: 0; }
.footer-logo { display: inline-block; padding: 0; }
.footer-logo img { height: auto; width: 210px; max-width: 240px; object-fit: contain; margin: -16px -15px; }
.footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-contact a, .footer-line { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; color: #b9c8e4; line-height: 1.5; }
.footer-contact .icon { flex-shrink: 0; margin-top: 3px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #dbe5f5; }
.footer .footer-social a:hover { background: var(--primary); color: #fff; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.contact-card small { color: var(--primary); font-weight: 650; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }
.pay-marks { display: flex; gap: 6px; flex-wrap: wrap; }
.footer .pay-marks span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #c8d6ee; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(34, 197, 94, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 95; max-width: min(460px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 550; font-size: .92rem; opacity: 0; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .icon { color: #4ade80; }
.toast.error .icon { color: #fca5a5; }
.toast a { color: #93c5fd; font-weight: 700; white-space: nowrap; margin-left: auto; }

/* ---------- Errores fatales (página sin layout) ---------- */
.fatal { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.fatal-box { max-width: 520px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); text-align: center; }
.fatal-box h1 { font-size: 1.4rem; }
.fatal-box p { color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .show-md { display: inline-flex !important; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-art { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: flex; }
  .cart-layout, .checkout-layout, .order-layout { grid-template-columns: 1fr; }
  .summary-sticky, .cart-layout .summary { position: static; }
  .checkout-layout .summary { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .account, .page-layout { grid-template-columns: 1fr; }
  .account-nav, .page-nav { position: static; }
  .account-nav nav, .page-nav { flex-direction: row; flex-wrap: wrap; }
  .auth { grid-template-columns: minmax(0, 520px); }
  .auth-side { display: none; }
}
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .menu-toggle { display: inline-flex; margin-left: -8px; }
  .brand { flex: 1; }
  .brand-logo { height: auto; width: 160px; max-width: 170px; margin: -12px -11px; }
  .brand-name { font-size: 1.05rem; }
  .search { order: 5; flex: 1 0 100%; max-width: none; }
  .search .btn { display: none; }
  .nav { display: none; }
  body.nav-open .nav { display: block; }
  body.nav-open .nav-row { flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 12px; }
  body.nav-open .nav-link { padding: 11px 12px; }
  body.nav-open .nav-link.hide-md { display: flex !important; }
  .mega > summary { width: 100%; justify-content: space-between; margin: 0; }
  .mega-panel { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; margin-top: 8px; max-height: 50vh; }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .gallery { position: static; }
  .gallery-main { padding: 18px; }
  .features-full { grid-template-columns: 1fr; }
  .tab-panel { padding: 20px; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) 40px; grid-template-areas: "t i r" "t q p"; gap: 10px 14px; padding: 14px; }
  .cart-thumb { grid-area: t; width: 72px; height: 72px; }
  .cart-info { grid-area: i; }
  .cart-line .qty { grid-area: q; justify-self: start; }
  .cart-price { grid-area: p; align-self: center; }
  .cart-line .icon-btn { grid-area: r; align-self: start; }
  .review-row { flex-direction: column; gap: 10px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .stat > span { width: 36px; height: 36px; }
  .page-body { padding: 24px 20px; }
  .cta-band { padding: 30px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 14px; }
  .hide-sm { display: none !important; }
  .topbar-row { gap: 14px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .grid-products, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-media { padding: 10px; }
  .product-body { padding: 10px 12px 4px; }
  .product-actions { padding: 8px 12px 12px; }
  .product-actions .btn { padding: 8px 10px; font-size: .85rem; min-height: 38px; }
  .price { font-size: 1.14rem; }
  .pdp-price .price { font-size: 1.8rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { padding: 14px; }
  .brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .brand-tile { height: 66px; padding: 10px; }
  .section { padding-top: 40px; }
  .section-alt { margin-top: 36px; padding-bottom: 40px; }
  .trust-row, .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { padding-top: 36px; }
  .card { padding: 18px 16px; }
  .summary { padding: 18px 16px; }
  .catalog-head { flex-direction: column; align-items: flex-start; }
  .toolbar { padding: 8px; }
  .sort label { display: none; }
  .stepper li { padding: 6px 12px 6px 6px; font-size: .8rem; }
  .checkout-head { flex-direction: column; align-items: flex-start; }
  .choice { padding: 12px; gap: 10px; }
  .choice-logos { display: none; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .thanks { flex-direction: column; text-align: center; }
  .bank-data { grid-template-columns: 1fr; gap: 2px; }
  .bank-data dd { margin-bottom: 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .auth-card { padding: 24px 18px; }
  .copy-field { flex-direction: column; align-items: stretch; }
  .input-inline { min-width: 0; width: 100% !important; }
  .order-card-body .link { display: none; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .tracker { padding: 14px 8px; }
  .tracker li { min-width: 86px; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .trust, .footer, .wa-float, .toast, .order-actions, .pay-box, .account-nav { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
