/* PAP STORE — mismo lenguaje visual que el main site (Inter, pill, esquinas redondeadas) */
/* ===== Inter: COPIA de fonts/inter.css (rutas a ../fonts/) ===== velocidad (09-11-2026): antes con @import, que
   encadenaba HTML -> pap-shop.css -> inter.css (una vuelta más de red antes del primer pintado de toda la tienda).
   Si cambia fonts/inter.css, cambiar también esto (lo comprueba tests/unit/saltos.test.ts) y subir CSS_VERSION */
/* Inter (variable 400-800), autoalojada: sin peticiones a Google Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reserva con las medidas de Inter (05-11-2026, saltos al cargar): mientras llega inter-latin.woff2 el texto se pinta
   con Arial (o Liberation Sans/Arimo, que miden igual) ajustada a lo que ocupa Inter: mismo ancho medio por peso
   (size-adjust, medido en Chrome con un texto EN/ES/FR) y la misma altura de línea (ascent/descent de Inter,
   1984/494 de 2048, divididos por el size-adjust). Así, cuando cambia a Inter, las líneas no se parten distinto
   y lo de debajo no se mueve. Va DETRÁS de 'Inter' en las pilas (pap-type.css, pap-shop.css): con Inter cargada
   no pinta nada. Solo latín básico y los signos que Inter tiene seguro: el resto sigue cayendo donde caía. */
@font-face { font-family: 'Inter Fallback'; font-style: normal; font-weight: 100 449; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); size-adjust: 105.24%; ascent-override: 92.05%; descent-override: 22.92%; line-gap-override: 0%; unicode-range: U+0000-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: 'Inter Fallback'; font-style: normal; font-weight: 450 549; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'); size-adjust: 106.16%; ascent-override: 91.25%; descent-override: 22.72%; line-gap-override: 0%; unicode-range: U+0000-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: 'Inter Fallback'; font-style: normal; font-weight: 550 649; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 100.93%; ascent-override: 95.98%; descent-override: 23.90%; line-gap-override: 0%; unicode-range: U+0000-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: 'Inter Fallback'; font-style: normal; font-weight: 650 749; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 101.78%; ascent-override: 95.18%; descent-override: 23.70%; line-gap-override: 0%; unicode-range: U+0000-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: 'Inter Fallback'; font-style: normal; font-weight: 750 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 102.84%; ascent-override: 94.20%; descent-override: 23.45%; line-gap-override: 0%; unicode-range: U+0000-017F, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
/* ===== fin de la copia de fonts/inter.css ===== */
/* SKU y referencias de la tienda (Nico, 17-11-2026): Archivo Narrow 500, solo latin, autoalojada como Inter */
@font-face {
  font-family: 'PAP SKU';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/archivo-narrow-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #F0F0F3;
  --bg-2: #F5F5F7;
  --card: #fff;
  --ink: #141412;
  --dark: #0C0C0D;
  --dark-2: #141416;
  --hdr: #4A4E54;   /* cabecera de la tienda: gris oscuro (Nico, 16-11-2026: mas claro que el antracita #2E3135); blanco 8.4:1 */
  --hdr-2: #4A4E54; /* desplegables de la cabecera: el mismo gris que la barra (Nico, 16-11-2026) */
  --hdr-red: #FF3B47; /* el rojo del menú abierto/activo de la web principal (Header.astro); el hover, #E30613 como alli */
  --red: #E30613;
  --red-d: #C00511;
  --muted: #6B6B66;
  --sub: #141412;
  --line: rgba(20,20,18,0.14);
  --line-soft: rgba(20,20,18,0.08);
  --wline: rgba(255,255,255,0.14);
  --r: 22px;
  --r-md: 18px;
  --r-sm: 14px;
  --bar: 72px;
}
* { box-sizing: border-box; }
/* Safari de iPhone pinta en azul los botones y desplegables sin color propio; Chrome y el ordenador, en negro.
   :where() no pesa nada: cualquier color puesto en la hoja gana, y lo que no tiene color queda negro en todos. */
