/* Bipa Baterías — tienda online (mobile-first). Se carga después de styles.css */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.ov-lock { overflow: hidden; }
.shop-page [hidden] { display: none !important; }
button { -webkit-tap-highlight-color: transparent; }

.btn--line { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--grey); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--y); color: var(--ink); font: 800 11.5px/1 var(--f-head);
  box-shadow: 0 0 0 2px var(--white);
}
.badge--in { position: static; box-shadow: none; }
.badge--dark { background: var(--ink); color: var(--y); }
.cartbtn { position: relative; box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Encabezado de la tienda ---------- */
.shead { background: var(--ink); color: var(--white); padding: 14px 0 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-inv); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--white); text-underline-offset: 3px; }
.shead h1 { margin-top: 4px; font-size: clamp(24px, 6.6vw, 40px); max-width: 18ch; letter-spacing: -0.03em; }
.search { position: relative; margin-top: 14px; max-width: 640px; }
.search > .ico { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--ink); pointer-events: none; }
.search input {
  width: 100%; height: 54px; padding: 0 50px 0 46px; border: 2px solid var(--white); border-radius: var(--r);
  background: var(--white); color: var(--ink); font-size: 16px; /* 16px: iOS no hace zoom */
  appearance: none; -webkit-appearance: none;
}
.search input::placeholder { color: #767676; }
.search input:focus { outline: none; border-color: var(--y); box-shadow: 0 0 0 3px rgba(246,208,1,.35); }
.search input::-webkit-search-cancel-button { display: none; }
.search__x { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.search__x svg { width: 20px; height: 20px; }
.shead__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted-inv); }
.shead__hint button {
  min-height: 34px; padding: 0 12px; border: 1px solid #444; border-radius: 999px; background: none;
  color: var(--white); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.shead__hint button:hover { border-color: var(--y); color: var(--y); }

/* ---------- Tipo de vehículo (fijo) ---------- */
.vtabs { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 8px 14px -14px rgba(0,0,0,.5); }
.vtabs__in {
  display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--gut);
}
.vtabs__in::-webkit-scrollbar { display: none; }
.vtab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
  font: 700 14.5px/1 var(--f-head); cursor: pointer; scroll-snap-align: start; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.vtab svg { width: 24px; height: 24px; --white: #fff; }
.vtab small { font: 500 12.5px var(--f-body); color: var(--muted); }
.vtab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.vtab[aria-pressed="true"] svg { color: var(--y); --white: var(--ink); }
.vtab[aria-pressed="true"] small { color: #bdbdbd; }
.vtabs::after { content: ""; position: absolute; right: 0; top: 0; bottom: 1px; width: 28px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--white)); pointer-events: none; }

/* ---------- Resultados ---------- */
.shop { padding-top: 16px; padding-bottom: 48px; }
.toolbar { display: flex; align-items: center; gap: 8px; }
.toolbar__count { margin-right: auto; font: 500 14px/1.3 var(--f-body); letter-spacing: 0; color: var(--muted); }
.toolbar__count b { color: var(--ink); font-weight: 600; }
.tbtn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px;
  border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--white); color: var(--ink);
  font: 700 14px/1 var(--f-head); cursor: pointer;
}
.tbtn .ico { width: 18px; height: 18px; }
.sort select {
  height: 44px; max-width: 150px; padding: 0 30px 0 12px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center / 11px;
  font-size: 14px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
}

.achips { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.achips::-webkit-scrollbar { display: none; }
.achips:empty { display: none; }
.achip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 12px;
  border: 0; border-radius: 999px; background: var(--y); color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.achip svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: rgba(17,17,17,.12); }
.achip--clear { padding: 0 12px; background: none; text-decoration: underline; text-underline-offset: 3px; }

