/* ===== Design System ===== */
:root {
  --bg: #faf9f7;
  --bg-soft: #f3f1ed;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e8e5df;
  --accent: #1c2b3a;
  --gold: #b08d3e;
  --radius: 10px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --ease: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--ease); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; }
input { font-family: inherit; font-size: 16px; } /* évite zoom iOS */

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 28px; }
}

/* ===== Topbar ===== */
.topbar {
  background: var(--accent);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 8px 16px;
  padding-top: max(8px, var(--safe-top));
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  font-weight: 400;
}
@media (min-width: 768px) {
  .topbar { font-size: 0.78rem; padding: 9px 16px; }
}

/* ===== Header ===== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}
@media (min-width: 768px) {
  .header__inner { height: 68px; }
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  flex-shrink: 0;
}
.logo__label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.logo__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 768px) {
  .logo__name { font-size: 1.4rem; }
}
.logo__ar {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 1px;
}

.nav {
  display: none;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: 28px;
  }
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: var(--ease);
}
.nav__link:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  position: relative;
  transition: var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover,
.icon-btn:focus-visible { background: var(--bg-soft); outline: none; }
.cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: var(--ease);
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 899px) {
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav.open .nav__link:last-child { border-bottom: none; }
}

/* ===== Search ===== */
.search {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.45);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.search.active { display: flex; }
.search__box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
}
.search__box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  min-width: 0;
}
.search__box button {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  padding: 8px;
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--ease);
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .btn { padding: 13px 26px; }
}
.btn--dark {
  background: var(--accent);
  color: white;
}
.btn--dark:hover,
.btn--dark:focus-visible {
  background: #2a3d4f;
  outline: none;
}
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}
.btn--full { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 40px 0 48px;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 56px 0 64px; }
}
@media (min-width: 1024px) {
  .hero { padding: 72px 0 80px; }
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1.1fr;
    text-align: left;
    gap: 48px;
  }
}
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero__desc {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.7;
  font-weight: 300;
}
@media (min-width: 900px) {
  .hero__desc { margin-left: 0; margin-right: 0; margin-bottom: 32px; font-size: 1.05rem; }
}
.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero__cta { justify-content: flex-start; gap: 12px; }
}

.hero__books {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 240px;
  margin: 0 auto;
  max-width: 360px;
}
@media (min-width: 600px) {
  .hero__books { height: 300px; max-width: 420px; }
}
@media (min-width: 900px) {
  .hero__books { height: 380px; max-width: none; margin: 0; }
}
.hero__book {
  width: 110px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  transition: var(--ease);
  position: absolute;
  display: block;
  overflow: hidden;
  aspect-ratio: 2/3;
}
.hero__book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 600px) {
  .hero__book { width: 140px; }
}
@media (min-width: 900px) {
  .hero__book { width: 180px; }
}
.hero__book--1 {
  left: 5%;
  bottom: 12px;
  transform: rotate(-8deg);
  z-index: 1;
}
.hero__book--2 {
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  bottom: 28px;
  z-index: 3;
  width: 125px;
}
@media (min-width: 600px) {
  .hero__book--2 { width: 155px; }
}
@media (min-width: 900px) {
  .hero__book--2 { width: 200px; bottom: 40px; }
}
.hero__book--3 {
  right: 5%;
  bottom: 8px;
  transform: rotate(7deg);
  z-index: 2;
}
@media (hover: hover) {
  .hero__book:hover { z-index: 5; }
  .hero__book--1:hover { transform: rotate(-8deg) translateY(-10px) scale(1.03); }
  .hero__book--2:hover { transform: translateX(-50%) rotate(2deg) translateY(-10px) scale(1.03); }
  .hero__book--3:hover { transform: rotate(7deg) translateY(-10px) scale(1.03); }
}

/* ===== Trust ===== */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
}
@media (min-width: 768px) {
  .trust { padding: 36px 0; }
}
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
}
.trust__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust__num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.4;
  flex-shrink: 0;
}
.trust__item h2 {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2px;
  font-family: var(--font-sans);
}
.trust__item p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
}

/* ===== Section common ===== */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
  }
}

