/* =========================================================
   NEW APPLE — Tecnología y Accesorios
   Design system: papel casi blanco + tinta casi negra + grises
   fríos neutros, un único acento cobre (del iPhone 17 Pro naranja
   real de tienda). Space Grotesk (UI) + Newsreader itálica (eco
   editorial del tagline del logo).
   ========================================================= */

:root {
  /* ---- color: ink & paper (OKLCH) ---- */
  --ink:          oklch(14% 0 0);
  --ink-2:        oklch(24% 0 0);
  --ink-3:        oklch(38% 0 0);
  --paper:        oklch(99% 0.001 106);
  --paper-2:      oklch(96.3% 0.002 106);
  --line:         oklch(90% 0.002 106);
  --line-strong:  oklch(80% 0.002 106);

  --gray-1: oklch(97% 0 0);
  --gray-2: oklch(90% 0 0);
  --gray-3: oklch(74% 0 0);
  --gray-4: oklch(58% 0 0);
  --gray-5: oklch(40% 0 0);

  --accent:      oklch(68% 0.16 45);
  --accent-ink:  oklch(32% 0.09 45);
  --accent-soft: oklch(93% 0.03 45);

  --success: oklch(60% 0.14 148);
  --danger:  oklch(55% 0.19 25);
  --danger-soft: oklch(94% 0.04 25);

  /* ---- type ---- */
  --font-sans:  'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', ui-serif, Georgia, serif;

  --fs-display: clamp(2.25rem, 4vw + 1.1rem, 4rem);
  --fs-h1:      clamp(1.75rem, 2.6vw + 1rem, 2.75rem);
  --fs-h2:      clamp(1.375rem, 1.6vw + 1rem, 1.875rem);
  --fs-h3:      1.125rem;
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* ---- spacing ---- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 2.5rem; --sp-8: 3rem;
  --sp-9: 4rem; --sp-10: 5rem; --sp-11: 6.5rem;

  --container: 1280px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* ---- radii ---- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* ---- shadow ---- */
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.07), 0 1px 1px oklch(0% 0 0 / 0.04);
  --shadow-md: 0 10px 28px oklch(0% 0 0 / 0.11), 0 2px 8px oklch(0% 0 0 / 0.06);
  --shadow-lg: 0 28px 72px oklch(0% 0 0 / 0.20), 0 10px 24px oklch(0% 0 0 / 0.10);

  /* ---- motion ---- */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* ---- semantic z-index ---- */
  --z-base: 0;
  --z-quicknav: 10;
  --z-header: 100;
  --z-floating-whatsapp: 150;
  --z-sheet-overlay: 200;
  --z-sheet: 210;
  --z-toast: 400;

  --header-h: 64px;
  color-scheme: light;
}

@media (min-width: 640px) { :root { --header-h: 76px; } }

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* several components below set their own unconditional `display` (flex/inline-flex) with the
   same specificity as the UA [hidden] rule; without this, JS toggling the hidden attribute would
   not actually hide them. [hidden] must always win. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; height: 100dvh; }

img, video { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
fieldset { border: none; padding: 0; }
legend { padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100%; left: var(--sp-4); z-index: 500;
  background: var(--ink); color: var(--paper); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm); transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 46px; padding: 0 var(--sp-6); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--lg { height: 52px; padding: 0 var(--sp-7); font-size: 0.95rem; }
.btn--sm { height: 38px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-2); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-light { background: oklch(100% 0 0 / 0.14); color: #fff; backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.4); }
.btn--ghost-light:hover { background: oklch(100% 0 0 / 0.22); }
.btn--ghost-dark { background: oklch(0% 0 0 / 0.06); color: var(--ink); box-shadow: inset 0 0 0 1.5px oklch(0% 0 0 / 0.14); }
.btn--ghost-dark:hover { background: oklch(0% 0 0 / 0.1); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: oklch(100% 0 0 / 0.18);
  transition: transform 200ms var(--ease-out);
}
.btn--primary .btn__icon { background: oklch(100% 0 0 / 0.16); }
.btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.05); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.icon-btn:hover { background: var(--gray-1); }
.icon-btn:active { transform: scale(0.94); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-sm); }
.link-arrow svg { transition: transform 200ms var(--ease-out); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ================= LAYOUT ================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ================= HEADER ================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
  color: #fff;
}
.site-header[data-scrolled="true"] {
  background: oklch(99% 0.001 106 / 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: var(--sp-4);
  padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand__logo { height: 28px; width: auto; transition: filter 200ms var(--ease-out); }
@media (min-width: 640px) { .brand__logo { height: 36px; } }
.site-header[data-scrolled="false"] .brand__logo { filter: brightness(0) invert(1); }

.main-nav { display: none; align-items: center; gap: var(--sp-6); margin-right: auto; margin-left: var(--sp-7); }
.main-nav a { font-size: var(--fs-sm); font-weight: 500; opacity: 0.88; transition: opacity 160ms; }
.main-nav a:hover { opacity: 1; }
@media (min-width: 960px) { .main-nav { display: flex; } }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-1); }
.site-header .icon-btn { color: inherit; }
.site-header[data-scrolled="false"] .icon-btn:hover { background: oklch(100% 0 0 / 0.14); }