:where(button, select) { color: #000; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* una sola sans en toda la tienda, igual que el main site */
body * { font-family: 'Inter', 'Inter Fallback', -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif !important; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; }
img { max-width: 100%; }
p { line-height: 1.65; }

/* micro-etiquetas tecnicas (equivalen a la mono del main site); el color lo pone cada uso */
.mono { font-weight: 500; }
.display { font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

/* ---------- HEADER ---------- */
.pap-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--hdr);
  border-bottom: 1px solid var(--wline);
}
.pap-header .bar { display: flex; align-items: stretch; min-height: var(--bar); }
.pap-header .logo-link {
  display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none;
  padding: 0 clamp(16px, 2.2vw, 32px);
}
.pap-header .logo-link img { height: 42px; width: auto; display: block; }
.pap-header .logo-link .store-tag {
  font-weight: 700; font-size: 15px; line-height: 1; color: #fff;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.3);
}
.pap-nav { display: flex; align-items: stretch; flex: 1; gap: clamp(4px, 0.8vw, 14px); padding: 0 6px; }
.pap-nav .nav-item { position: relative; display: flex; align-items: center; }
.pap-nav .nav-item > a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: #F2F1ED; text-decoration: none; padding: 8px 6px;
  white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent;
}
.pap-nav .nav-item.open > a { color: var(--hdr-red); }
.pap-nav .nav-item > a:hover { color: #E30613; }
.pap-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--hdr-2); border-radius: 0 0 16px 16px; padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  z-index: 300; min-width: 250px; max-height: calc(100vh - 140px); overflow-y: auto;
}
.pap-nav .nav-item.open .dropdown { display: block; }
.pap-nav .dropdown.mega { display: none; column-count: 4; column-gap: 0; min-width: 940px; }
.pap-nav .nav-item.open .dropdown.mega { display: block; }
.pap-nav .dropdown a {
  display: block; break-inside: avoid; padding: 11px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: #F2F1ED; text-decoration: none;
}
.pap-nav .dropdown a:hover { color: #fff; background: rgba(227,6,19,0.5); }
/* ENGINE SPARE PARTS / ACCESORIES: una columna por grupo, centrado bajo la barra */
.pap-nav .dropdown.mega.acc-mega { column-count: auto; position: fixed; left: 50vw; top: var(--bar); transform: translateX(-50%); width: max-content; max-width: 96vw; overflow-x: auto; }
.pap-nav .nav-item.open .dropdown.mega.acc-mega { display: flex; align-items: flex-start; gap: 4px; }
.pap-nav .dropdown.acc-mega .dd-group { flex: 1 1 auto; min-width: 150px; padding-bottom: 4px; }
.pap-nav .dropdown.acc-mega .dd-group + .dd-group { border-left: 1px solid rgba(255,255,255,0.1); }
.pap-nav .dropdown.acc-mega .dd-group a { white-space: nowrap; font-size: 12.5px; }
.pap-nav .dropdown .dd-group { break-inside: avoid; padding-bottom: 4px; }
.pap-nav .dropdown .dd-head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hdr-red); padding: 13px 16px 7px;
}
.pap-nav .dropdown .dd-group a { color: #F2F1ED; }

.pap-search { position: relative; display: flex; align-items: center; padding: 0 8px; min-width: 0; }
.pap-search input {
  font-size: 12.5px; font-weight: 500; color: #141412;
  background: #fff; border: 1px solid transparent; border-radius: 999px;
  padding: 11px 18px; width: clamp(120px, 15vw, 280px); max-width: 100%; outline: none;
}
.pap-user, .pap-cart-btn { flex: none; }
/* buscador en blanco con letra negra (Nico, 13-11-2026); el foco, con el anillo rojo de los buscadores de la web */
.pap-search input::placeholder { color: #6B6B66; opacity: 1; }
.pap-search input:focus { box-shadow: 0 0 0 2px rgba(227,6,19,0.55); }
.pap-search .results {
  display: none; position: absolute; top: calc(100% - 16px); right: 8px; left: 8px;
  background: #fff; border-radius: 16px; padding: 8px; z-index: 400;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  max-height: 420px; overflow-y: auto;
}
.pap-search .results a {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: 12.5px; color: #141412; text-decoration: none;
}
.pap-search .results a:hover { background: #E30613; color: #fff; }
.pap-search .results .sku { font-size: 11px; font-weight: 600; color: var(--red); white-space: nowrap; }
.pap-search .results a:hover .sku { color: #fff; }

/* ---------- USUARIO ---------- */
.pap-user { position: relative; display: flex; align-items: center; }
.pap-user .u-btn {
  display: flex; align-items: center; gap: 8px; color: #F2F1ED; text-decoration: none;
  padding: 0 12px; height: 100%;
}
.pap-user .u-btn svg { width: 21px; height: 21px; }
.pap-user .u-btn:hover { color: #E30613; }
.pap-user .u-name { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; }
.pap-user .u-drop {
  display: none; position: absolute; top: calc(100% + 2px); right: 0; z-index: 300;
  background: var(--hdr-2); border-radius: 16px; padding: 8px; min-width: 170px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.pap-user.open .u-drop { display: block; }
.pap-user .u-drop a {
  display: block; padding: 11px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: #F2F1ED; text-decoration: none;
}
.pap-user .u-drop a:hover { color: #fff; background: rgba(227,6,19,0.5); }

.pap-cart-btn {
  display: flex; align-items: center; align-self: center; gap: 10px; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; background: var(--red); border-radius: 999px;
  padding: 12px 22px; margin: 0 clamp(12px, 2vw, 28px) 0 4px;
}
.pap-cart-btn:hover { background: var(--red-d); }
.pap-cart-btn .count {
  background: #fff; color: var(--red); border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; min-width: 22px; text-align: center;
}
.header-spacer { height: var(--bar); }

/* ---------- LAYOUT ---------- */
main { flex: 1; }
.wrap { padding-left: clamp(16px, 2.5vw, 32px); padding-right: clamp(16px, 2.5vw, 32px); }
.section-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: clamp(28px, calc(4*var(--vh,1vh)), 46px) clamp(16px, 2.5vw, 32px) 18px;
}
.section-head .num { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.section-head h2 { font-size: clamp(20px, 2.4vw, 32px); line-height: 1; margin: 0; text-transform: uppercase; }
.section-head .right {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1px solid rgba(20,20,18,0.25); border-radius: 999px; padding: 9px 18px;
}
.section-head .right:hover { color: var(--red); border-color: var(--red); }

.crumbs { font-size: 12px; font-weight: 500; color: var(--muted); padding: 22px clamp(16px, 2.5vw, 32px) 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; text-decoration: none; background: var(--ink); border-radius: 999px;
  padding: 14px 30px; border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(20,20,18,0.35); padding: 13px 26px; }
.btn.ghost:hover { color: var(--red); border-color: var(--red); background: transparent; }
.btn.small { font-size: 13px; padding: 10px 20px; }

/* pastilla de etiqueta (mismo gesto que los tags del main site) */
.chip {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); background: rgba(227,6,19,0.08); border-radius: 999px; padding: 7px 14px;
}

/* ---------- CARDS / GRIDS ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; padding: 6px clamp(16px, 2.5vw, 32px) 0;
}
.prod-card {
  background: var(--card); border-radius: var(--r-md); border: 1px solid transparent;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit; position: relative;
  transition: transform .25s cubic-bezier(0.22,1,0.36,1), box-shadow .25s;
}
.prod-card { box-shadow: 0 2px 4px rgba(20,20,18,0.04), 0 10px 24px rgba(20,20,18,0.06); }
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(20,20,18,0.05), 0 20px 38px rgba(20,20,18,0.13); }
.prod-card .imgbox { height: 190px; padding: 14px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--r-sm); }
.prod-card .imgbox img { width: 100%; height: 100%; object-fit: contain; }
/* Tarjetas de producto (Nico, 17-11-2026, estilo Duotone): tarjetas con esquinas rectas; la foto ocupa casi todo su marco
   (4:3, margen pequeno y regular); con el raton en cualquier parte de la tarjeta el marco se pone gris oscuro y el
   producto se amplia (puede recortarse un poco por los bordes del marco); el resto de la tarjeta no se mueve */
.prod-card, .prod-card .imgbox { border-radius: 0; }
.prod-card .imgbox { height: auto; aspect-ratio: 4 / 3; padding: 8px; transition: background-color .35s ease; }
.prod-card .imgbox { margin: -17px -17px 0; } /* el marco a sangre: hasta los bordes de arriba y de los lados de la tarjeta (padding + 1 px del borde transparente) */
@media (max-width: 640px) { .prod-card .imgbox { margin: -13px -13px 0; } }
@media (hover: hover) and (pointer: fine) {
  .prod-card:hover .imgbox { background: var(--card-hover-bg, #2F3237); }
  .prod-card:hover { transform: none; } /* la tarjeta queda quieta: solo cambia la foto */
}
/* sombra que sigue el contorno del producto (PNG transparente) y zoom ligero al pasar el raton, sin salirse del marco */
.prod-card .imgbox { overflow: hidden; }
.prod-card .imgbox img { filter: drop-shadow(0 6px 10px rgba(20,20,18,0.18)); transition: transform .45s cubic-bezier(0.22,1,0.36,1), filter .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .prod-card:hover .imgbox img { transform: scale(1.11); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45)) drop-shadow(0 0 14px rgba(255,255,255,0.10)); }
}
/* Kit chasis y Kit paramotor (categoria FRAME KIT) y opciones del configurador: tarjeta de siempre (Nico, 17-11-2026) */
.prod-grid-clasica .prod-card { border-radius: var(--r-md); }
.prod-grid-clasica .prod-card .imgbox { height: 190px; aspect-ratio: auto; padding: 14px; margin: 0; border-radius: var(--r-sm); overflow: visible; }
.prod-grid-clasica .prod-card .imgbox img { filter: none; transition: none; }
@media (hover: hover) and (pointer: fine) {
  .prod-grid-clasica .prod-card:hover { transform: translateY(-3px); }
  .prod-grid-clasica .prod-card:hover .imgbox { background: #fff; }
  .prod-grid-clasica .prod-card:hover .imgbox img { transform: none; filter: none; }
}
@media (max-width: 640px) {
  .prod-grid-clasica .prod-card { border-radius: var(--r-sm); }
  .prod-grid-clasica .prod-card .imgbox { height: 110px; margin: 0; }
}
@media (min-width:700px) and (max-width:1366px) and (orientation:portrait) and (hover:none) and (pointer:coarse) {
  .prod-grid-clasica .prod-card .imgbox { height: clamp(190px, 24vw, 240px); }
}
.prod-card .name { font-size: 13.5px; font-weight: 700; text-transform: uppercase; line-height: 1.35; flex-grow: 1; overflow-wrap: anywhere; }
.prod-card, .part-row .info, .pin-pop { overflow-wrap: anywhere; min-width: 0; }
.prod-card .sku { font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
/* SKU y referencias (tarjetas, ficha, buscador, despieces, carrito, pedido, cuenta): Archivo Narrow 500 con tracking ligero */
.prod-card .sku, #p-sku, .pap-search .results .sku, .part-row .psku, .pin-pop .pp-sku, .cart-line .ref, .sum-line .n .ref, .sku-ref {
  font-family: 'PAP SKU', 'Arial Narrow', sans-serif !important; font-weight: 500 !important; letter-spacing: 1.5px !important;
}
.prod-card .price { font-size: 16px; font-weight: 700; }
.prod-card .btn { display: block; width: 100%; box-sizing: border-box; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 12px 14px; }
.prod-card .price .old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 12.5px; margin-right: 8px; }
.prod-card .price .vat { font-size: 11px; color: var(--muted); font-weight: 500; }
.sale-flag {
  position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;   /* siempre encima de la foto (la foto lleva filter/transform y se pintaba encima, 19-11-2026) */
}
/* descuento web (19-11-2026): carrito y checkout. Precio de lista tachado, «−15%» en el rojo de la marca */
.dto-col { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dto-old { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 12px; margin-right: 6px; }
.dto-col .dto-old { margin-right: 0; }
.dto-pct { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 7px; margin-right: 6px; vertical-align: 1px; }
.dto-unit { display: flex; align-items: center; flex-wrap: wrap; font-size: 12px; margin: 4px 0 2px; color: var(--ink); }
.dto-ahorro, .cart-summary .small b.dto-ahorro { color: var(--red); }

/* ---------- FICHA TECNICA ---------- */
.spec-row {
  background: var(--card); border-radius: var(--r-sm); padding: 13px 16px; margin-bottom: 6px;
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.spec-row .k { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.spec-row .v { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- FORMULARIOS ---------- */
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--sub); margin: 0 0 7px; text-transform: uppercase; }
.field label .req { color: var(--red); }
.field select, .field input, .field textarea {
  width: 100%; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; outline: none;
}
.field textarea { border-radius: var(--r-sm); }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--red); }
.field { margin-bottom: 16px; }

/* ---------- QTY ---------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 38px; background: none; border: none; cursor: pointer; font-size: 16px; color: var(--ink); }
.qty button:hover { color: var(--red); }
.qty input { width: 44px; text-align: center; border: none; outline: none; font-size: 14px; font-weight: 600; background: none; }
/* el - y el + se dibujan con lineas (no con el caracter) para que queden exactamente centrados (Nico, 05-11-2026);
   el boton conserva su texto para lectores de pantalla. Primer boton = menos, ultimo = mas */
.qty button { position: relative; overflow: hidden; text-indent: -999px; }   /* el caracter queda fuera; el alto no cambia */
.qty button::before, .qty button:last-of-type::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px;
  background: currentColor; border-radius: 1px;
}
.qty button:last-of-type::after { transform: rotate(90deg); }
.cfg-bar .qty button::before, .cfg-bar .qty button:last-of-type::after { width: 11px; height: 2px; margin: -1px 0 0 -5.5px; }

/* ---------- TOAST ---------- */
#pap-toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--dark-2); color: #F2F1ED; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 15px 26px; opacity: 0; transform: translateY(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transition: opacity .3s, transform .3s; pointer-events: none; max-width: 380px;
  display: flex; align-items: center; gap: 16px;
}
#pap-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#pap-toast a { color: #FF3B47; font-weight: 700; text-decoration: none; white-space: nowrap; }
#pap-toast a:hover { text-decoration: underline; }

/* ---------- FOOTER (mismo que el main site) ---------- */
.pap-footer { background: var(--dark); color: #F2F1ED; padding: clamp(36px, calc(5*var(--vh,1vh)), 56px) 0 0; margin-top: clamp(40px, calc(6*var(--vh,1vh)), 72px); }
.pap-footer .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(28px, 4vw, 56px);
  max-width: 1240px; margin: 0 auto clamp(28px, calc(4*var(--vh,1vh)), 44px); padding: 0 clamp(16px, 2.5vw, 32px);
}
.pap-footer .col { display: flex; flex-direction: column; gap: 11px; }
.pap-footer .ft-title { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: #FF3B47; margin-bottom: 6px; }
.pap-footer a, .pap-footer p, .pap-footer .txt { font-size: 13.5px; line-height: 1.6; color: rgba(242,241,237,0.7); text-decoration: none; margin: 0; }
.pap-footer a:hover { color: #fff; }
.pap-footer .soft { font-size: 13px; color: rgba(242,241,237,0.55); }
.pap-footer .social { display: flex; gap: 10px; flex-wrap: wrap; }
.pap-footer .social a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0; color: rgba(242,241,237,0.75);
  border: 1px solid rgba(242,241,237,0.25); border-radius: 50%;
}
.pap-footer .social a:hover { color: #fff; border-color: #fff; }
.pap-footer .news { display: flex; margin-top: 6px; max-width: 300px; }
.pap-footer .news input {
  font-size: 12.5px; color: #F2F1ED; background: rgba(255,255,255,0.07); border: none;
  border-radius: 999px 0 0 999px; padding: 11px 18px; flex: 1; min-width: 0; outline: none;
}
.pap-footer .news input::placeholder { color: rgba(242,241,237,0.7); }
.pap-footer .news button {
  font-size: 12.5px; font-weight: 600; color: #fff; background: var(--red); border: none;
  border-radius: 0 999px 999px 0; padding: 11px 18px; cursor: pointer;
}
.pap-footer .news button:hover { background: var(--red-d); }
.pap-footer .strong { font-weight: 600; color: #F2F1ED; }
.pap-footer .ft-addr-m { display: none; }
.pap-footer .rule { height: 1px; background: rgba(242,241,237,0.16); margin: 8px 0; max-width: 240px; }
.pap-footer .bottom-out { border-top: 1px solid rgba(242,241,237,0.16); }
.pap-footer .bottom {
  max-width: 1240px; margin: 0 auto; padding: 18px clamp(16px, 2.5vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pap-footer .bottom span { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: rgba(242,241,237,0.68); }
.pap-footer .bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.pap-footer .bottom .links a { font-size: 12px; color: rgba(242,241,237,0.68); }

/* botones de idioma del menu hamburguesa (ShopHeader.astro): solo se ven con el menu de tablet y movil */
.pap-nav-lang { display: none; gap: 8px; padding: 12px 20px 4px; }
.pap-nav-lang a {
  padding: 9px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.2;
  color: #F2F1ED; text-decoration: none; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
}
.pap-nav-lang a[aria-current] { color: #FF3B47; border-color: var(--red); }

.pap-burger {
  display: none; background: none; border: none; color: #F2F1ED;
  font-size: 22px; line-height: 1; padding: 0 16px; cursor: pointer;
}

@media (max-width: 1180px) {
  :root { --bar: 60px; }
  .pap-header .logo-link img { height: 36px; }
}
@media (max-width: 1080px) {
  .pap-nav .dropdown.mega { column-count: 2; min-width: 520px; }
}
/* cabecera de la tienda: menu hamburguesa en cuanto el buscador se quedaria por debajo de ~120 px (Nico, 05-11-2026;
   medido con el montaje: 1340 px en ingles, 1436 en espanol (a 1440 el buscador aun mide 127 px) y 1490 en frances). Mismas reglas que la de 1024 px. */
@media (max-width: 1340px) {
  html[lang="en"] { --bar: 52px; }
  html[lang="en"] .pap-burger { display: block; }
  html[lang="en"] .pap-header .logo-link { padding: 0 14px; }
  html[lang="en"] .pap-header .logo-link img { height: 28px; }
  html[lang="en"] .pap-header .logo-link .store-tag { font-size: 13px; padding-left: 10px; }
  html[lang="en"] .pap-search { flex: 1; }
  html[lang="en"] .pap-search input { width: 100%; min-width: 0; }
  html[lang="en"] .pap-cart-btn { padding: 10px 16px; margin: 0 6px; }
  html[lang="en"] .pap-user .u-name { display: none; }
  html[lang="en"] .pap-user .u-btn { padding: 0 8px; }
  html[lang="en"] .pap-nav { display: none; }
  html[lang="en"] .pap-header.nav-open .pap-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--hdr); border-top: 1px solid var(--wline);
    max-height: calc(100vh - var(--bar)); overflow-y: auto; padding: 8px 0 16px;
  }
  html[lang="en"] .pap-nav .nav-item { display: block; }
  html[lang="en"] .pap-nav .nav-item > a { display: block; padding: 15px 20px; font-size: 14px; border-bottom: none; }
  html[lang="en"] .pap-nav .dropdown, html[lang="en"] .pap-nav .dropdown.mega, html[lang="en"] .pap-nav .dropdown.mega.acc-mega {
    position: static; transform: none; width: 100%; max-width: 100%; min-width: 0;
    border-radius: 0; box-shadow: none; background: var(--hdr); /* el mismo gris que la barra */
    column-count: 1; max-height: none; overflow: visible; padding: 4px 8px;
  }
  html[lang="en"] .pap-nav .nav-item.open .dropdown.mega.acc-mega { display: block; }
  html[lang="en"] .pap-nav .dropdown.acc-mega .dd-group { min-width: 0; padding-bottom: 0; }
  html[lang="en"] .pap-nav .dropdown.acc-mega .dd-group + .dd-group { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  html[lang="en"] .pap-nav .dropdown.acc-mega .dd-group a { white-space: normal; }
  html[lang="en"] .pap-nav .pap-lang { display: none; }
  html[lang="en"] .pap-nav .pap-nav-lang { display: flex; }
}
@media (max-width: 1436px) {
  html[lang="es"] { --bar: 52px; }
  html[lang="es"] .pap-burger { display: block; }
  html[lang="es"] .pap-header .logo-link { padding: 0 14px; }
  html[lang="es"] .pap-header .logo-link img { height: 28px; }
  html[lang="es"] .pap-header .logo-link .store-tag { font-size: 13px; padding-left: 10px; }
  html[lang="es"] .pap-search { flex: 1; }
  html[lang="es"] .pap-search input { width: 100%; min-width: 0; }
  html[lang="es"] .pap-cart-btn { padding: 10px 16px; margin: 0 6px; }
  html[lang="es"] .pap-user .u-name { display: none; }
  html[lang="es"] .pap-user .u-btn { padding: 0 8px; }
  html[lang="es"] .pap-nav { display: none; }
  html[lang="es"] .pap-header.nav-open .pap-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--hdr); border-top: 1px solid var(--wline);
    max-height: calc(100vh - var(--bar)); overflow-y: auto; padding: 8px 0 16px;
  }
  html[lang="es"] .pap-nav .nav-item { display: block; }
  html[lang="es"] .pap-nav .nav-item > a { display: block; padding: 15px 20px; font-size: 14px; border-bottom: none; }
  html[lang="es"] .pap-nav .dropdown, html[lang="es"] .pap-nav .dropdown.mega, html[lang="es"] .pap-nav .dropdown.mega.acc-mega {
    position: static; transform: none; width: 100%; max-width: 100%; min-width: 0;
    border-radius: 0; box-shadow: none; background: var(--hdr); /* el mismo gris que la barra */
    column-count: 1; max-height: none; overflow: visible; padding: 4px 8px;
  }
  html[lang="es"] .pap-nav .nav-item.open .dropdown.mega.acc-mega { display: block; }
  html[lang="es"] .pap-nav .dropdown.acc-mega .dd-group { min-width: 0; padding-bottom: 0; }
  html[lang="es"] .pap-nav .dropdown.acc-mega .dd-group + .dd-group { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  html[lang="es"] .pap-nav .dropdown.acc-mega .dd-group a { white-space: normal; }
  html[lang="es"] .pap-nav .pap-lang { display: none; }
  html[lang="es"] .pap-nav .pap-nav-lang { display: flex; }
}
@media (max-width: 1490px) {
  html[lang="fr"] { --bar: 52px; }
  html[lang="fr"] .pap-burger { display: block; }
  html[lang="fr"] .pap-header .logo-link { padding: 0 14px; }
  html[lang="fr"] .pap-header .logo-link img { height: 28px; }
  html[lang="fr"] .pap-header .logo-link .store-tag { font-size: 13px; padding-left: 10px; }
  html[lang="fr"] .pap-search { flex: 1; }
  html[lang="fr"] .pap-search input { width: 100%; min-width: 0; }
  html[lang="fr"] .pap-cart-btn { padding: 10px 16px; margin: 0 6px; }
  html[lang="fr"] .pap-user .u-name { display: none; }
  html[lang="fr"] .pap-user .u-btn { padding: 0 8px; }
  html[lang="fr"] .pap-nav { display: none; }
  html[lang="fr"] .pap-header.nav-open .pap-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--hdr); border-top: 1px solid var(--wline);
    max-height: calc(100vh - var(--bar)); overflow-y: auto; padding: 8px 0 16px;
  }
  html[lang="fr"] .pap-nav .nav-item { display: block; }
  html[lang="fr"] .pap-nav .nav-item > a { display: block; padding: 15px 20px; font-size: 14px; border-bottom: none; }
  html[lang="fr"] .pap-nav .dropdown, html[lang="fr"] .pap-nav .dropdown.mega, html[lang="fr"] .pap-nav .dropdown.mega.acc-mega {
    position: static; transform: none; width: 100%; max-width: 100%; min-width: 0;
    border-radius: 0; box-shadow: none; background: var(--hdr); /* el mismo gris que la barra */
    column-count: 1; max-height: none; overflow: visible; padding: 4px 8px;
  }
  html[lang="fr"] .pap-nav .nav-item.open .dropdown.mega.acc-mega { display: block; }
  html[lang="fr"] .pap-nav .dropdown.acc-mega .dd-group { min-width: 0; padding-bottom: 0; }
  html[lang="fr"] .pap-nav .dropdown.acc-mega .dd-group + .dd-group { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  html[lang="fr"] .pap-nav .dropdown.acc-mega .dd-group a { white-space: normal; }
  html[lang="fr"] .pap-nav .pap-lang { display: none; }
  html[lang="fr"] .pap-nav .pap-nav-lang { display: flex; }
}
/* tablet y movil: menu hamburguesa */
@media (max-width:1024px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
  :root { --bar: 52px; }
  .pap-burger { display: block; }
  .pap-header .logo-link { padding: 0 14px; }
  .pap-header .logo-link img { height: 28px; }
  .pap-header .logo-link .store-tag { font-size: 13px; padding-left: 10px; }
  .pap-search { flex: 1; }
  .pap-search input { width: 100%; min-width: 0; }
  .pap-cart-btn { padding: 10px 16px; margin: 0 6px; }
  .pap-user .u-name { display: none; }
  .pap-user .u-btn { padding: 0 8px; }
  .pap-nav { display: none; }
  .pap-header.nav-open .pap-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--hdr); border-top: 1px solid var(--wline);
    max-height: calc(100vh - var(--bar)); overflow-y: auto; padding: 8px 0 16px;
  }
  .pap-nav .nav-item { display: block; }
  .pap-nav .nav-item > a { display: block; padding: 15px 20px; font-size: 14px; border-bottom: none; }
  /* los desplegables se integran como acordeon dentro del panel */
  .pap-nav .dropdown, .pap-nav .dropdown.mega, .pap-nav .dropdown.mega.acc-mega {
    position: static; transform: none; width: 100%; max-width: 100%; min-width: 0;
    border-radius: 0; box-shadow: none; background: var(--hdr); /* el mismo gris que la barra */
    column-count: 1; max-height: none; overflow: visible; padding: 4px 8px;
  }
  .pap-nav .nav-item.open .dropdown.mega.acc-mega { display: block; }
  .pap-nav .dropdown.acc-mega .dd-group { min-width: 0; padding-bottom: 0; }
  .pap-nav .dropdown.acc-mega .dd-group + .dd-group { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .pap-nav .dropdown.acc-mega .dd-group a { white-space: normal; }
  /* idioma: tres botones en vez del desplegable */
  .pap-nav .pap-lang { display: none; }
  .pap-nav .pap-nav-lang { display: flex; }
}
@media (max-width: 640px) {
  .pap-search input { font-size: 12px; padding: 10px 14px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 6px 12px 0; }
  .prod-card { padding: 12px; gap: 7px; border-radius: 0; }
  .prod-card .imgbox { height: 110px; }
  .prod-card .name { font-size: 12px; }
  #pap-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
/* moviles estrechos: la cabecera entera (logo, cuenta, carrito y menu) cabe en 375px */
@media (max-width: 480px) {
  .pap-header .logo-link { padding: 0 10px; gap: 8px; }
  .pap-header .logo-link img { height: 24px; }
  .pap-header .logo-link .store-tag { font-size: 11px; padding-left: 8px; letter-spacing: 0.1em; }
  .pap-user .u-btn { padding: 0 6px; }
  .pap-cart-btn { padding: 9px 12px; margin: 0 4px; gap: 6px; font-size: 12px; white-space: nowrap; }
  .pap-cart-btn .count { padding: 2px 6px; min-width: 20px; }
  .pap-burger { padding: 0 12px; min-width: 44px; }
  /* buscador: solo la lupa hasta que se escribe */
  .pap-search input { padding: 10px 8px; min-width: 44px; }
  .pap-search input:placeholder-shown { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141412' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 17px 17px; }
}

/* Movil y tablet: letra un punto mas pequena, como el resto de webs */
@media (max-width:1024px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
  .btn { font-size: 13px; }
  .field select, .field input { font-size: 13.5px; }
  .spec-row .v { font-size: 13px; }
  .pap-footer a, .pap-footer p, .pap-footer .txt { font-size: 13px; }
  #p-name { font-size: 15px !important; }
  #p-price { font-size: 20px !important; }
  #p-desc { font-size: 13px !important; }
}

/* ---------- PRODUCTO ANADIDO (arriba a la derecha) ---------- */
#pap-added {
  position: fixed; top: calc(var(--bar) + 12px); right: clamp(12px, 2vw, 28px); z-index: 1000;
  width: min(360px, calc(100vw - 24px)); box-sizing: border-box;
  background: #fff; color: #141412; border-radius: 12px; padding: 16px 18px 18px;
  box-shadow: 0 20px 50px rgba(20,20,18,0.22), 0 2px 6px rgba(20,20,18,0.08);
  opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .25s;
}
#pap-added.show { opacity: 1; transform: none; pointer-events: auto; }
#pap-added .hd { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(20,20,18,0.1); }
#pap-added .hd svg { width: 22px; height: 22px; flex: 0 0 auto; }
#pap-added .hd b { flex: 1; font-size: 14px; }
#pap-added .hd button { border: none; background: none; font-size: 22px; line-height: 1; color: #6B6B66; cursor: pointer; padding: 0 2px; }
#pap-added .it { padding: 12px 0 14px; }
#pap-added .nm { font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.35; }
#pap-added .op { font-size: 12px; color: #6B6B66; margin-top: 5px; line-height: 1.5; }
#pap-added .pr { font-size: 15px; font-weight: 700; margin-top: 8px; }
#pap-added .pr span { font-size: 11px; font-weight: 400; color: #6B6B66; letter-spacing: 0.08em; }
#pap-added .bt { display: flex; gap: 8px; }
#pap-added .bt .btn { flex: 1; text-align: center; padding: 12px 10px; font-size: 12.5px; }

/* movil (< 700 px): cabecera sin "STORE" junto al logo; el carrito es solo un icono con el numero de productos */
@media (max-width:699px), (max-width:1366px) and (orientation:portrait) and (hover:none) and (pointer:coarse) {
  .pap-header .logo-link .store-tag { display: none; }
  .pap-cart-btn { position: relative; align-self: stretch; background: none; padding: 0 10px; margin: 0 2px; border-radius: 0; color: #F2F1ED; }
  .pap-cart-btn:hover { background: none; color: var(--red); }
  .pap-cart-btn #cart-total { display: none; }
  .pap-cart-btn .cart-ic { display: block !important; width: 24px; height: 24px; }
  .pap-cart-btn .count { position: absolute; top: 50%; left: 50%; margin: -19px 0 0 4px; background: var(--red); color: #fff; font-size: 10px; line-height: 1; padding: 3px 4px; min-width: 17px; box-sizing: border-box; }
  /* botones rojos de las tarjetas ("Select options", "Add to cart"): mas finos y discretos, en minusculas con la
     primera en mayuscula */
  .prod-card .btn { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 8px 10px; line-height: 1.25; text-transform: lowercase; }
  .prod-card .btn::first-letter { text-transform: uppercase; }
  /* pie como el de la web en movil: sin newsletter ni "PAP worldwide"; tienda y atencion al cliente en una fila de
     dos columnas y la direccion a todo el ancho debajo */
  .pap-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .pap-footer .ft-co { grid-column: 1 / -1; }
  .pap-footer .ft-world, .pap-footer .news, .pap-footer .ft-news-x, .pap-footer .ft-addr { display: none; }
  .pap-footer .ft-addr-m { display: block; grid-column: 1 / -1; line-height: 1.7; border-top: 1px solid rgba(242,241,237,0.16); padding-top: 16px; margin-top: -8px; }
}

/* movil (Nico, 05-11-2026): los buscadores a 16 px para que Safari en iPhone no amplie la pagina al tocarlos */
@media (max-width:699px), (max-width:1366px) and (orientation:portrait) and (hover:none) and (pointer:coarse) {
  .pap-search input, #ref-search { font-size: 16px !important; }
}

/* tablet en vertical (táctil, 700–1366 px, Nico 05-11-2026): la organización del móvil ampliada. Márgenes laterales más
   amplios; cabecera y pie como en el móvil; tarjetas de producto de 2 en 2 como en el móvil, con el tamaño de ordenador */
@media (min-width:700px) and (max-width:1366px) and (orientation:portrait) and (hover:none) and (pointer:coarse) {
  .wrap { padding-left: clamp(24px, 5vw, 56px); padding-right: clamp(24px, 5vw, 56px); }
  .section-head { padding-left: clamp(24px, 5vw, 56px); padding-right: clamp(24px, 5vw, 56px); }
  .crumbs { padding-left: clamp(24px, 5vw, 56px); padding-right: clamp(24px, 5vw, 56px); }
  .pap-header .logo-link { padding: 0 clamp(16px, 3vw, 28px); }
  .pap-cart-btn { padding: 0 14px; }
  .pap-burger { padding: 0 clamp(16px, 3vw, 28px); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 6px clamp(24px, 5vw, 56px) 0; }
  .prod-card .imgbox { height: clamp(190px, 24vw, 240px); }
  .pap-footer .cols { padding: 0 clamp(24px, 5vw, 56px); column-gap: clamp(24px, 5vw, 56px); }
  .pap-footer .bottom { padding-left: clamp(24px, 5vw, 56px); padding-right: clamp(24px, 5vw, 56px); }
  /* repuestos de un motor (Motor.astro, rejilla con estilo en línea): en el móvil van de 1 en 1; aquí de 2 en 2 */
  #groups[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 0 clamp(24px, 5vw, 56px) !important; }
}
