/* =========================================================
   Tienda Kairos — estilos de la tienda
   ========================================================= */
:root {
  --brand: #0e1e45;
  --brand-2: #16306b;
  --accent: #ffc21a;
  --primary: #2563eb;
  --primary-hover: #1d4fd1;
  --primary-weak: #e3edfd;
  --success: #00a650;
  --success-weak: #e6f7ee;
  --warning: #f59e0b;
  --danger: #e5484d;
  --bg: #ededed;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.announcement { background: var(--accent); color: var(--brand); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 16px; }
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 12px 16px; }
.logo { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.search { position: relative; display: flex; max-width: 640px; width: 100%; }
.search input { flex: 1; border: 0; border-radius: 6px 0 0 6px; padding: 11px 14px; font-size: 15px; outline: none; background: #fff; color: var(--text); min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.search button { border: 0; background: #fff; border-left: 1px solid var(--border); border-radius: 0 6px 6px 0; padding: 0 14px; cursor: pointer; color: var(--muted); }
.search button:hover { color: var(--primary); }
.suggestions { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.suggestions a { display: flex; gap: 10px; align-items: center; padding: 9px 14px; color: var(--text); }
.suggestions a:hover, .suggestions a.active { background: var(--surface-2); text-decoration: none; }
.suggestions img, .suggestions .ph { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.suggestions .price { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.header-actions a { color: #fff; opacity: .92; white-space: nowrap; }
.header-actions a:hover { opacity: 1; text-decoration: none; }
.cart-link { position: relative; display: inline-flex; padding: 4px; }
.cart-badge { position: absolute; top: -4px; right: -8px; background: var(--accent); color: var(--brand); font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.header-nav { display: flex; gap: 20px; padding: 0 16px 10px; font-size: 14px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.header-nav a { color: rgba(255,255,255,.85); white-space: nowrap; }
.header-nav a:hover { color: #fff; text-decoration: none; }
.header-nav .hot { color: var(--accent); font-weight: 700; }
.user-menu { position: relative; }
.user-menu button { background: none; border: 0; color: #fff; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px 0; z-index: 70; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 16px; color: var(--text) !important; background: none; border: 0; cursor: pointer; font-size: 14px; opacity: 1 !important; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- Botones / formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; padding: 12px 20px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, opacity .15s; text-decoration: none !important; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--primary-weak); color: var(--primary); }
.btn-secondary:hover:not(:disabled) { background: #d3e3fc; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-weak); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid #cfd3da; border-radius: 6px; padding: 11px 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.field .hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.alert { padding: 12px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: #a4161a; }
.alert-success { background: var(--success-weak); color: #046c39; }
.alert-info { background: var(--primary-weak); color: #1e40af; }

/* ---------- Tarjetas y secciones ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; font-weight: 500; margin: 0; }
.section-head a { font-size: 14px; }

/* ---------- Banner ---------- */
.hero { position: relative; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.slides { display: flex; transition: transform .6s ease; }
.slide { min-width: 100%; padding: 48px 56px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, #2a4fa8 100%); }
.slide.promo { background: linear-gradient(120deg, #0b0b0f 0%, #1c1c26 55%, #3b2a00 100%); }
.slide .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.slide h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 900; margin: 6px 0 8px; letter-spacing: -1px; }
.slide h1 em { color: var(--accent); font-style: normal; }
.slide p { margin: 0 0 18px; opacity: .88; font-size: 17px; max-width: 560px; }
.slide .btn { align-self: flex-start; background: var(--accent); color: var(--brand); }
.slide .countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -1px; }
.benefit { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.benefit + .benefit { border-left: 1px solid var(--border); }
.benefit .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.benefit strong { display: block; font-size: 14px; }
.benefit span { font-size: 13px; color: var(--muted); }

.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; padding: 16px 8px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); font-size: 14px; text-align: center; transition: box-shadow .15s, transform .15s; }
.chip-cat:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.chip-cat .circle { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }

/* ---------- Productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.p-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s; position: relative; }
.p-card:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.p-card .img { aspect-ratio: 1; display: grid; place-items: center; border-bottom: 1px solid var(--border); background: #fff; padding: 12px; }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; }
.p-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.p-card .old { color: var(--muted); text-decoration: line-through; font-size: 13px; min-height: 18px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 24px; font-weight: 400; letter-spacing: -.3px; }
.price sup { font-size: 12px; top: -.7em; }
.off { color: var(--success); font-size: 14px; font-weight: 600; }
.free-ship { color: var(--success); font-size: 13px; font-weight: 600; }
.p-card .title { font-size: 14px; color: #333; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--brand); color: var(--accent); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #fff; border-radius: 6px; }
.out-of-stock { color: var(--danger); font-size: 13px; font-weight: 600; }

/* ---------- Búsqueda ---------- */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 24px auto; }
.filters h1 { font-size: 24px; text-transform: capitalize; word-break: break-word; }
.filters h3 { font-size: 15px; margin: 22px 0 10px; }
.filters ul { list-style: none; padding: 0; margin: 0; }
.filters li { margin: 7px 0; font-size: 14px; }
.filters li a { color: var(--text); }
.filters li a.on { font-weight: 700; color: var(--primary); }
.price-inputs { display: flex; gap: 6px; align-items: center; }
.price-inputs input { width: 90px; padding: 7px 8px; border: 1px solid #cfd3da; border-radius: 6px; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.toolbar select { border: 0; background: transparent; font-weight: 600; cursor: pointer; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination button { min-width: 38px; height: 38px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: var(--primary); font-weight: 600; }
.pagination button.on { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.pagination button:disabled { color: var(--muted); cursor: default; }
.empty { text-align: center; padding: 56px 24px; }
.empty h2 { font-weight: 500; }
.filters-toggle { display: none; }

/* ---------- Producto ---------- */
.breadcrumb { font-size: 14px; margin: 18px 0 12px; color: var(--muted); }
.breadcrumb a { color: var(--primary); }
.product-layout { display: grid; grid-template-columns: 1fr 380px; gap: 0; }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px; border-right: 1px solid var(--border); }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 3px; cursor: pointer; }
.thumbs button.on { border: 2px solid var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.main-img { aspect-ratio: 1; max-height: 520px; display: grid; place-items: center; width: 100%; }
.main-img img { max-height: 100%; object-fit: contain; }
.buy-box { padding: 24px; }
.buy-box .meta { font-size: 13px; color: var(--muted); }
.buy-box h1 { font-size: 22px; font-weight: 600; margin: 8px 0 12px; }
.buy-box .old { color: var(--muted); text-decoration: line-through; }
.buy-box .price { font-size: 36px; font-weight: 300; }
.promo-pill { display: inline-block; background: var(--brand); color: var(--accent); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; }
.installments { color: var(--success); font-size: 15px; margin: 4px 0 14px; }
.stock { font-weight: 600; margin: 18px 0 10px; }
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; }
.qty select { padding: 7px 10px; border-radius: 6px; border: 1px solid #cfd3da; background: #fff; }
.buy-box .btn { width: 100%; margin-bottom: 8px; }
.trust { margin-top: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 10px; }
.trust div { display: flex; gap: 8px; align-items: flex-start; }
.trust svg { flex-shrink: 0; color: var(--muted); }
.description { padding: 24px; border-top: 1px solid var(--border); grid-column: 1 / -1; }
.description h2 { font-size: 22px; font-weight: 500; }
.description .text { white-space: pre-line; color: #444; font-size: 16px; max-width: 820px; }

/* ---------- Carrito / checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; margin: 24px auto; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; display: grid; place-items: center; }
.cart-item .thumb img { max-height: 100%; object-fit: contain; }
.cart-item .t { color: var(--text); font-weight: 600; }
.cart-item .actions { display: flex; gap: 14px; font-size: 13px; margin-top: 6px; }
.cart-item .actions button { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; font-size: 13px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cfd3da; border-radius: 6px; }
.stepper button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--primary); font-size: 18px; cursor: pointer; }
.stepper button:disabled { color: #c3c7cf; cursor: default; }
.stepper span { min-width: 30px; text-align: center; font-size: 14px; }
.line-price { text-align: right; min-width: 110px; }
.line-price .old { font-size: 12px; color: var(--muted); text-decoration: line-through; display: block; }
.line-price strong { font-size: 18px; font-weight: 500; }
.summary { padding: 24px; position: sticky; top: 140px; }
.summary h2 { font-size: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary .row { display: flex; justify-content: space-between; margin: 10px 0; font-size: 15px; }
.summary .row.total { font-size: 20px; font-weight: 600; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.summary .green { color: var(--success); }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; margin-bottom: 10px; background: #fff; }
.option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.option input { margin-top: 3px; accent-color: var(--primary); }
.option strong { display: block; }
.option .muted { font-size: 13px; }
.option .right { margin-left: auto; font-weight: 600; white-space: nowrap; }
.step-title { font-size: 18px; margin: 0 0 14px; }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pay-logos span { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); color: #374151; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 40px auto; padding: 0 16px; width: 100%; }
.auth-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 20px; }
.auth-wrap .switch { text-align: center; margin-top: 18px; font-size: 14px; }

/* ---------- Resultado de compra ---------- */
.result { max-width: 720px; margin: 32px auto; }
.result-head { padding: 32px 24px; text-align: center; border-radius: var(--radius) var(--radius) 0 0; color: #fff; }
.result-head.ok { background: var(--success); }
.result-head.pending { background: var(--warning); }
.result-head.bad { background: var(--danger); }
.result-head .icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; margin: 0 auto 12px; }
.result-head h1 { font-size: 24px; }
.result-body { padding: 24px; }
.order-lines { list-style: none; padding: 0; margin: 0 0 16px; }
.order-lines li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-lines li .q { color: var(--muted); }
.order-lines li .amt { margin-left: auto; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.wa-box { background: #effaf2; border: 1px solid #c8efd3; border-radius: var(--radius); padding: 18px; margin-top: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wa-box p { margin: 0; flex: 1; min-width: 220px; font-size: 14px; }
.sim-box { border: 2px dashed var(--warning); background: #fffbeb; padding: 18px; border-radius: var(--radius); margin-bottom: 20px; }
.sim-box .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Mi cuenta ---------- */
.account { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin: 24px auto; align-items: start; }
.side-nav { padding: 8px 0; }
.side-nav button { display: block; width: 100%; text-align: left; padding: 12px 20px; border: 0; background: none; cursor: pointer; font-size: 15px; border-left: 3px solid transparent; }
.side-nav button.on { border-left-color: var(--primary); color: var(--primary); font-weight: 600; background: var(--surface-2); }
.order-card { border-bottom: 1px solid var(--border); padding: 18px 24px; }
.order-card:last-child { border-bottom: 0; }
.order-card .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.order-card .imgs { display: flex; gap: 6px; margin: 12px 0; }
.order-card .imgs > * { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 6px; padding: 3px; object-fit: contain; }
.order-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.pending { background: #fff4d6; color: #92590b; }
.badge.paid, .badge.preparing { background: var(--primary-weak); color: #1e40af; }
.badge.shipped { background: #ede9fe; color: #5b21b6; }
.badge.delivered { background: var(--success-weak); color: #046c39; }
.badge.cancelled, .badge.rejected, .badge.refunded { background: #fdecec; color: #a4161a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); margin-top: 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 28px 16px; }
.footer-grid h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; }
.footer-grid a { color: var(--muted); display: block; margin: 5px 0; }
.footer-bottom { border-top: 1px solid var(--border); padding: 14px 16px; text-align: center; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 40; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Toast / skeleton / spinner ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #1f2328; color: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .2s ease; }
.toast.error { background: #a4161a; }
.toast.success { background: #046c39; }
.toast a { color: var(--accent); font-weight: 700; margin-left: 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { height: 340px; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-layout { grid-template-columns: 1fr; }
  .gallery { border-right: 0; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .header-main { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .search { grid-column: 1 / -1; order: 3; max-width: none; }
  .header-actions .hide-sm { display: none; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .toolbar { justify-content: space-between; }
  .account { grid-template-columns: 1fr; }
  .side-nav { display: flex; overflow-x: auto; padding: 0; }
  .side-nav button { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .side-nav button.on { border-bottom-color: var(--primary); }
  .slide { padding: 32px 24px; min-height: 220px; }
  .cart-item { grid-template-columns: 56px 1fr; padding: 16px; }
  .cart-item .thumb { width: 56px; height: 56px; }
  .cart-item .stepper, .cart-item .line-price { grid-column: 2; justify-self: start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-card .body { padding: 10px 12px 14px; }
  .price { font-size: 20px; }
  .chip-cat { width: calc(33.33% - 8px); }
}
@media (max-width: 420px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--border); }
}