.nav-toggle { display: inline-flex; }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle__bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor;
  transition: transform 260ms var(--ease-drawer), top 260ms var(--ease-drawer), opacity 160ms;
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 100%; transform: translateY(-100%); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--ink);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: transform 220ms var(--ease-drawer);
}
.cart-btn__count.is-bump { animation: cartBump 320ms var(--ease-drawer); }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---- search panel ---- */
.search-panel {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.search-panel[data-open="true"] { opacity: 1; transform: translateY(0); }
.search-panel__inner { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--gutter); color: var(--gray-4); max-width: var(--container); margin-inline: auto; }
.search-panel__inner input { flex: 1; border: none; outline: none; background: none; font-size: 1.05rem; color: var(--ink); }
.search-panel__inner input::placeholder { color: var(--gray-3); }
.search-panel__clear, .search-panel__close { color: var(--gray-4); font-size: 1.4rem; line-height: 1; width: 30px; height: 30px; }
.search-panel__results { max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) var(--sp-4); max-height: 60vh; overflow-y: auto; }
.search-result {
  position: relative; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-2); border-radius: var(--r-md);
  transition: background-color 140ms;
}
.search-result:hover { background: var(--gray-1); }
.search-result img { width: 44px; height: 44px; object-fit: contain; background: var(--gray-1); border-radius: var(--r-sm); padding: 4px; }
.search-result__name { font-weight: 600; font-size: var(--fs-sm); }
.search-result__meta { font-size: var(--fs-xs); color: var(--gray-4); }
.search-result mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 3px; }
.search-empty { padding: var(--sp-6) var(--sp-2); text-align: center; color: var(--gray-4); font-size: var(--fs-sm); }

/* ================= MOBILE NAV ================= */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: var(--sp-9) var(--gutter);
  padding-top: calc(var(--header-h) + var(--sp-6));
}
.mobile-nav nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-nav a {
  font-size: clamp(1.6rem, 8vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em;
  padding: var(--sp-2) 0; opacity: 0; transform: translateY(14px);
  transition: opacity 340ms var(--ease-out), transform 340ms var(--ease-out);
}
.mobile-nav[data-open="true"] a { opacity: 1; transform: translateY(0); }
.mobile-nav nav a:nth-child(1) { transition-delay: 40ms; }
.mobile-nav nav a:nth-child(2) { transition-delay: 80ms; }
.mobile-nav nav a:nth-child(3) { transition-delay: 120ms; }
.mobile-nav nav a:nth-child(4) { transition-delay: 160ms; }
.mobile-nav nav a:nth-child(5) { transition-delay: 200ms; }
.mobile-nav nav a:nth-child(6) { transition-delay: 240ms; }
.mobile-nav__whatsapp {
  margin-top: var(--sp-8); display: inline-flex; align-items: center; gap: var(--sp-3);
  color: var(--accent); font-weight: 600;
}

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100dvh; overflow: hidden; background: var(--ink);
  display: flex; align-items: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video--mobile { display: none; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, oklch(0% 0 0 / 0.42) 0%, oklch(0% 0 0 / 0.12) 46%, transparent 62%),
              linear-gradient(0deg, oklch(0% 0 0 / 0.38) 0%, transparent 30%);
}
.hero__logo-badge { display: none; }
.hero__content {
  position: relative; z-index: 1; color: #fff; padding: 0 var(--gutter);
  padding-top: var(--header-h); max-width: 560px;
}
.hero__title {
  font-size: var(--fs-display); letter-spacing: -0.025em; line-height: 1.04;
  text-wrap: balance;
}
.hero__subtitle {
  margin-top: var(--sp-4); font-size: clamp(1rem, 1.4vw + 0.7rem, 1.2rem);
  color: oklch(100% 0 0 / 0.86); max-width: 30ch;
}
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero__scroll-cue {
  position: absolute; bottom: var(--sp-6); left: 50%; transform: translateX(-50%);
  color: #fff; opacity: 0.75; animation: heroCue 1.8s var(--ease-in-out) infinite;
}
@keyframes heroCue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue { animation: none; } }