/* ===== Filters ===== */
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .filters { width: auto; }
}
.filter {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  border-radius: 20px;
  border: 1px solid transparent;
  transition: var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.filter:hover { color: var(--ink); }
.filter.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ===== Catalogue ===== */
.catalogue {
  padding: 48px 0 56px;
}
@media (min-width: 768px) {
  .catalogue { padding: 64px 0 72px; }
}
@media (min-width: 1024px) {
  .catalogue { padding: 72px 0 80px; }
}
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 12px;
}
@media (min-width: 600px) {
  .products { gap: 24px 16px; }
}
@media (min-width: 768px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}
@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(4, 1fr); }
}
.product { transition: var(--ease); }
.product.hidden { display: none; }
.product__img {
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .product__img { margin-bottom: 14px; }
}
.product__img picture {
  width: 100%;
  height: 100%;
  display: block;
}
.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .product:hover .product__img img { transform: scale(1.04); }
}
.product__author {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .product__author { font-size: 0.75rem; margin-bottom: 4px; }
}
.product__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .product__title { font-size: 1.05rem; margin-bottom: 12px; }
}
.product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product__price {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
@media (min-width: 768px) {
  .product__price { font-size: 0.95rem; }
}
.add-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--ink);
  transition: var(--ease);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.add-btn:hover,
.add-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  outline: none;
}

/* ===== Collection ===== */
.collection {
  background: var(--bg-soft);
  padding: 48px 0;
}
@media (min-width: 768px) {
  .collection { padding: 64px 0; }
}
@media (min-width: 1024px) {
  .collection { padding: 80px 0; }
}
.collection__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .collection__inner {
    grid-template-columns: 1fr 1.2fr;
    text-align: left;
    gap: 48px;
  }
}
.collection__desc {
  margin: 16px auto 12px;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
  max-width: 420px;
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  .collection__desc { margin-left: 0; margin-right: 0; }
}
.collection__author {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
}
.collection__covers {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
@media (min-width: 600px) {
  .collection__covers { gap: 16px; }
}
.collection__cover {
  width: 100px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: var(--ease);
  display: block;
  overflow: hidden;
  aspect-ratio: 2/3;
}
.collection__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 600px) {
  .collection__cover { width: 130px; }
}
@media (min-width: 900px) {
  .collection__cover { width: 160px; }
}
@media (hover: hover) {
  .collection__cover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
  }
  .collection__cover:nth-child(2) { transform: translateY(-12px); }
  .collection__cover:nth-child(2):hover { transform: translateY(-20px); }
}

/* ===== About ===== */
.about {
  padding: 48px 0;
  background: var(--accent);
  color: white;
}
@media (min-width: 768px) {
  .about { padding: 64px 0; }
}
@media (min-width: 1024px) {
  .about { padding: 80px 0; }
}
.about .section-label { color: rgba(255,255,255,0.5); }
.about .section-title { color: white; }
.about__content {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .about__content { text-align: left; margin: 0; }
}
.about__content > p {
  margin: 16px 0 28px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.75;
  font-size: 0.95rem;
}
.about__stats {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .about__stats { justify-content: flex-start; gap: 48px; }
}
.about__stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 2px;
}
.about__stats span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .newsletter { padding: 48px 0; }
}
.newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
@media (min-width: 768px) {
  .newsletter__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 32px;
  }
}
.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.newsletter p {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}
@media (min-width: 480px) {
  .newsletter__form {
    flex-direction: row;
  }
}
.newsletter__form input {
  flex: 1;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  background: var(--surface);
  outline: none;
  transition: var(--ease);
  width: 100%;
}
.newsletter__form input:focus {
  border-color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0 0;
  background: var(--bg);
  padding-bottom: var(--safe-bottom);
}
@media (min-width: 768px) {
  .footer { padding-top: 56px; }
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
}
@media (min-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
}
.footer__brand p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 280px;
  line-height: 1.65;
}
.footer h3 {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-family: var(--font-sans);
}
.footer ul li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}
.footer a {
  display: inline-block;
  padding: 2px 0;
  min-height: 32px;
}
.footer a:hover { color: var(--ink); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

/* ===== Cart ===== */
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100%;
  height: 100dvh;
  background: var(--surface);
  z-index: 300;
  box-shadow: -8px 0 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  padding-bottom: var(--safe-bottom);
}
.cart.open { right: 0; }
.cart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  padding-top: max(18px, var(--safe-top));
}
.cart__header h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.cart__header button {
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  -webkit-overflow-scrolling: touch;
}
.cart__empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-weight: 300;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__info h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}
.cart-item__info p {
  font-size: 0.82rem;
  color: var(--muted);
}
.cart-item__remove {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px;
  flex-shrink: 0;
}
.cart-item__remove:hover { color: #c0392b; }
.cart__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.cart__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ===== Core Web Vitals helpers ===== */
.products {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.product__img {
  contain: layout paint;
}
img {
  content-visibility: auto;
}
/* Reduce font FOIT impact */
body {
  font-display: swap;
}