.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.prod {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.prod__img { display: block; background: var(--grey); padding: 12px 10px 6px; }
.prod__img svg, .prod__img img { width: 100%; height: auto; aspect-ratio: 200 / 140; object-fit: contain; }
.prod__img img { mix-blend-mode: multiply; }
.prod__flag { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 4px; background: var(--ink); color: var(--y); font: 700 10.5px/1.2 var(--f-head); letter-spacing: .04em; text-transform: uppercase; }
.prod__body { display: flex; flex-direction: column; flex: 1; padding: 10px 11px 11px; }
.prod__brand { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prod__name { margin-top: 2px; font-size: 16.5px; line-height: 1.15; letter-spacing: -0.02em; }
.prod__name a { text-decoration: none; }
.prod__name a::after { content: ""; position: absolute; inset: 0 0 56px 0; } /* toda la tarjeta abre el detalle */
.specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.specs span { padding: 2px 6px; border: 1.5px solid var(--ink); border-radius: 6px; font: 700 11.5px/1.3 var(--f-head); white-space: nowrap; }
.specs span.specs--soft { border-color: var(--line); color: var(--muted); }
.prod__fit { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod__price { margin-top: auto; padding-top: 10px; font: 800 19px/1.1 var(--f-head); letter-spacing: -0.03em; }
.prod__price small { font-size: 12px; letter-spacing: 0; margin-right: 2px; }
.prod__price--ask { font-size: 15px; letter-spacing: -0.01em; }
.prod__inc { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.prod__fit { margin-bottom: 12px; }
.prod__add { position: relative; z-index: 1; margin-top: auto; min-height: 44px; padding: 10px 8px; font-size: 14px; gap: 6px; }
.prod__add .ico { width: 18px; height: 18px; }
.prod__add.is-in { background: var(--ink); color: var(--white); }

.empty { margin-top: 14px; padding: 32px 20px; background: var(--grey); border-radius: var(--r-lg); text-align: center; }
.empty h3 { font-size: 20px; }
.empty p { margin-top: 8px; color: var(--muted); }
.empty__btns { display: grid; gap: 10px; margin-top: 18px; }
.shelp { margin-top: 28px; }

.sperks { background: var(--grey); padding: 36px 0; }
.sperks__in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.sperks li { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sperks svg { width: 30px; height: 30px; margin-bottom: 6px; color: var(--ink); }
.sperks b { font: 800 15px/1.2 var(--f-head); color: var(--ink); }
.footer--shop { padding-top: 0; }
.footer--shop .footer__legal { margin-top: 0; border-top: 0; padding-top: 22px; }
.footer--shop a { color: var(--white); text-underline-offset: 3px; display: inline-block; padding: 6px 0; }

/* ---------- Paneles (filtros, detalle, carrito) ---------- */
.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.scrim.is-on { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-direction: column; max-height: 92vh; max-height: 92dvh;
  background: var(--white); color: var(--ink); border-radius: 18px 18px 0 0;
  transform: translateY(102%); visibility: hidden;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility .32s;
}
.sheet.is-open { transform: none; visibility: visible; }
.sheet--product, .sheet--cart { height: 92vh; height: 92dvh; }
.sheet__head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px 8px 6px var(--gut); border-bottom: 1px solid var(--line); position: relative; }
.sheet__head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d0d0d0; }
.sheet__head h2 { font-size: 19px; margin-right: auto; }
.sheet__k { margin-right: auto; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px var(--gut) 20px; }
.sheet__foot {
  flex: none; display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white);
}

/* Filtros */
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none;
  font: 800 15.5px/1.2 var(--f-head);
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.fgroup[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fgroup__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 16px; }
.fgroup__opts--wide { grid-template-columns: 1fr; }
.fopt { position: relative; display: block; cursor: pointer; }
.fopt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fopt span {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 46px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: var(--r); font-size: 14.5px; font-weight: 500; line-height: 1.25;
  transition: border-color .15s, background-color .15s;
}
.fopt small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.fopt input:checked + span { border-color: var(--ink); background: var(--y); font-weight: 600; }
.fopt input:checked + span small { color: var(--ink); }
.fopt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.fopt input:disabled + span { opacity: .4; }
.fopt input:disabled { cursor: default; }

/* Detalle de producto */
.pd__img { margin: 8px 0 0; padding: 10px 40px 0; background: var(--grey); border-radius: var(--r-lg); }
.pd__img svg, .pd__img img { width: 100%; max-width: 320px; margin: 0 auto; height: auto; aspect-ratio: 200 / 140; object-fit: contain; }
.pd__img img { mix-blend-mode: multiply; }
.pd__brand { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd h2 { margin-top: 2px; font-size: clamp(24px, 7vw, 32px); }
.pd .specs { margin-top: 10px; gap: 6px; }
.pd .specs span { padding: 3px 9px; font-size: 13px; }
.pd__price { margin-top: 16px; font: 800 32px/1 var(--f-head); letter-spacing: -0.03em; }
.pd__price small { font-size: 16px; letter-spacing: 0; margin-right: 3px; }
.pd__price--ask { font-size: 22px; }
.pd__inc { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.pd__ticks { display: grid; gap: 8px; margin-top: 18px; padding: 14px; background: var(--grey); border-radius: var(--r); font-size: 14.5px; }
.pd__ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.pd__ticks svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.pd__t { margin-top: 22px; font: 800 15.5px var(--f-head); }
.pd__specs { margin: 8px 0 0; border-top: 2px solid var(--ink); }
.pd__specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pd__specs dt { color: var(--muted); }
.pd__specs dd { margin: 0; font-weight: 600; text-align: right; }
.pd__fit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd__fit li { padding: 5px 10px; background: var(--grey); border-radius: 6px; font-size: 13.5px; font-weight: 500; }
.pd__note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pd__ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-weight: 600; font-size: 14.5px; text-underline-offset: 3px; }
.pd__ask .ico { width: 20px; height: 20px; color: #128c4a; }

.stepper { display: inline-grid; grid-template-columns: 44px 34px 44px; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); height: 48px; }
.stepper button { display: grid; place-items: center; height: 100%; border: 0; background: none; cursor: pointer; color: var(--ink); }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { text-align: center; font: 800 16px var(--f-head); }
.sheet__foot .stepper { height: 56px; }

/* Carrito */
.cart__back { display: none; margin-left: -8px; }
.sheet--cart[data-step="form"] .cart__back { display: inline-grid; }
.cart__step { display: none; }
.sheet--cart[data-step="items"] .cart__step--items,
.sheet--cart[data-step="form"] .cart__step--form,
.sheet--cart[data-step="done"] .cart__step--done { display: block; }
.cart__foot { grid-template-columns: 1fr; }
.sheet--cart[data-step="items"] #cart-send, .sheet--cart[data-step="form"] #cart-next { display: none; }
.sheet--cart[data-step="done"] .cart__foot, .sheet--cart.is-empty .cart__foot { display: none; }
.cart__total { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; }
.cart__total b { font: 800 24px/1 var(--f-head); letter-spacing: -0.03em; }
.cart__total small { display: block; font: 400 12.5px var(--f-body); color: var(--muted); letter-spacing: 0; text-align: right; margin-top: 3px; }
.citems { display: grid; }
.citem { display: grid; grid-template-columns: 76px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem__img { grid-row: 1 / span 2; align-self: start; background: var(--grey); border-radius: var(--r); padding: 6px; }
.citem__img svg, .citem__img img { width: 100%; height: auto; aspect-ratio: 200 / 140; object-fit: contain; }
.citem__name { font: 800 15.5px/1.2 var(--f-head); }
.citem__name small { display: block; margin-top: 2px; font: 400 12.5px var(--f-body); color: var(--muted); }
.citem__del { grid-column: 3; grid-row: 1; width: 44px; height: 44px; margin: -8px -10px 0 0; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.citem__del svg { width: 20px; height: 20px; }
.citem__row { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.citem__row .stepper { height: 44px; grid-template-columns: 40px 30px 40px; }
.citem__price { font: 800 16px var(--f-head); letter-spacing: -0.02em; white-space: nowrap; }
.cart__note { margin-top: 14px; padding: 12px 14px; background: var(--grey); border-radius: var(--r); font-size: 13.5px; color: var(--muted); }
.sheet--cart.is-empty .cart__note, .sheet--cart.is-empty .citems { display: none; }
.cart__empty { display: none; padding: 48px 12px; text-align: center; color: var(--muted); }
.cart__empty svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--ink); }
.cart__empty b { color: var(--ink); font: 800 18px var(--f-head); }
.cart__empty .btn { margin-top: 18px; }
.sheet--cart.is-empty .cart__empty { display: block; }

.cform { padding-top: 12px; }
.cform__intro { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.cform__intro b { color: var(--ink); }
.field { display: block; margin-bottom: 16px; }
.field > span, .opts legend { display: block; margin-bottom: 6px; padding: 0; font: 700 14px/1.3 var(--f-head); }
.field small, .check small { font: 400 12.5px var(--f-body); color: var(--muted); }
.field input, .field textarea, .field select {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #bdbdbd; border-radius: var(--r);
  background: var(--white); font-size: 16px; line-height: 1.4; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; }
.field select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; padding-right: 38px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(246,208,1,.6); }
.cform.was-sent :invalid { border-color: #c62828; }
.opts { margin: 0 0 16px; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt > span { display: block; min-height: 50px; padding: 10px 14px 10px 44px; border: 1.5px solid #bdbdbd; border-radius: var(--r); position: relative; font-size: 14.5px; line-height: 1.3; }
.opt > span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); }
.opt b { display: block; font-weight: 600; }
.opt small { color: var(--muted); font-size: 12.5px; }
.opt input:checked + span { border-color: var(--ink); background: #fefacf; }
.opt input:checked + span::before { background: radial-gradient(circle, var(--ink) 0 4.5px, var(--y) 5px); }
.opt input:focus-visible + span { outline: 3px solid var(--y); outline-offset: 2px; }
.opts--inline > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts--inline .opt > span { display: flex; align-items: center; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--grey); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.check small { display: block; font-weight: 400; }

.done { padding: 36px 4px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.done__ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--wa); color: var(--white); }
.done__ico svg { width: 38px; height: 38px; }
.done h3 { font-size: 22px; }
.done p { color: var(--muted); max-width: 34ch; }
.done p b { color: var(--ink); }
.done .btn { margin-top: 4px; }

/* Aviso al agregar */
.toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom)); z-index: 64;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--ink); color: var(--white); border-radius: var(--r); font-size: 14.5px; font-weight: 500;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.5);
  transform: translateY(20px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
}
.toast.is-on { transform: none; opacity: 1; visibility: visible; }
.toast button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--y); color: var(--ink); font: 700 14px var(--f-head); cursor: pointer; }