@media (max-width: 860px) {
  .hero { min-height: 100dvh; align-items: flex-start; }
  .hero__video--desktop { display: none; }
  .hero__video--mobile { display: block; }
  .hero__scrim {
    background: linear-gradient(180deg, oklch(0% 0 0 / 0.5) 0%, transparent 22%, transparent 58%, oklch(0% 0 0 / 0.55) 100%);
  }
  .hero__logo-badge {
    display: block; position: absolute; left: 50%; top: 41%; z-index: 1;
    width: clamp(140px, 38vw, 210px); height: auto; pointer-events: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 14px oklch(0% 0 0 / 0.5));
  }
  .hero__content {
    max-width: 100%; padding-top: calc(var(--header-h) + var(--sp-6));
    text-align: left;
  }
  .hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero__subtitle { max-width: 26ch; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* progressive reveal, tied to JS toggling .is-visible once the drone clears the frame */
  .hero__title, .hero__subtitle, .hero__actions {
    opacity: 0; transform: translateY(16px);
    transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
  }
  .hero__content.is-visible .hero__title { opacity: 1; transform: translateY(0); }
  .hero__content.is-visible .hero__subtitle { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
  .hero__content.is-visible .hero__actions { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__subtitle, .hero__actions { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ================= QUICKNAV ================= */
.quicknav {
  position: sticky; top: var(--header-h); z-index: var(--z-quicknav);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.quicknav__track {
  display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-3) var(--gutter);
  scrollbar-width: none;
}
.quicknav__track::-webkit-scrollbar { display: none; }
.quicknav__chip {
  flex: none; padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; color: var(--gray-5); background: var(--gray-1);
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease-out);
}
.quicknav__chip:hover { background: var(--gray-2); }
.quicknav__chip:active { transform: scale(0.96); }
.quicknav__chip.is-active { background: var(--ink); color: var(--paper); }

/* ================= CATALOG ================= */
.catalog { padding: var(--sp-9) var(--gutter) var(--sp-8); max-width: var(--container); margin-inline: auto; }
.catalog__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
.catalog__head h2 { font-size: var(--fs-h1); }
.catalog__count { color: var(--gray-4); font-size: var(--fs-sm); white-space: nowrap; }

.catalog__toolbar {
  margin-top: var(--sp-6); display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap;
}
.toolbar-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: var(--sp-2);
  background: var(--gray-1); border-radius: var(--r-pill); padding: 0 var(--sp-4); height: 46px;
  color: var(--gray-4); transition: box-shadow 160ms;
}
.toolbar-search:focus-within { box-shadow: 0 0 0 1.5px var(--ink); }
.toolbar-search input { flex: 1; background: none; border: none; outline: none; height: 100%; color: var(--ink); font-size: var(--fs-sm); }
.toolbar-search input::placeholder { color: var(--gray-3); }
.toolbar-search__clear { color: var(--gray-4); font-size: 1.2rem; }

.filter-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px;
  padding: 0 3px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: 10px; margin-left: 2px;
}
.sort-select { position: relative; }
.sort-select select {
  appearance: none; height: 38px; padding: 0 var(--sp-8) 0 var(--sp-4); border-radius: var(--r-pill);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: var(--fs-xs); font-weight: 600; color: var(--ink);
}

.active-filters { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.active-filter {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 600;
}
.active-filter button { font-size: 1rem; line-height: 1; }
.active-filters__clear { font-size: var(--fs-xs); font-weight: 600; color: var(--gray-4); text-decoration: underline; text-underline-offset: 2px; }

/* ---- product grid & card ---- */
.product-grid {
  margin-top: var(--sp-6); display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--paper-2);
  padding: var(--sp-3); position: relative; opacity: 0; transform: translateY(10px);
  animation: cardIn 460ms var(--ease-out) forwards;
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .product-card:hover .product-card__img--alt { opacity: 1; }
  .product-card:hover .product-card__img--main { opacity: 0; }
}
.product-card__media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--gray-1); box-shadow: inset 0 0 0 1px var(--line);
}
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease-out); }
.product-card__img--alt { opacity: 0; }
.product-card__icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-3); padding: 22%; }
.product-card__icon svg { width: 100%; height: 100%; }

