/* MEISEOL · Tienda de perfumes (vista previa). Se carga después de /styles.css y reutiliza sus tokens,
   botones, eyebrow, foco y cabecera. Mobile-first: 700 px tableta, 1000 px escritorio (como la portada).
   Núcleo común a todas las páginas de la tienda. Lo propio de los listados, del test y de la ficha está en listing.css,
   finder.css y product.css, que solo enlazan sus plantillas, justo detrás de esta hoja (§7.16). */

:root {
  /* las páginas de la tienda viven en rutas anidadas: el destello con ruta absoluta */
  --spark: url("/assets/meiseol-simbolo-color.svg");
  --card-radius: 22px;
  --ok: #1C7A4A;
  --warn: #9A4D00;
  --heart: #E0408F;
}
/* con un diálogo abierto la página no se desplaza ni se mueve (se reserva el hueco de la barra) */
html.is-locked { overflow: hidden; scrollbar-gutter: stable; }
.shop-main { display: block; min-height: 60vh; outline: none; }
/* mientras carga, el contenido ocupa la pantalla: el pie no asoma y luego salta (CLS, PERF-1; SPEC2 §7.14) */
.shop-main[aria-busy="true"] { min-height: 100vh; min-height: 100svh; }
/* y el hueco es el de la página, no el del texto para buscadores (.seo-copy, que va debajo): si no, ese texto se pinta arriba
   nada más abrir y baja de golpe al llegar el catálogo (CLS de 0,73 medido en /perfumes/). */
.shop-main[aria-busy="true"] > .shop-page { min-height: 100vh; min-height: 100svh; }
.noscript { max-width: 640px; margin: 40px auto; padding: 0 20px; text-align: center; color: var(--muted); }