/* Barra fija en celular */
.dock--shop { grid-template-columns: 1fr 1.4fr; }
.dock--shop button, .dock--shop a {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: var(--dock-h);
  border: 0; font: 800 15px var(--f-head); cursor: pointer; text-decoration: none;
}
.dock__filter { background: var(--y); color: var(--ink); }


/* =================== ≥ 480px =================== */
@media (min-width: 480px) {
  .empty__btns { grid-auto-flow: column; justify-content: center; }
  .prod__name { font-size: 18px; }
  .prod__price { font-size: 21px; }
}

/* =================== ≥ 768px =================== */
@media (min-width: 768px) {
  .shead { padding: 22px 0 28px; }
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .prod__img { padding: 16px 18px 8px; }
  .prod__body { padding: 14px 16px 16px; }
  .prod__name { font-size: 20px; }
  .prod__fit { font-size: 13px; }
  .specs span { font-size: 12.5px; padding: 3px 8px; }
  .prod__price { font-size: 24px; }
  .prod__name a::after { bottom: 68px; }
  .sperks { padding: 52px 0; }
  .sperks__in { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .toast { left: auto; right: 24px; width: 380px; }
  .sort select { max-width: none; }

  /* Paneles centrados / laterales */
  .sheet--cart { left: auto; top: 0; width: 460px; height: auto; max-height: none; border-radius: 0; transform: translateX(102%); }
  .sheet--product { left: 50%; right: auto; bottom: auto; top: 50%; width: min(920px, calc(100vw - 48px)); height: auto; max-height: min(720px, calc(100vh - 48px)); border-radius: var(--r-lg); transform: translate(-50%, -46%); opacity: 0; transition: transform .25s, opacity .25s, visibility .25s; }
  .sheet--product.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet--cart .sheet__head::before, .sheet--product .sheet__head::before { display: none; }
  .sheet--product .sheet__body { padding: 20px 28px 24px; }
  .pd { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
  .pd__img { margin: 0; padding: 28px 24px 12px; position: sticky; top: 0; }
  .pd__brand { margin-top: 0; }
  .sheet--product .sheet__foot { grid-template-columns: auto minmax(0, 320px); justify-content: end; padding: 14px 28px; }
}

/* =================== ≥ 1024px =================== */
@media (min-width: 1024px) {
  .vtabs { top: var(--header-h); }
  .vtabs::after { display: none; }
  .vtabs__in { padding-top: 12px; padding-bottom: 12px; }
  .shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
  .tbtn--filter { display: none; }
  .toast { bottom: 24px; }

  /* Filtros como columna fija */
  .filters.sheet {
    position: static; z-index: 1; left: auto; right: auto; bottom: auto;
    max-height: none; overflow: visible; border-radius: 0; transform: none; visibility: visible; transition: none;
  }
  .filters .sheet__head { min-height: 0; padding: 0 0 10px; border-bottom: 2px solid var(--ink); }
  .filters .sheet__head::before, .filters .sheet__head .iconbtn, .filters #filters-apply { display: none; }
  .filters .sheet__head h2 { font-size: 17px; }
  .filters .sheet__body { padding: 0; overflow: visible; }
  .filters .sheet__foot { grid-template-columns: 1fr; padding: 12px 0 0; border-top: 0; }
  .filters .sheet__foot .btn { min-height: 44px; font-size: 14px; }
  .fgroup__opts { grid-template-columns: 1fr; gap: 6px; }
  .fopt span { min-height: 42px; }
  .filters:not(.has-active) .sheet__foot { display: none; }
}

@media (min-width: 1240px) {
  .pgrid { grid-template-columns: repeat(4, 1fr); }
}