/* Miniatura fuera de la tarjeta (carrito, buscador, resumen del pedido).
   NO lleva position:absolute a propósito: ver el comentario de productImage()
   en script.js. Con absolute se anclaba al cajón entero y tapaba los botones. */
.thumb-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-icono { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--gray-3); padding: 16%; }
.thumb-icono svg { width: 100%; height: 100%; }
.product-card__badge {
  position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 1;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
}
.product-card__badge--accent { background: var(--accent); color: var(--ink); }
.product-card__fav {
  position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: oklch(100% 0 0 / 0.85); backdrop-filter: blur(6px); color: var(--ink-3);
  transition: transform 160ms var(--ease-out), color 160ms;
}
.product-card__fav:active { transform: scale(0.88); }
.product-card__fav[aria-pressed="true"] { color: var(--danger); }
.product-card__fav svg { transition: fill 160ms; }
.product-card__fav[aria-pressed="true"] svg { fill: currentColor; }

.product-card__body { padding: var(--sp-3) var(--sp-1) var(--sp-1); display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-card__brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-4); }
.product-card__name {
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__colors { display: flex; gap: 4px; margin-top: 2px; }
.product-card__swatch { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.15); }
.product-card__price-row { margin-top: var(--sp-2); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.product-card__price { font-weight: 700; font-size: var(--fs-sm); }
.product-card__price-old { font-size: var(--fs-xs); color: var(--gray-3); text-decoration: line-through; margin-right: 4px; }
.product-card__add {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: transform 160ms var(--ease-out), background-color 160ms;
}
.product-card__add:hover { background: var(--ink-2); }
.product-card__add:active { transform: scale(0.88); }
.product-card__add[disabled] { background: var(--gray-2); color: var(--gray-4); }
.product-card__stock { font-size: var(--fs-xs); color: var(--danger); margin-top: 2px; }

.product-card__skeleton .product-card__media,
.skeleton-card .product-card__media { background: linear-gradient(100deg, var(--gray-1) 30%, var(--gray-2) 50%, var(--gray-1) 70%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- empty state ---- */
.catalog-empty { text-align: center; padding: var(--sp-10) var(--sp-4); }
.catalog-empty__title { font-size: var(--fs-h2); font-weight: 600; }
.catalog-empty__hint { margin-top: var(--sp-2); color: var(--gray-4); }
.catalog-empty__actions { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.catalog__more { display: flex; justify-content: center; margin-top: var(--sp-8); }

/* ================= FEATURED RAIL ================= */
.featured { padding: var(--sp-8) 0; background: var(--paper-2); }
.featured__head { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.featured__head h2 { font-size: var(--fs-h1); }
.featured__rail {
  margin-top: var(--sp-5); display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x proximity;
  padding: var(--sp-1) var(--gutter) var(--sp-2);
}
.featured__rail::-webkit-scrollbar { display: none; }
.featured__rail .product-card { min-width: 200px; scroll-snap-align: start; background: var(--paper); }
@media (min-width: 640px) { .featured__rail .product-card { min-width: 230px; } }

/* ================= BRAND BLOCKS ================= */
.brand-blocks { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--line); }
@media (min-width: 780px) { .brand-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brand-block {
  position: relative; min-height: 240px; display: flex; align-items: flex-end; padding: var(--sp-6);
  background-size: cover; background-position: center;
}
@media (min-width: 780px) { .brand-block { min-height: 380px; } }
.brand-block--apple { background: var(--paper); }
.brand-block--dji { background: var(--ink); }
.brand-block--jbl { background: linear-gradient(155deg, oklch(24% 0.01 40) 0%, oklch(11% 0 0) 70%); }
.brand-block__text h3 { font-size: var(--fs-h1); }
.brand-block--apple .brand-block__text h3 { color: var(--ink); }
.brand-block--dji .brand-block__text h3, .brand-block--jbl .brand-block__text h3 { color: #fff; }
.brand-block__text p { margin-top: var(--sp-1); font-size: var(--fs-sm); }
.brand-block--apple .brand-block__text p { color: var(--gray-5); }
.brand-block--dji .brand-block__text p, .brand-block--jbl .brand-block__text p { color: oklch(100% 0 0 / 0.72); }
.brand-block__text .btn { margin-top: var(--sp-4); }

/* ================= TRUST ================= */
.trust { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .trust { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; } }
.trust__media { aspect-ratio: 4/3; overflow: hidden; }
@media (min-width: 860px) { .trust__media { aspect-ratio: auto; } }
.trust__media img { width: 100%; height: 100%; object-fit: cover; }
.trust__text { padding: var(--sp-8) var(--gutter); display: flex; flex-direction: column; justify-content: center; background: var(--paper-2); }
.trust__text h2 { font-size: var(--fs-h1); max-width: 16ch; }
.trust__text > p { margin-top: var(--sp-3); color: var(--gray-5); max-width: 42ch; }
.trust__list { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.trust__list li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); }
.trust__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.trust__text .link-arrow { margin-top: var(--sp-6); }

/* ================= CTA BAND ================= */
.cta-band { text-align: center; padding: var(--sp-10) var(--gutter); background: var(--ink); color: #fff; }
.cta-band h2 { font-size: var(--fs-h1); max-width: 22ch; margin-inline: auto; }
.cta-band p { margin-top: var(--sp-3); color: oklch(100% 0 0 / 0.68); }
.cta-band .btn { margin-top: var(--sp-6); }

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); color: oklch(100% 0 0 / 0.78); padding: var(--sp-8) var(--gutter) var(--sp-5); }
.site-footer__top {
  max-width: var(--container); margin-inline: auto; display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr; padding-bottom: var(--sp-7); border-bottom: 1px solid oklch(100% 0 0 / 0.12);
}
@media (min-width: 640px) { .site-footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.site-footer__brand img { height: 20px; width: auto; margin-bottom: var(--sp-3); }
.site-footer__brand p { max-width: 32ch; font-size: var(--fs-sm); color: oklch(100% 0 0 / 0.55); }
.site-footer__col { display: flex; flex-direction: column; gap: var(--sp-3); }
.site-footer__col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: oklch(100% 0 0 / 0.42); }
.site-footer__col a { font-size: var(--fs-sm); transition: color 160ms; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { max-width: var(--container); margin-inline: auto; padding-top: var(--sp-5); font-size: var(--fs-xs); color: oklch(100% 0 0 / 0.45); }

/* ================= FLOATING WHATSAPP ================= */
.floating-whatsapp {
  position: fixed; right: max(var(--sp-5), env(safe-area-inset-right));
  bottom: max(var(--sp-5), env(safe-area-inset-bottom));
  z-index: var(--z-floating-whatsapp);
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform 200ms var(--ease-out);
}
.floating-whatsapp:hover { transform: scale(1.06); }
.floating-whatsapp:active { transform: scale(0.94); }
.floating-whatsapp.is-hidden { transform: translateY(120%) scale(0.8); opacity: 0; pointer-events: none; }

/* ================= SHEETS (filter / product modal / cart) shared ================= */
.sheet-overlay {
  position: fixed; inset: 0; z-index: var(--z-sheet-overlay); background: oklch(0% 0 0 / 0.45);
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.sheet-overlay[data-open="true"] { opacity: 1; }

.sheet__handle { width: 36px; height: 4px; border-radius: var(--r-pill); background: var(--gray-2); margin: var(--sp-3) auto 0; flex: none; }
@media (min-width: 860px) { .sheet__handle { display: none; } }

/* ---- filter sheet ---- */
.filter-sheet {
  position: fixed; z-index: var(--z-sheet); background: var(--paper); display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; max-height: 84dvh; border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%); transition: transform 340ms var(--ease-drawer);
}
.filter-sheet[data-open="true"] { transform: translateY(0); }
@media (min-width: 860px) {
  .filter-sheet {
    left: auto; top: 0; bottom: 0; right: 0; width: 400px; max-height: none;
    border-radius: 0; transform: translateX(100%); transition: transform 320ms var(--ease-drawer);
  }
  .filter-sheet[data-open="true"] { transform: translateX(0); }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); }
.sheet__head h3 { font-size: var(--fs-h2); }
.sheet__body { padding: 0 var(--sp-5) var(--sp-5); overflow-y: auto; flex: 1; }
.filter-group { padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group legend { font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); }
.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.filter-chip {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600;
  background: var(--gray-1); color: var(--gray-5); box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 160ms, color 160ms;
}
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sheet__foot { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom)); }
.sheet__foot .btn { flex: 1; }

/* ---- product modal ---- */
.product-modal {
  position: fixed; z-index: var(--z-sheet); background: var(--paper);
  left: 0; right: 0; bottom: 0; max-height: 94dvh; border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%); transition: transform 360ms var(--ease-drawer);
  overflow-y: auto; overscroll-behavior: contain;
}
.product-modal[data-open="true"] { transform: translateY(0); }
@media (min-width: 860px) {
  .product-modal {
    left: 50%; top: 50%; bottom: auto; right: auto; width: min(920px, 92vw); max-height: 86vh;
    border-radius: var(--r-xl); transform: translate(-50%, -50%) scale(0.96); opacity: 0;
    transition: transform 260ms var(--ease-out), opacity 220ms var(--ease-out);
  }
  .product-modal[data-open="true"] { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.product-modal__close {
  position: sticky; top: var(--sp-3); left: 100%; margin-right: var(--sp-3); z-index: 2;
  background: oklch(100% 0 0 / 0.9); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); font-size: 1.3rem;
}
.product-modal__body { padding: 0 var(--sp-5) var(--sp-6); margin-top: -40px; }
@media (min-width: 860px) { .product-modal__body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--sp-7); padding: var(--sp-3) var(--sp-7) var(--sp-7); margin-top: 0; } }