/* ───── Paleta por familia olfativa: tiñe frascos, fondos de foto y muestras ───── */
.shop, [data-family], [data-need], [data-accent] {
  --fam-1: #ECE6FF; --fam-2: #A592FF; --fam-bg: #F6F3FF;
  --cap-1: #8E76FF; --cap-2: #5A43DC; --metal-1: #FAFAFC; --metal-2: #B9BCCB;
}
[data-family="avainillados"] { --fam-1: #FBEACB; --fam-2: #E1AA62; --fam-bg: #FCF5E8; --cap-1: #4B3C33; --cap-2: #17110D; --metal-1: #F6E6C4; --metal-2: #B48C55; }
[data-family="frescos"] { --fam-1: #E2F5FF; --fam-2: #8FCBF2; --fam-bg: #F0F9FF; --cap-1: #FFFFFF; --cap-2: #D3DFEA; --metal-1: #FAFBFD; --metal-2: #AEB7C6; }
[data-family="florales"] { --fam-1: #FFE2EF; --fam-2: #FF94C4; --fam-bg: #FFF2F7; --cap-1: #FFE9F2; --cap-2: #EBA0C1; --metal-1: #FBE3D7; --metal-2: #C8907A; }
[data-family="frutales"] { --fam-1: #FFE5D9; --fam-2: #FF967A; --fam-bg: #FFF3EE; --cap-1: #FFD9C8; --cap-2: #E9876A; --metal-1: #FBE3D7; --metal-2: #C8907A; }
[data-family="amaderados"] { --fam-1: #EBDDCB; --fam-2: #A47652; --fam-bg: #F7F1EA; --cap-1: #3C3029; --cap-2: #110C09; --metal-1: #F3E1BD; --metal-2: #A8824D; }
[data-family="citricos"] { --fam-1: #F5FBC6; --fam-2: #D2EC45; --fam-bg: #FAFDE8; --cap-1: #FFFFFF; --cap-2: #DCE6B5; --metal-1: #FAFBFD; --metal-2: #AEB7C6; }
[data-family="gourmand"] { --fam-1: #F3DECD; --fam-2: #A86C48; --fam-bg: #F9F0E8; --cap-1: #4D3326; --cap-2: #1A0F0A; --metal-1: #F6E6C4; --metal-2: #B48C55; }
[data-family="ambarados"] { --fam-1: #FDE6BB; --fam-2: #E3962F; --fam-bg: #FDF5E5; --cap-1: #5C3D17; --cap-2: #1F1407; --metal-1: #F6E6C4; --metal-2: #B48C55; }
[data-family="almizclados"] { --fam-1: #F0ECFF; --fam-2: #C3B6FF; --fam-bg: #F7F5FF; --cap-1: #FFFFFF; --cap-2: #D9D1FB; --metal-1: #FAFAFC; --metal-2: #B9BCCB; }
[data-family="especiados"] { --fam-1: #F9DECF; --fam-2: #CB6739; --fam-bg: #FCF0E9; --cap-1: #5B2B18; --cap-2: #1F0E07; --metal-1: #F6E6C4; --metal-2: #B48C55; }
[data-family="acuaticos"] { --fam-1: #DFE9FF; --fam-2: #7C9FFF; --fam-bg: #F0F4FF; --cap-1: #FFFFFF; --cap-2: #C8D5FB; --metal-1: #FAFBFD; --metal-2: #AEB7C6; }
[data-family="aromaticos"] { --fam-1: #E5F2E0; --fam-2: #8FB784; --fam-bg: #F2F8EF; --cap-1: #F7FBF5; --cap-2: #B5CCAB; --metal-1: #FAFBFD; --metal-2: #AEB7C6; }

/* ───── Iconos, destellos y piezas pequeñas ───── */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark { display: inline-block; width: 1em; height: 1em; flex: none; fill: url(#spk-grad); vertical-align: -.1em; }
.title-spark { width: .6em; height: .6em; vertical-align: .08em; margin-left: .08em; }
.btn svg.spark, .btn .btn__spark { width: 14px; height: 14px; fill: url(#spk-grad); stroke: none; }
.btn:hover svg.spark { transform: rotate(90deg) scale(1.1); }
.btn .i { width: 18px; height: 18px; stroke-width: 2; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--graphite); }
.btn--text {
  min-height: 44px; padding: 0 12px; background: none; color: var(--graphite);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; letter-spacing: .02em;
}
.btn--text:hover { color: var(--violet-ink); transform: none; }
.btn--xl { min-height: 58px; font-size: 14px; }
.btn--add { text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; }
.btn--add .i { stroke-width: 1.9; }
.btn--add:hover .i { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; transform: none; box-shadow: none; }
.btn--dark:disabled { background: #E8E5EE; color: #5E5B6B; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }

:where(.sec) { padding-block: 56px; } /* especificidad 0: el espaciado propio de cada sección manda [VIS-11] */
.sec__head { max-width: 760px; margin-bottom: 28px; }
.sec__title { margin-top: 10px; font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.sec__sub { margin-top: 10px; color: var(--muted); font-size: 16.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--graphite);
  transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease);
}
a.chip:hover, button.chip:hover { border-color: rgba(118, 87, 255, .5); color: var(--violet-ink); }
.chip .i { width: 15px; height: 15px; }
.chip__n { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"], .chip--on { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }
.chip[aria-pressed="true"] .chip__n { color: rgba(255, 253, 248, .75); }
.chip--on:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip--add { border-style: dashed; }
/* opción que hoy daría 0 resultados: borde discontinuo, sin aclarar el texto (contraste AA) [A11Y-8] */
.chip.is-zero { border-style: dashed; border-color: #A8A5B5; }

.badges { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.badge {
  padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
}
.badge--new { background: var(--lime); color: var(--graphite); }
.badge--promo { background: var(--graphite); color: var(--milk); }
.badge--sel { background: var(--graphite); color: var(--milk); }
.badge--set { background: #fff; color: var(--graphite); border: 1px solid var(--line); }
/* Tarjeta (15-11-2026): «Disponible» no se dice (si se puede añadir, está); sí «Últimas unidades» y «Agotado» */
.pcard .avail--in_stock { display: none; }
/* Estrellas de la tarjeta: llena, media (la parte llena recortada por clase, sin anchos en línea) o vacía */
.pcard__rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--graphite); }
.pcard__rn { font-weight: 500; color: var(--muted); }
.cstars { display: inline-flex; gap: 1px; color: var(--heart); }
.cstar { width: 13px; height: 13px; }
.cstar path { fill: currentColor; }
.cstar .cstar__b { opacity: .22; }
.cstar--full .cstar__b { opacity: 1; }
.cstar--half .cstar__f { clip-path: inset(0 50% 0 0); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price__now { font-size: 18px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price__from { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price__was { font-size: 13.5px; color: var(--muted); }
.price--promo .price__now { color: var(--violet-ink); }

.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.avail__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.avail--in_stock { color: var(--ok); }
.avail--low_stock { color: var(--warn); }
.avail--low_stock .avail__dot { box-shadow: 0 0 0 3px rgba(242, 157, 56, .25); }
.avail--out_of_stock { color: var(--muted); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--violet-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--graphite); font-weight: 600; }

/* ───── Cabecera de la tienda (base: .header de la portada) ───── */
.shop-header .header__actions { gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--graphite); text-decoration: none;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.icon-btn:hover { border-color: rgba(118, 87, 255, .5); color: var(--violet-ink); }
.icon-btn[aria-current] { border-color: var(--graphite); }
.icon-btn__n {
  position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--milk);
  background: var(--violet); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
}
.icon-btn__n[hidden] { display: none; }
.icon-btn__n.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { width: 42px; height: 42px; }
.nav__spark { width: 10px; height: 10px; margin-left: 2px; vertical-align: 1px; }
.shop-header .nav > a[aria-current] { color: var(--violet-ink); }
/* «Cosmética · Pronto» (línea anunciada, lines.js → SOON_LINES): la etiqueta lima va dentro del enlace */
.nav__tag {
  display: inline-block; margin-left: 4px; padding: 4px 7px 3px; border-radius: 999px; vertical-align: 1px;
  background: var(--lime); color: var(--graphite); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; line-height: 1;
}
@media (forced-colors: active) { .nav__tag { border: 1px solid CanvasText; } }

.search { position: relative; display: flex; align-items: center; }
.search__input {
  width: 100%; height: 44px; padding: 0 46px 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; color: var(--graphite);
  transition: border-color .2s, box-shadow .2s;
}
.search__input::placeholder { color: #77748A; }
.search__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(118, 87, 255, .16); }
.search__btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: var(--graphite); color: var(--milk);
}
.search__btn .i { width: 17px; height: 17px; stroke-width: 2.2; }
.search--bar { display: none; }
.search--menu { margin: 14px 0 6px; }

/* ───── Aviso de vista previa ───── */
.preview-note { background: linear-gradient(90deg, #EFE9FF, #E6F5FF); border-bottom: 1px solid rgba(118, 87, 255, .14); font-size: 13px; }
.preview-note__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding-block: 8px; text-align: center; }
.preview-note__tag {
  padding: 3px 10px; border-radius: 999px; background: var(--graphite); color: var(--milk);
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.preview-note p { color: #3A3746; }

/* ───── Carga, error y 404 amable ───── */
.shop-loading { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 60vh; color: var(--muted); font-size: 14px; }
.shop-loading__spark .spark { width: 34px; height: 34px; animation: spin-soft 1.6s var(--ease) infinite; }
@keyframes spin-soft { 0% { transform: rotate(0) scale(.85); opacity: .6; } 50% { transform: rotate(45deg) scale(1.1); opacity: 1; } 100% { transform: rotate(90deg) scale(.85); opacity: .6; } }
.state {
  background: radial-gradient(60% 70% at 85% 15%, rgba(217, 208, 255, .8), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(205, 238, 255, .8), transparent 70%);
}
.state__in { display: grid; justify-items: center; gap: 16px; padding-block: 72px 80px; text-align: center; }
.state__mark .spark { width: 44px; height: 44px; }
.state__code { display: flex; align-items: center; font-size: clamp(80px, 18vw, 150px); font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.state__code img { width: .66em; height: .66em; margin-inline: .06em; animation: breathe 6s ease-in-out infinite; }
.state__title { max-width: 22ch; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.state__text { max-width: 52ch; color: var(--muted); font-size: 17px; }
.state__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.empty {
  display: grid; justify-items: center; gap: 12px; padding: 48px 24px; text-align: center;
  border: 1.5px dashed rgba(118, 87, 255, .3); border-radius: var(--radius); background: rgba(244, 241, 255, .5);
}
.empty__mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--violet); }
.empty__mark .spark { width: 26px; height: 26px; }
.empty__mark .i { width: 26px; height: 26px; }
.empty__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.empty__text { max-width: 48ch; color: var(--muted); }
.empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.grid.is-empty { display: block; }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 24px; padding: 14px 18px;
  border-radius: 18px; background: #FFF6E9; border: 1px solid rgba(154, 77, 0, .2); color: #5A3000; font-size: 14.5px;
}
.notice .i { color: var(--warn); }
.notice p { flex: 1 1 240px; }

.page-head { margin-bottom: 28px; }
.page-head__title { margin-top: 10px; font-size: clamp(34px, 5.4vw, 54px); font-weight: 650; line-height: 1.04; letter-spacing: -.035em; outline: none; }
.page-head__sub { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ───── Frasco SVG de reserva ───── */
.pmedia { background: radial-gradient(90% 80% at 50% 30%, #fff 0%, var(--fam-bg) 60%, var(--fam-1) 135%); }
.art { width: auto; height: 100%; max-width: 100%; overflow: visible; }
.pmedia { position: relative; }
.pcard__media > .art { position: absolute; left: 50%; bottom: 7%; height: 80%; transform: translateX(-50%); }
.bt-s1 { stop-color: var(--fam-1); }
.bt-s2 { stop-color: var(--fam-2); }
.bt-c1 { stop-color: var(--cap-1); }
.bt-c2 { stop-color: var(--cap-2); }
.bt-m1 { stop-color: var(--metal-1); }
.bt-m2 { stop-color: var(--metal-2); }
.bt-tint { fill: var(--fam-1); fill-opacity: .55; }
.bt-depth { fill: var(--fam-2); fill-opacity: .24; }
.bt-edge { stroke: var(--fam-2); stroke-opacity: .5; stroke-width: 1.2; }
.pmedia__img { width: 100%; height: 100%; object-fit: cover; }
.pmedia:has(> .pmedia__img) { background: #fff; }

/* ───── Tarjeta de producto ───── */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pcard {
  container: pcard / inline-size;
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "media body" "extra extra" "buy buy";
  background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .3s;
}
.pcard:hover { box-shadow: var(--shadow); border-color: rgba(118, 87, 255, .28); }
.pcard__media {
  position: relative; grid-area: media; display: grid; place-items: center; overflow: hidden;
  min-height: 150px; padding: 14px 8px 8px; border-radius: calc(var(--card-radius) - 1px) 0 18px 0;
}
.pcard__media > .art { bottom: 7%; height: 62%; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media > .art { transform: translateX(-50%) translateY(-5px) rotate(-2deg); }
.pcard__media .pmedia__img { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.pcard:hover .pmedia__img { transform: scale(1.04); }
.pcard__media .badges { top: 8px; left: 8px; max-width: calc(100% - 12px); flex-direction: column; align-items: flex-start; gap: 4px; }
.pcard__media .badge { font-size: 9.5px; padding: 3px 7px; }
.pcard__fav { position: absolute; z-index: 2; top: 10px; right: 10px; }
.pcard__body { grid-area: body; min-width: 0; padding: 14px 58px 4px 14px; }
.pcard__brand { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-ink); }
.pcard__name { margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.pcard__name a { text-decoration: none; }
/* toda la tarjeta enlaza a la ficha; los controles quedan por encima */
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.pcard__name a:focus-visible { outline: none; }
.pcard:has(.pcard__name a:focus-visible) { outline: 3px solid var(--violet); outline-offset: 3px; }
.pcard__notes { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pcard__senses { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pcard__senses li { padding: 3px 9px; border-radius: 999px; background: var(--tint); font-size: 11.5px; font-weight: 600; color: #3A3746; }
.pcard__extra { position: relative; z-index: 1; grid-area: extra; display: grid; gap: 8px; padding: 10px 14px 0; }
.pcard__buy { grid-area: buy; display: grid; gap: 10px; padding: 10px 14px 14px; }
.pcard__size { font-size: 12.5px; color: var(--muted); }
.pcard__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.pcard__actions { display: flex; align-items: center; gap: 8px; }
.pcard__actions .btn--add { position: relative; z-index: 1; flex: 1 1 auto; min-height: 46px; padding: 0 14px; white-space: nowrap; letter-spacing: .07em; }

/* ♡ Guardar */
.fav {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(27, 27, 27, .1); border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--graphite);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), border-color .2s, color .2s;
}
.fav .i { width: 19px; height: 19px; transition: fill .2s, stroke .2s, transform .35s var(--ease); }
.fav:hover { color: var(--heart); border-color: rgba(224, 64, 143, .4); }
.fav:active .i { transform: scale(.85); }
.fav[aria-pressed="true"] { color: var(--heart); border-color: rgba(224, 64, 143, .45); }
.fav[aria-pressed="true"] .i { fill: var(--heart); animation: heart-pop .45s var(--ease); }
@keyframes heart-pop { 40% { transform: scale(1.25); } }
.fav--label {
  display: inline-flex; gap: 10px; width: auto; height: auto; min-height: 58px; padding: 0 22px;
  border: 1.5px solid var(--graphite); border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.fav--label:hover { border-color: var(--heart); }

/* Tamaños en la tarjeta: control segmentado con el precio de cada uno */
.sizes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.size { position: relative; display: grid; gap: 1px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.size__label { font-size: 13px; font-weight: 700; }
.size__price { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.size:hover { border-color: rgba(118, 87, 255, .45); }
.size:has(input:checked) { border-color: var(--graphite); background: var(--tint); box-shadow: inset 0 0 0 .5px var(--graphite); }
.size:has(input:focus-visible) {
  outline: 3px solid var(--violet); outline-offset: 2px;
}
.size.is-out { cursor: not-allowed; opacity: .55; }
.size.is-out .size__price { font-weight: 700; }

/* ───── Listados (cabecera de /perfumes/, hubs, resultados y filtros, búsqueda, marcas, cabecera de colección y llamada al
   test): en listing.css. Aquí, las pestañas, que usan también la rutina ───── */
.tabs {
  display: flex; gap: 6px; margin: 0 -20px 20px; padding: 4px 20px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 700; color: var(--graphite); transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: rgba(118, 87, 255, .5); }
.tab[aria-selected="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--milk); }
.tabpanel { animation: fade-up .45s var(--ease); }

/* Carrito lateral: hoja a pantalla completa (<dialog>; la de filtros en móvil, .fdialog, está en listing.css) */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: var(--milk); color: var(--graphite);
  box-shadow: -30px 0 60px -30px rgba(27, 27, 27, .4); overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(27, 27, 27, .34); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer[open] { animation: sheet-in .45s var(--ease); }
.drawer[open]::backdrop { animation: veil .3s ease-out; }
.drawer.is-closing { animation: sheet-out .32s ease-in forwards; }
.drawer.is-closing::backdrop { animation: veil-out .32s ease-in forwards; }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes sheet-out { to { transform: translateX(100%); } }
@keyframes veil-out { to { opacity: 0; } }
.drawer__panel { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }

/* el arte de los héroes y de las tarjetas de colección flota sin la caja de fondo de [data-accent].pmedia (art.css) */
.coll__bottle.pmedia[data-accent] { background: none; }
/* saltos de línea equilibrados en nombres y etiquetas cortas [VIS-13] */
.coll__name, .coll__tag { text-wrap: balance; }

/* ───── Carrito lateral ───── */
.drawer__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.drawer__check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; }
.drawer[open] .drawer__check { animation: pop .5s var(--ease) .15s backwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.drawer__check .i { width: 16px; height: 16px; stroke-width: 3; }
.drawer__body { flex: 1; overflow-y: auto; }
.ditem { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px 20px; }
.ditem__media { display: grid; place-items: center; height: 116px; overflow: hidden; border-radius: 18px; padding: 10px 6px 4px; }
.ditem__media .art { height: 96px; }
.ditem__media .pmedia__img { border-radius: 18px; }
.ditem__brand { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-ink); }
.ditem__name { margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ditem__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.ditem__price { margin-top: 6px; font-size: 18px; font-variant-numeric: tabular-nums; }
.ditem__unit { font-size: 13px; color: var(--muted); }
.ditem__cap { margin-top: 6px; font-size: 13px; color: var(--warn); font-weight: 600; }
.dsum { margin: 0 20px; padding: 16px 0; border-block: 1px solid var(--line); }
.dsum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.dsum__row strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.dsum__units { color: var(--muted); font-weight: 500; }
.dsum__tax { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.dactions { display: grid; gap: 10px; padding: 18px 20px 26px; }

/* ───── Colecciones ───── */
.colls { scroll-margin-top: 70px; }
.colls__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 12px;
  margin-inline: -20px; padding: 4px 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.colls__grid > li { scroll-snap-align: start; }
.coll {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 230px; padding: 22px;
  border-radius: var(--radius); color: var(--graphite); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.coll:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(27, 27, 27, .45); }
.coll--violet { background: linear-gradient(140deg, #ECE6FF, var(--lavender) 55%, #B9C8FF); }
.coll--pink { background: linear-gradient(140deg, #FFE6F2, #FFC6E0 70%, #F6C7F6); }
.coll--lime { background: linear-gradient(140deg, #F6FDD2, #E9FA92 65%, var(--lime)); }
.coll--blue { background: linear-gradient(140deg, #E8F7FF, var(--ice) 55%, #BFD0FF); }
.coll--ice { background: linear-gradient(140deg, #F4FBFF, #DDF3FF 60%, var(--ice)); }
.coll--graphite { background: radial-gradient(80% 90% at 100% 0%, rgba(118, 87, 255, .55), transparent 65%), radial-gradient(60% 70% at 0% 100%, rgba(255, 117, 183, .18), transparent 70%), var(--graphite); color: var(--milk); }
.coll__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.coll:has(.coll__img)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 27, 27, 0) 30%, rgba(27, 27, 27, .7)); }
.coll:has(.coll__img) { color: var(--milk); }
.coll__art { position: absolute; z-index: -1; right: 4px; top: 10px; display: flex; align-items: flex-end; height: 112px; transition: transform .8s var(--ease); }
.coll:hover .coll__art { transform: translateY(-4px) rotate(-3deg); }
.coll__bottle { display: block; height: 100%; margin-left: -26px; background: none; }
.coll__bottle .art { height: 100%; }
.coll__bottle:nth-child(1) { height: 76%; transform: rotate(-8deg); }
.coll__bottle:nth-child(2) { position: relative; z-index: 1; }
.coll__bottle:nth-child(3) { height: 70%; transform: rotate(7deg); }
.coll__body { display: grid; gap: 6px; justify-items: start; }
.coll__count {
  padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite);
}
.coll--graphite .coll__count, .coll:has(.coll__img) .coll__count { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: var(--milk); }
.coll__name { margin-top: 4px; font-size: 22px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-transform: uppercase; }
.coll__tag { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; opacity: .85; }
.coll__go {
  position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--graphite); color: var(--milk); transition: transform .3s var(--ease);
}
.coll--graphite .coll__go, .coll:has(.coll__img) .coll__go { background: var(--milk); color: var(--graphite); }
.coll:hover .coll__go { transform: translateX(3px); }
.coll__body { padding-right: 48px; }
/* Fotos en baldosa (.ptile): en la tira de colecciones, las cabeceras de listado y de colección y el anuncio de colección
   del banner, las fotos de los proveedores (con fondo blanco) van en baldosas blancas cuadradas, con esquinas redondeadas y
   sombra suave, en la misma composición inclinada que los dibujos. El sitio y el tamaño de cada una, junto a los del dibujo. */
:is(.coll__bottle, .chero__bottle, .phero__bottle, .hs__trio).ptile {
  flex: none; aspect-ratio: 1; width: auto; padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 16px 30px -14px rgba(27, 27, 27, .5), 0 0 0 1px rgba(27, 27, 27, .06);
}
.ptile > .pmedia__img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* si la foto no carga, shop.js pone el dibujo en su lugar: sin baldosa */
:is(.coll__bottle, .chero__bottle, .phero__bottle, .hs__trio).ptile:has(> .pmedia__img[hidden]) { aspect-ratio: auto; padding: 0; background: none; box-shadow: none; }
.coll__bottle.ptile { margin-left: -20px; }

/* ───── Cantidad (ficha, carrito y checkout). El resto de la ficha, en product.css; «Encuentra tu perfume», en finder.css ───── */
.qty { display: inline-flex; align-items: center; height: 50px; padding: 2px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty__btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--graphite); transition: background .2s; }
.qty__btn:hover:not(:disabled) { background: var(--tint); }
.qty__btn:disabled { color: #B3B0BF; cursor: not-allowed; }
.qty__btn .i { width: 18px; height: 18px; stroke-width: 2.2; }
.qty__input {
  width: 44px; height: 42px; padding: 0; border: 0; background: none; text-align: center;
  font: inherit; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus-visible { outline: 3px solid var(--violet); outline-offset: 0; border-radius: 8px; }

.related { padding-top: 24px; }

/* ───── Carrito (página) y favoritos: en cart.css, que solo enlazan sus plantillas (§7.16) ───── */

/* ───── Núcleo de las dos líneas (hito de S1): precio orientativo, tarjetas, esqueletos, cajón con envío ───── */
.price-note {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  border: 1px solid rgba(27, 27, 27, .16); background: #fff; color: #4A4757;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
}
.price .price-note { align-self: center; }
.pcard__meta { margin-top: 4px; font-size: 13px; font-weight: 600; color: #3A3746; }
/* tarjeta estrecha (rutina, cajón, sugerencias): arte, nombre, precio y «Añadir» */
.pcard--compact { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "media body" "buy buy"; }
.pcard--compact .pcard__media { min-height: 96px; padding: 8px 4px 4px; }
.pcard--compact .pcard__media > .art { height: 70%; }
.pcard--compact .pcard__body { padding: 12px 14px 4px 12px; }
.pcard--compact .pcard__name { font-size: 15px; }
.pcard--compact .pcard__row { margin-top: 6px; }
.pcard--compact .price__now { font-size: 16px; }
.pcard--compact .pcard__actions { grid-area: buy; padding: 8px 12px 12px; }
.pcard--compact .btn--add { min-height: 42px; }
/* esqueletos del tamaño final mientras llega el catálogo */
.pcard--skeleton { pointer-events: none; overflow: hidden; }
.pcard--skeleton .pcard__media { background: var(--tint); }
.skel__line, .skel__btn { position: relative; display: block; overflow: hidden; height: 12px; margin-top: 10px; border-radius: 8px; background: #EEEAF8; }
.skel__line--s { width: 40%; }
.skel__line--m { width: 70%; }
.skel__btn { height: 46px; border-radius: 999px; }
.skel__line::after, .skel__btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: skel 1.4s ease-in-out infinite;
}
@keyframes skel { to { transform: translateX(100%); } }
/* la vista de carga ocupa la pantalla hasta que la página pinta su contenido (no hay un paso intermedio corto en el que
   asome el pie: CLS) [PERF-1] */
.shop-loading { min-height: 100vh; min-height: 100svh; }
.shop-loading__slow { display: grid; justify-items: center; gap: 10px; }
.shop-loading__slow[hidden] { display: none; }
/* «Añadir al carrito»: confirmación con ✓ y un destello que sale del botón (solo sin movimiento reducido) */
.btn--add { position: relative; }
.btn--add.is-added::after {
  content: ""; position: absolute; top: -10px; right: 14px; width: 18px; height: 18px; pointer-events: none;
  background: var(--spark) center / contain no-repeat; animation: add-spark .9s var(--ease) forwards;
}
@keyframes add-spark { 0% { opacity: 0; transform: translateY(6px) scale(.4) rotate(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scale(1.15) rotate(90deg); } }
/* cajón: varios artículos, envío y notas */
.drawer__check.is-off { background: var(--tint); color: var(--violet-ink); }
.dlist { display: grid; gap: 2px; padding: 14px 20px 6px; }
.drow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drow:last-child { border-bottom: 0; }
.drow__media { display: grid; place-items: center; width: 52px; height: 60px; overflow: hidden; border-radius: 12px; padding: 4px 2px 2px; }
.drow__media .art { height: 50px; }
.drow__media .pmedia__img { border-radius: 12px; }
.drow__info { display: grid; min-width: 0; }
.drow__name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.drow__meta { font-size: 12.5px; color: var(--muted); }
.drow__cap { display: block; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.drow__price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dlist__more { padding: 0 20px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ditem__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.dnote { display: flex; gap: 8px; margin: 12px 20px 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.dnote .i { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.dnote--warn { color: var(--warn); font-weight: 600; }
.dsum__ship { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #3A3746; }
/* barra de envío gratis (cajón y carrito): la misma base que el checkout */
.fsbar { display: grid; gap: 8px; margin-top: 12px; }
.fsbar__text { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #3A3746; }
.fsbar__text strong { font-variant-numeric: tabular-nums; }
.fsbar.is-free .fsbar__text { color: var(--ok); font-weight: 700; }
.fsbar__text .i { width: 16px; height: 16px; stroke-width: 3; }
.fsbar__bar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; background: #ECE8F6; overflow: hidden; }
.fsbar__bar::-webkit-progress-bar { background: #ECE8F6; border-radius: 999px; }
.fsbar__bar::-webkit-progress-value { background: var(--grad); border-radius: 999px; transition: width .4s var(--ease); }
.fsbar__bar::-moz-progress-bar { background: var(--grad); border-radius: 999px; }
.fsbar.is-free .fsbar__bar::-webkit-progress-value { background: var(--ok); }
.fsbar.is-free .fsbar__bar::-moz-progress-bar { background: var(--ok); }

/* ───── Pie ───── */
.shop-footer { margin-top: 32px; padding-top: 56px; border-radius: var(--round) var(--round) 0 0; }
/* el pie casi nunca se ve al cargar: se salta la maqueta y el pintado hasta que se acerca (alto medio reservado) */
.shop-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (min-width: 700px) { .shop-footer { contain-intrinsic-size: auto 580px; } }
.shop-footer__logo { display: inline-block; }
.shop-footer__logo img { width: 140px; height: auto; }

@media (max-width: 439.98px) {
  .pcard__actions .btn--add .i { display: none; }
}

/* ───── Tableta ───── */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
  .grid--4 { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
  .pcard { display: flex; flex-direction: column; }
  .pcard__media { aspect-ratio: 1 / .92; min-height: 0; padding: 22px 12px 10px; border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; }
  .pcard__media .badges { top: 12px; left: 12px; flex-direction: row; max-width: calc(100% - 64px); }
  .pcard__media .badge { font-size: 10.5px; padding: 4px 9px; }
  .pcard__fav { top: 12px; right: 12px; }
  .pcard__media > .art { bottom: 8%; height: 76%; }
  .pcard__actions .btn--add { letter-spacing: .1em; padding: 0 16px; }
  .pcard__body { padding: 16px 18px 4px; }
  .pcard__extra { padding: 8px 18px 0; }
  .pcard__buy { margin-top: auto; padding: 12px 18px 18px; }
  .pcard__actions { flex-direction: column; align-items: stretch; gap: 2px; }
  /* precio y «Añadir» en una fila (15-11-2026) cuando la tarjeta tiene sitio (desde 224 px de ancho); el tamaño encima */
  @container pcard (min-width: 224px) {
    .pcard__buy { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "size size" "row actions"; align-items: center; gap: 6px 10px; }
    .pcard__buy > .pcard__size, .pcard__buy > .sizes { grid-area: size; }
    .pcard__row { grid-area: row; flex-direction: column; align-items: flex-start; gap: 2px; }
    .pcard__actions { grid-area: actions; }
    .pcard__actions .btn--add { min-height: 42px; padding: 0 16px; }
  }
}

@media (min-width: 700px) {
  :where(.sec) { padding-block: 64px; }
  .tabs { margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; overflow: visible; }
  .colls__grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-inline: 0; padding: 0; overflow: visible; }
}

/* ───── Escritorio ───── */
@media (min-width: 1000px) {
  .search--bar { display: flex; width: clamp(210px, 19vw, 280px); }
  .search--menu, .search-toggle, .nav__more { display: none; }
  .shop-header .header__actions { gap: 10px; }
  .colls__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) and (max-width: 1199.98px) {
  .search--bar { width: 190px; }
  .search__input { font-size: 13px; }
}

@media (forced-colors: active) {
  .size { forced-color-adjust: auto; border: 1px solid CanvasText; }
  .tab[aria-selected="true"], .chip[aria-pressed="true"], .chip--on { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-loading__spark .spark { animation: none; }
  .pcard:hover .pcard__media > .art { transform: translateX(-50%); }
  .pcard:hover .pmedia__img, .coll:hover { transform: none; }
}

/* ═════ S1 · fase 2b: ficha de las dos líneas, carrito, favoritos y hallazgos de QA de la fase 1. Va al final a propósito:
   manda sobre las reglas anteriores (también sobre las de las media queries de arriba) sin reescribirlas. ═════ */

/* Ficha: datos de cosmética, cantidad con rótulo visible [COPY-9], límite, envío, higiene [BUS-13] y «¿Son originales?» */
@media (max-width: 379.98px) {
  /* a 320 px el botón ocupa su fila entera: la tarjeta no desborda [A11Y-7] */
  .pcard__actions { flex-wrap: wrap; justify-content: center; }
  .pcard__actions .btn--add { flex: 1 1 100%; }
}
.qty__btn[aria-disabled="true"] { color: #8D8A9B; cursor: not-allowed; }
.qty__btn[aria-disabled="true"]:hover { background: none; }
/* ♡ con texto: acción «Añadir/Quitar de favoritos»; el estado se ve en el corazón (texto en grafito: 4,5:1) [A11Y-10] */
.fav--label.is-on { color: var(--graphite); border-color: var(--heart); }
.fav--label.is-on .i { fill: var(--heart); stroke: var(--heart); animation: heart-pop .45s var(--ease); }

/* Cajón: relleno para el envío gratis; estados vacíos (carrito, favoritos, checkout) con los dos buscadores guiados. Lo propio
   de las páginas del carrito y de favoritos está en cart.css [S1-G4] */
.dgap { margin: 12px 20px 0; padding: 10px 12px 6px; border-radius: 16px; background: var(--tint); }
.dgap__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-ink); }
.dgap__row { grid-template-columns: 52px minmax(0, 1fr) auto; border-bottom: 0; }
.dgap__add { min-height: 36px; padding: 0 14px; background: #fff; }
.drow__note { justify-self: start; margin-top: 4px; }
.empty__guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; font-size: 14px; font-weight: 700; }
.empty__guides a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--violet-ink); text-underline-offset: 3px; }
/* Tarjeta estrecha también desde 600 px (las reglas de tableta de .pcard la volvían vertical, con el arte a todo el ancho) */
.pcard.pcard--compact { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "media body" "buy buy"; }
.pcard--compact .pcard__media { aspect-ratio: auto; min-height: 96px; padding: 8px 4px 4px; border-radius: calc(var(--card-radius) - 1px) 0 16px 0; }
.pcard--compact .pcard__media > .art { bottom: 6%; height: 74%; }
.pcard--compact .pcard__body { padding: 12px 14px 4px 12px; }
.pcard--compact .pcard__actions { grid-area: buy; flex-direction: row; padding: 8px 12px 12px; }
.pcard--compact .pcard__actions .btn--add { flex: 1 1 auto; min-height: 42px; }
/* Ficha de cosmética: «Para» y «Tipo de piel» en línea con sus chips */

/* Cabecera estrecha: nada desborda a 360 ni a 320 px; por debajo de 350, la búsqueda sigue en el menú [VIS-1, A11Y-7] */
@media (max-width: 399.98px) {
  .shop-header .header__in { gap: 12px; }
  .shop-header .logo { width: 116px; }
  .shop-header .header__actions { gap: 6px; }
  .shop-header .icon-btn, .shop-header .burger { width: 40px; height: 40px; }
}
@media (max-width: 349.98px) { .shop-header .search-toggle { display: none; } }
/* Enfocar un control de la cabecera fija no hace saltar la página hacia arriba [A11Y-2] */
.shop-header :is(a, button, input) { scroll-margin-top: -84px; }
/* iPhone no amplía la página al enfocar un buscador o el orden [CRIT-3] */
@media (max-width: 999.98px), (pointer: coarse) {
  .search__input { font-size: 16px; }
}
/* Entre 1000 y 1199 px el texto de ayuda del buscador cabe entero [VIS-15] */
@media (min-width: 1000px) and (max-width: 1199.98px) {
  .search--bar { width: 212px; }
  .search__input { padding-left: 16px; padding-right: 44px; }
}

/* Bucles decorativos: pocas vueltas (y pausa fuera de pantalla con .is-paused, desde shop.js) [A11Y-15] */
.state__code img { animation-iteration-count: 3; }
/* Colecciones con foto: texto con contraste AA sobre cualquier imagen [VIS-6, A11Y-11] */
.coll:has(.coll__img)::before { background: linear-gradient(180deg, rgba(27, 27, 27, .1) 0%, rgba(27, 27, 27, .55) 45%, rgba(27, 27, 27, .82) 100%); }
.coll:has(.coll__img) .coll__count { background: rgba(27, 27, 27, .5); border-color: rgba(255, 255, 255, .28); }
@media (max-width: 699.98px) {
  .coll { min-height: 0; padding-top: 132px; } /* los frascos no quedan bajo la píldora [VIS-14] */
}
/* Anillos de foco completos en el panel de filtros, las pestañas y la tira de colecciones [VIS-8, A11Y-14] */
.tabs { padding-block: 6px; }
.colls__grid { padding-top: 8px; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
/* Los degradados se funden con el fondo, como en la portada [VIS-10] */
.state { position: relative; }
.state::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), var(--milk));
}
.state__in { position: relative; z-index: 1; }
/* Un solo margen al bajar a los resultados o a las colecciones (el html ya tiene scroll-padding-top) [REQ-2] */
.colls { scroll-margin-top: 0; }

/* Contraste alto: qué tamaño, tarjeta, sensación, interruptor o casilla está elegido [A11Y-9] */
@media (forced-colors: active) {
  .size:has(input:checked) { border: 3px solid Highlight; }
  .fav[aria-pressed="true"], .fav--label.is-on { border: 2px solid Highlight; }
  .qty__btn[aria-disabled="true"] { color: GrayText; }
  .fsbar__bar { border: 1px solid CanvasText; }
  .price-note { forced-color-adjust: auto; border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .skel__line::after, .skel__btn::after, .btn--add.is-added::after { animation: none; display: none; }
  .fav--label.is-on .i { animation: none; }
}

/* ───── Sugerencias del buscador de la cabecera (suggest.js, 15-11-2026): perfumes, marcas y notas mientras se escribe ───── */
.sugg {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: min(440px, calc(100vw - 32px));
  max-height: min(72vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--graphite);
  box-shadow: 0 26px 60px -26px rgba(27, 27, 27, .42); text-align: left;
}
.sugg[hidden] { display: none; }
.search--menu .sugg { left: 0; width: auto; max-height: none; }
.sugg a { color: inherit; text-decoration: none; }
.sugg__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 10px 6px 6px; border-radius: 14px;
}
.sugg__img { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 12px; background: var(--tint); }
.sugg__img img { width: 100%; height: 100%; object-fit: contain; }
.sugg__img .spark { width: 18px; height: 18px; }
.sugg__txt { display: grid; min-width: 0; line-height: 1.25; }
.sugg__name { overflow: hidden; font-size: 14.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sugg__meta { overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.sugg__out { color: var(--warn); font-weight: 600; }
.sugg__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sugg__from { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sugg__group { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.sugg__h { margin: 2px 10px 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sugg__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
}
.sugg__n { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.sugg__all {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 6px;
  border-radius: 14px; background: var(--tint); color: var(--violet-ink) !important; font-size: 14px; font-weight: 700;
}
.sugg__all .i { width: 16px; height: 16px; }
.sugg [role="option"]:hover, .sugg [role="option"][aria-selected="true"] { background: var(--tint); }
.sugg__all:hover, .sugg__all[aria-selected="true"] { background: var(--lavender); }
.sugg [role="option"][aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--violet); }
.sugg__empty { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--muted); }
.sugg__empty a { color: var(--violet-ink); font-weight: 700; text-decoration: underline; }
@media (forced-colors: active) { .sugg [role="option"][aria-selected="true"] { outline: 2px solid Highlight; } }

/* ───── Franja de ventajas encima de la cabecera, en todas las páginas (shell.js → shellStrip, 15-11-2026) ─────
   Móvil: solo la rapidez («Envío desde España en 24-72 h laborables»); 600 px: + envío gratis; 860 px: + originales;
   1100 px: + formas de pago, repartidas. Sube con la página: la cabecera fija sigue arriba sola. */
.strip { background: var(--graphite); color: var(--milk); }
.strip__list {
  display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 34px; margin: 0; padding-block: 4px;
  list-style: none; font-size: 12px; font-weight: 650; line-height: 1.25; text-align: center;
}
.strip__list li { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.strip__list li:nth-child(n+2) { display: none; }
.strip .i { flex: none; width: 15px; height: 15px; color: var(--lime); }
@media (min-width: 600px) { .strip__list li:nth-child(2) { display: inline-flex; } }
@media (min-width: 860px) { .strip__list li:nth-child(3) { display: inline-flex; } }
@media (min-width: 1100px) {
  .strip__list { justify-content: space-between; min-height: 38px; font-size: 12.5px; }
  .strip__list li:nth-child(4) { display: inline-flex; }
}
@media (forced-colors: active) { .strip { border-bottom: 1px solid CanvasText; } }
.strip .nw { white-space: nowrap; }
/* Con algo en el carrito (shop.js → syncStrip): lo que falta para el envío gratis, con barra; en el móvil ocupa el sitio del plazo */
.strip__bar { display: inline-block; width: 64px; height: 5px; margin-left: 4px; border-radius: 3px; background: rgba(255, 253, 248, .22); overflow: hidden; }
.strip__bar b { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lime); transition: width .4s var(--ease); }
@media (max-width: 599.98px) {
  .strip--cart .strip__list li:nth-child(1) { display: none; }
  .strip--cart .strip__list li:nth-child(2) { display: inline-flex; }
}

/* Buscador a toda anchura bajo la cabecera en el móvil (shell.js → showsSearchBar, 15-11-2026). Al desplazar la página se
   recoge, salvo mientras se escribe en él; en el escritorio no existe (ahí está el de la cabecera). */
.msearch { padding: 0 0 10px; }
.search--m { width: 100%; }
.search--m .sugg { left: 0; right: 0; width: auto; }
.shop-header:has(.msearch) .search-toggle { display: none; }
.shop-header.is-scrolled .msearch:not(:focus-within) { display: none; }
@media (min-width: 1000px) { .msearch { display: none; } }

/* Formas de pago en el pie: distintivos de texto con el color de cada marca */
.footer__pay { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 7px; background: #fff; color: #1B1B1B; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.pay--visa .pay__name { color: #1A1F71; font-style: italic; text-transform: uppercase; letter-spacing: .08em; }
.pay--mc { padding-left: 8px; }
.pay--mc::before { content: ""; width: 22px; height: 14px; margin-right: 7px; background: radial-gradient(circle at 5px 7px, #EB001B 0 6.5px, transparent 7px), radial-gradient(circle at 15px 7px, #F79E1B 0 6.5px, transparent 7px); }
.pay--apple .pay__name::before, .pay--google .pay__name::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 50%; background: #1B1B1B; vertical-align: -2px; }
.pay--google .pay__name::before { background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0); }
@media (min-width: 1000px) { .footer__pay { grid-column: 1 / -1; } }
/* Campo trampa de los formularios (honeypot): fuera de la vista y del orden de tabulación */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ───── Boletín en el pie (shell.js → newsletterForm, 15-11-2026) ───── */
.shop-footer__nl { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid rgba(255, 253, 248, .15); }
.nl { display: grid; gap: 16px; }
.nl__t { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.15; color: var(--milk); }
.nl__p { margin: 0; font-size: 14.5px; color: rgba(255, 253, 248, .78); max-width: 52ch; }
.nl__form { display: grid; gap: 10px; }
.nl__row { display: flex; flex-wrap: wrap; gap: 8px; }
.nl__input {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 18px; border: 1.5px solid rgba(255, 253, 248, .25); border-radius: 999px;
  background: rgba(255, 253, 248, .06); font: inherit; font-size: 16px; color: var(--milk);
}
.nl__input::placeholder { color: rgba(255, 253, 248, .6); }
.nl__input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(221, 248, 90, .2); }
.nl__input[aria-invalid="true"] { border-color: #FF9B93; }
.nl__btn { flex: 0 0 auto; min-height: 48px; padding-inline: 22px; border: 0; background: var(--lime); color: var(--graphite); font-weight: 800; }
.nl__btn:hover { filter: brightness(1.05); }
.nl__check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: rgba(255, 253, 248, .8); }
.nl__check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--lime); }
.nl__check input[aria-invalid="true"] { outline: 2px solid #FF9B93; outline-offset: 2px; }
.nl__check a { color: inherit; }
.nl__msg { margin: 0; font-size: 14px; font-weight: 600; color: var(--lime); }
.nl__msg:empty { display: none; }
.nl__msg.is-error { color: #FF9B93; }
@media (min-width: 900px) { .nl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; } }
/* El boletín en páginas claras (página del pedido): mismo formulario, colores de la tienda */
.nl--light .nl__t { color: var(--graphite); }
.nl--light .nl__p, .nl--light .nl__check { color: var(--muted); }
.nl--light .nl__input { border-color: var(--line); background: #fff; color: var(--graphite); }
.nl--light .nl__input::placeholder { color: #77748A; }
.nl--light .nl__input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(118, 87, 255, .16); }
.nl--light .nl__btn { background: var(--graphite); color: var(--milk); }
.nl--light .nl__check input { accent-color: var(--violet); }
.nl--light .nl__msg { color: var(--ok); }
.nl--light .nl__msg.is-error { color: #B3261E; }
.od-nl .nl { padding: 22px; border-radius: 22px; background: var(--tint); }

/* Fotos de producto sobre gris muy claro, como las grandes perfumerías: el producto resalta (cristal, tapones y cajas
   blancas no se funden con la página) y todas las fotos parecen del mismo estudio, vengan de donde vengan: con multiply
   el blanco de la foto toma el gris del marco. Solo tarjetas y ficha (product.css); carrito, buscador y baldosas siguen
   en blanco. La foto entera (contain): nunca se corta el frasco. */
:root { --photo-bg: #F4F4F4; }
.pcard__media.pmedia:has(> .pmedia__img) { background: var(--photo-bg); }
.pcard__media .pmedia__img { object-fit: contain; mix-blend-mode: multiply; }

/* ───────── Campaña de la cabecera, redes del pie y nota Omnibus (22-11-2026) ───────── */
/* Campaña (shell.js → campaignBar; texto, enlace y fechas en Ajustes): una línea bajo la franja de ventajas */
.campaign { background: var(--lime); color: var(--graphite); }
.campaign__in { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; margin: 0; padding-block: 5px; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; }
.campaign .i { flex: none; width: 15px; height: 15px; }
.campaign a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.campaign a:hover, .campaign a:focus-visible { text-decoration-thickness: 2px; }
@media (forced-colors: active) { .campaign { border-bottom: 1px solid CanvasText; } }
/* Redes sociales en el pie (shell.js → shellBottom; URL en Ajustes) */
.footer__social { display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255, 253, 248, .3); border-radius: 50%; color: inherit; }
.footer__social a:hover, .footer__social a:focus-visible { border-color: var(--lime); color: var(--lime); }
.footer__social .i { width: 18px; height: 18px; }
/* Aclaración del precio tachado en la ficha (card.js → OMNIBUS_NOTE): es el más bajo de los últimos 30 días */
.price__omni { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; opacity: .72; }