.pdp-gallery__main {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-lg); background: var(--gray-1); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pdp-gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pdp-gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); overflow-x: auto; }
.pdp-gallery__thumb {
  flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--gray-1);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow 160ms;
}
.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp-gallery__thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.pdp-info { padding-top: var(--sp-5); }
@media (min-width: 860px) { .pdp-info { padding-top: var(--sp-4); } }
.pdp-info__brand { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-4); }
.pdp-info__name { font-size: var(--fs-h2); margin-top: 2px; }
.pdp-info__price-row { display: flex; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-2); }
.pdp-info__price { font-size: 1.375rem; font-weight: 700; }
.pdp-info__price-old { color: var(--gray-3); text-decoration: line-through; }
.pdp-info__desc { margin-top: var(--sp-4); color: var(--gray-5); font-size: var(--fs-sm); line-height: 1.55; }

.pdp-variant { margin-top: var(--sp-5); }
.pdp-variant__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-4); display: flex; gap: 6px; }
.pdp-variant__value { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.pdp-variant__options { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.pdp-option {
  min-width: 42px; height: 42px; padding: 0 var(--sp-3); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); transition: box-shadow 160ms, background-color 160ms;
}
.pdp-option[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--gray-1); }
.pdp-option[disabled] { opacity: 0.35; text-decoration: line-through; pointer-events: none; }
.pdp-option--swatch { width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.15); position: relative; }
.pdp-option--swatch[aria-pressed="true"]::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }

.pdp-features { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.pdp-features li { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--gray-5); }
.pdp-features li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

.pdp-qty { margin-top: var(--sp-6); display: flex; align-items: center; gap: var(--sp-4); }
.qty-stepper { display: flex; align-items: center; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.qty-stepper button { width: 38px; height: 38px; font-size: 1.1rem; }
.qty-stepper button:disabled { opacity: 0.3; }
.qty-stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: var(--fs-sm); }
.pdp-stock { font-size: var(--fs-xs); color: var(--gray-4); }
.pdp-stock--low { color: var(--danger); font-weight: 600; }

.pdp-actions { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); position: sticky; bottom: 0; background: var(--paper); padding-bottom: max(var(--sp-2), env(safe-area-inset-bottom)); }
.pdp-actions .btn { width: 100%; }

.pdp-related { margin-top: var(--sp-8); }
.pdp-related h4 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.pdp-related__row { display: flex; gap: var(--sp-3); overflow-x: auto; }
.pdp-related .product-card { min-width: 150px; }

/* ================= CART DRAWER ================= */
.cart-drawer {
  position: fixed; z-index: var(--z-sheet); background: var(--paper); display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%); transition: transform 340ms var(--ease-drawer);
}
.cart-drawer[data-open="true"] { transform: translateY(0); }
@media (min-width: 780px) {
  .cart-drawer {
    left: auto; top: 0; bottom: 0; right: 0; width: min(420px, 100vw); max-height: none;
    border-radius: 0; transform: translateX(100%); transition: transform 320ms var(--ease-drawer);
  }
  .cart-drawer[data-open="true"] { transform: translateX(0); }
}
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-size: var(--fs-h2); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5); padding-bottom: max(var(--sp-5), env(safe-area-inset-bottom)); }

.cart-empty { text-align: center; padding: var(--sp-10) var(--sp-3); }
.cart-empty__title { font-weight: 600; font-size: var(--fs-h3); }
.cart-empty__hint { margin-top: var(--sp-2); color: var(--gray-4); font-size: var(--fs-sm); }
.cart-empty .btn { margin-top: var(--sp-5); }

.cart-item { display: flex; gap: var(--sp-3); padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
/* position:relative + overflow:hidden como cinturón: si algún día vuelve a
   colarse aquí una imagen con position:absolute, queda encerrada en estos
   68px en vez de estirarse sobre todo el cajón y comerse los clics. */
.cart-item__img { position: relative; overflow: hidden; width: 68px; height: 68px; border-radius: var(--r-sm); background: var(--gray-1); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.cart-item__variant { font-size: var(--fs-xs); color: var(--gray-4); margin-top: 2px; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); }
.cart-item__price { font-weight: 700; font-size: var(--fs-sm); }
.cart-item__qty { display: flex; align-items: center; gap: var(--sp-2); }
.cart-item__qty button { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.9rem; }
.cart-item__remove { font-size: var(--fs-xs); color: var(--gray-4); text-decoration: underline; text-underline-offset: 2px; margin-top: var(--sp-2); }
.cart-item__remove:hover { color: var(--danger); }
.cart-item.is-removing { animation: cartItemOut 220ms var(--ease-out) forwards; }
@keyframes cartItemOut { to { opacity: 0; transform: translateX(24px); max-height: 0; } }

.cart-summary { margin-top: var(--sp-2); padding-top: var(--sp-4); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--gray-5); padding-block: 3px; }
.cart-summary__row--total { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: var(--sp-2); }
.cart-drawer__footer { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.cart-drawer__footer .btn { width: 100%; }
.cart-continue { text-align: center; font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- checkout form ---- */
.checkout-step { display: flex; flex-direction: column; gap: var(--sp-4); }
.checkout-back { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--gray-5); align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-xs); font-weight: 700; color: var(--gray-5); }
.field input, .field textarea {
  border: none; outline: none; background: var(--gray-1); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 160ms;
}
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.field textarea { resize: vertical; min-height: 72px; }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 1.5px var(--danger); background: var(--danger-soft); }
.field__error { font-size: var(--fs-xs); color: var(--danger); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-3); }

.checkout-review-item { position: relative; display: flex; gap: var(--sp-3); align-items: center; padding-block: var(--sp-2); font-size: var(--fs-sm); }
.checkout-review-item img { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--gray-1); object-fit: contain; padding: 4px; flex: none; }
.checkout-review-item__meta { color: var(--gray-4); font-size: var(--fs-xs); }
.checkout-review-block { margin-top: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--gray-1); font-size: var(--fs-sm); }
.checkout-review-block dt { font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-4); margin-top: var(--sp-3); }
.checkout-review-block dt:first-child { margin-top: 0; }
.checkout-review-block dd { margin: 0; }

/* ================= TOAST ================= */
/* pointer-events:none NO es un detalle: el aviso vive en z-index 400, por
   encima del cajón del carrito (210). En móvil el cajón es una hoja inferior
   y su botón "Continuar" cae justo donde aparece el aviso, así que durante
   los 2,2 s que dura "Producto añadido al carrito" el aviso se comía el clic
   y el carrito parecía roto. Un aviso solo informa: nunca debe recibir clics. */
.toast {
  position: fixed; left: 50%; bottom: max(var(--sp-6), env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateX(-50%) translateY(140%); z-index: var(--z-toast);
  display: flex; align-items: center; gap: var(--sp-2); background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); font-weight: 600; transition: transform 320ms var(--ease-drawer);
  max-width: calc(100vw - 2 * var(--gutter));
}
.toast[data-open="true"] { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--success); flex: none; }

/* ================= RESPONSIVE: 2-col compaction already grid-native above ================= */

body:has(.mobile-nav[data-open="true"]),
body:has(.filter-sheet[data-open="true"]),
body:has(.product-modal[data-open="true"]),
body:has(.cart-drawer[data-open="true"]) { overflow: hidden; }

@media (max-width: 640px) {
  .container, .catalog, .featured__head { padding-inline: var(--gutter); }
}
