/* =========================================================
   Eyeglass Universe — main stylesheet
   ========================================================= */

:root {
  --color-ink: #1B1D2A;
  --color-ink-soft: #424B4D;
  --color-cream: #F6F4F0;
  --color-white: #FFFFFF;
  --color-rust: #D5866A;
  --color-rust-dark: #E23F0E;
  --color-terracotta: #D68D78;
  --color-sage: #CBDECB;
  --color-peach: #FCBCA3;
  --color-border: #C9C9C9;

  --font-display: "Optician sans", "DM Serif Display", serif;
  --font-serif-italic: "Playfair Display", serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;

  --radius-lg: 15px;
  --radius-md: 5px;
  --shadow-card: 0 0 10px rgba(0, 0, 0, .5);
  --wrap-width: 1280px;
}

@font-face {
  font-family: "Optician sans";
  src: url("/assets/fonts/optician-sans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-italic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  /* Unitless so it scales with each element's own font-size. A fixed value here
     (the Elementor kit used 1.5rem) means anything larger than 24px gets a
     line-height shorter than its own text, and wrapped headings collide. */
  line-height: 1.35;
  color: var(--color-ink);
  background: var(--color-cream);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
/* Headings run tight, matching the original's line-height:1em. Individual
   components override this where the design calls for something else. */
h1, h2, h3, h4 { line-height: 1.05; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
em {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--color-terracotta);
}

.wrap {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding-inline: 25px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.hover-grow { transition: transform .3s; }
.hover-grow:hover { transform: scale(1.1); }
.hover-shrink { transition: transform .3s; }
.hover-shrink:hover { transform: scale(.92); }

.divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  max-width: var(--wrap-width);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-ink-soft);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 25px;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: var(--color-rust); }
.btn--block { display: flex; justify-content: center; width: 100%; }
.btn--ghost {
  background: var(--color-cream);
  color: var(--color-ink);
}
.btn--ghost:hover { background: var(--color-rust); color: var(--color-white); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 100px;
  border: 1px solid var(--color-ink);
  transition: background-color .3s, color .3s;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

body.no-scroll { overflow: hidden; }

/* ---------- Top announcement bar ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-ink-soft);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 25px;
}
.topbar__notices { display: flex; flex-wrap: wrap; gap: 25px; }
.topbar__phone { display: flex; align-items: center; gap: 8px; }
.topbar__phone svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 25px;
}
.site-header__logo img { width: 200px; border-radius: var(--radius-md); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}
.nav__item[aria-current="page"] { text-decoration: underline; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-ink);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-heading);
}
.search input {
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.1rem;
  width: 140px;
}
.search input:focus { outline: none; }

.icon-btn--wish:hover { background: var(--color-rust-dark); color: var(--color-white); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 120px 25px;
  background: url("/assets/images/hero-image-2.jpg") center / cover no-repeat;
  position: relative;
}
.hero__card {
  position: relative;
  max-width: 797px;
  text-align: center;
  background: rgba(255, 255, 255, .48);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 35px 25px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(62px, 9vw, 111px);
  font-weight: 400;
  text-transform: capitalize;
  line-height: .92;
  /* Dark navy, as in the original. Cream here made the headline nearly
     invisible against the translucent white card. */
  color: var(--color-ink);
}
.hero__title--accent {
  font-family: var(--font-serif-italic);
  font-size: clamp(48px, 7vw, 86px);
  font-style: italic;
  font-weight: 500;
  color: var(--color-rust);
  display: block;
}
.hero__tagline {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  color: var(--color-ink);
  padding-top: 25px;
}
.hero__cta { margin-top: 25px; }

/* The frosted nav floats over the hero photo, which is what makes the
   backdrop-filter blur visible. -91px is exactly the header's height
   (5px padding + 81px logo + 5px padding), so the hero's top edge lines up
   with the header's. Desktop only: below this width the header can wrap to a
   second row, and a fixed offset would then clip the hero card. */
@media (min-width: 1025px) {
  .hero {
    margin-top: -91px;
    background-attachment: fixed;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--color-sage);
  box-shadow: var(--shadow-card);
  padding: 15px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .6px;
  white-space: nowrap;
  padding-right: .4em;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Philosophy ---------- */
.philosophy {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 60px 25px;
}
.philosophy__statement {
  flex: 1 1 480px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 500;
  line-height: 1.25;
}
.philosophy__aside { flex: 1 1 320px; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--color-rust);
  border-left: 1px solid var(--color-ink);
  padding-left: 12px;
  margin-bottom: 16px;
}
.philosophy__text {
  font-family: var(--font-heading);
  font-size: 20px;
  max-width: 30ch;
}
.philosophy__photo {
  margin-top: 25px;
  height: 160px;
  border-radius: var(--radius-md);
  /* The slideshow layers main.js injects are absolutely positioned, so this
     needs to be their containing block — without it they escape and size
     themselves against the whole document. */
  position: relative;
  overflow: hidden;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 40px 25px;
}
.trust-bar__item {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid var(--color-ink);
}
.trust-bar__item:last-child { border-right: 0; }
.trust-bar__item svg { width: 20px; height: 20px; flex-shrink: 0; }
.trust-bar__item span { font-family: var(--font-heading); font-size: 1.1rem; }

/* ---------- Section heading ---------- */
.section-heading {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 40px 25px 20px;
}
.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
}
.section-heading__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.section-heading__note {
  font-family: var(--font-heading);
  font-size: 20px;
  max-width: 46ch;
}

/* ---------- Collections ---------- */
.collection-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 25px;
}
.collection-row:nth-child(even) { flex-direction: row-reverse; }
.collection-row__media {
  flex: 1 1 480px;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.collection-row__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.collection-row__media img.is-active { opacity: 1; }
.collection-row__body { flex: 1 1 320px; }
.collection-row__body h3 {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--color-ink);
}
.collection-row__body p {
  font-family: var(--font-heading);
  font-size: 20px;
  padding-block: 20px;
}

/* ---------- Featured frames ---------- */
.featured-nav {
  display: flex;
  gap: 10px;
}
.featured-track {
  display: flex;
  gap: 25px;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 25px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.featured-track::-webkit-scrollbar { display: none; }

.product-card {
  scroll-snap-align: start;
  flex: 0 0 min(260px, 80vw);
  background: var(--color-sage);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 15px;
  transition: transform .3s;
}
.product-card:hover { transform: scale(1.02); }
.product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card__brand {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #747474;
}
.product-card__photo {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 15px 5px;
  margin-top: 15px;
}
.product-card__photo img { border-radius: 10px; }
.product-card__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  padding-top: 5px;
}
.product-card__swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
}
.swatch {
  width: 22px; height: 22px;
  border-radius: 100px;
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}
.product-card__price {
  font-family: var(--font-heading);
  font-weight: 500;
}
.product-card__add {
  width: 34px; height: 34px;
  border-radius: 100px;
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
}
.product-card__add svg { width: 16px; height: 16px; }

/* ---------- Compare (scroll reveal) ---------- */
.compare {
  position: relative;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 25px 50px;
}
.compare__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare__frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare__overlay {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.compare__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 4px;
  background: var(--color-cream);
  will-change: transform;
}
.compare__label {
  position: absolute;
  left: 20px; top: 20px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 47px);
  font-weight: 500;
  text-transform: lowercase;
  color: var(--color-cream);
  padding: 5px;
}

/* ---------- How it works ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 25px;
}
.step { flex: 1 1 300px; }
.step:nth-child(odd) { transform: rotate(-2deg); }
.step:nth-child(even) { transform: rotate(2deg); }
.step__number {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-rust);
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 500;
  padding-top: 15px;
}
.step p {
  font-family: var(--font-heading);
  font-size: 20px;
  padding-top: 15px;
  max-width: 32ch;
}

/* ---------- CTA ---------- */
.cta {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 50px 25px;
}
.cta__photo {
  background: url("/assets/images/img-1.jpg") center / cover no-repeat;
  border-radius: 25px;
  box-shadow: var(--shadow-card);
  padding: 60px 25px;
  display: flex;
  justify-content: center;
}
.cta__panel {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 40px 25px;
}
.cta__panel h2 { padding-block: 16px 25px; }
.cta__panel .eyebrow { display: inline-flex; }

/* ---------- Brands grid ---------- */
.brands {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 25px;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.brand-card {
  padding: 50px 25px 25px;
  border: .5px solid var(--color-border);
  background: var(--color-rust);
  color: var(--color-cream);
  text-align: right;
  transition: background-color .3s;
}
.brand-card:hover { background: var(--color-peach); }
.brand-card img {
  margin-left: auto;
  border-radius: var(--radius-md);
}
.brand-card__name {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 35px;
  padding-top: 10px;
}
.brand-card p {
  font-family: var(--font-heading);
  font-size: 20px;
  padding-top: 25px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  color: var(--color-ink);
  background-color: var(--color-white);
}
.site-footer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Shared by every [data-bg-slideshow] element (footer background, philosophy
   panel). The parent must be a positioning context. */
.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg-layer.is-active { opacity: 1; }
.site-footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .85);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 150px 25px 120px;
}
.footer-grid h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  text-transform: capitalize;
}
.footer-grid p, .footer-grid ul {
  font-family: var(--font-heading);
  font-size: 20px;
  padding-top: 15px;
}
.footer-grid ul li { padding-top: 15px; }
.footer-grid address { font-style: normal; }

.socials {
  display: flex;
  gap: 10px;
  padding-top: 15px;
}
.socials a {
  width: 32px; height: 32px;
  border-radius: 100px;
  background: var(--color-rust);
  display: flex; align-items: center; justify-content: center;
}
.socials svg { width: 16px; height: 16px; fill: var(--color-cream); }

.footer-bottom {
  background: var(--color-rust);
  padding: 25px;
}
.footer-bottom__row {
  max-width: var(--wrap-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-bottom p {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-white);
}
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.payment-icons svg { height: 24px; width: auto; display: block; }
.bbb-seal img { width: 100px; }

/* ---------- Cart drawer (popup) ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .66);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 25px;
  transform: translateX(24px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cart-overlay.is-open .cart-drawer { transform: none; opacity: 1; }

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer__head h2 { font-family: var(--font-heading); font-size: 20px; }
.cart-close { font-size: 28px; line-height: 1; }

.cart-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item__photo { width: 35%; flex-shrink: 0; }
.cart-item__photo img { border-radius: var(--radius-md); }
.cart-item__body { flex: 1; }
.cart-item__material {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 12px;
}
.cart-item__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  padding: 8px 0;
}
.cart-item__spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.cart-item__spec svg { width: 16px; height: 16px; flex-shrink: 0; }
.cart-item__rx { font-size: .8rem; text-decoration: underline; }
.cart-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-stepper button { width: 22px; height: 22px; }
.qty-stepper button svg { width: 14px; height: 14px; }

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-heading);
}
.cart-summary-row--total { font-size: 22px; color: var(--color-terracotta); font-weight: 500; }
.cart-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 10px 0;
}
.cart-note svg { width: 20px; height: 20px; flex-shrink: 0; }
.cart-drawer__actions {
  display: flex;
  gap: 10px;
  padding-top: 15px;
}
.cart-drawer__actions .btn { flex: 1; font-size: 13px; padding: 12px; }

/* ---------- Error page (404 / 405) ---------- */
/* The global reset sets p { margin: 0 }, so the error copy needs its own
   spacing rather than relying on browser defaults. */
.error-page { padding-bottom: 80px; }
.error-page p {
  font-family: var(--font-heading);
  font-size: 20px;
  max-width: 56ch;
}
.error-page .btn { margin-top: 30px; }

/* =========================================================
   Catalog page
   ========================================================= */

/* The photo band and the title bar under it. The title uses the same display
   face as the home page hero, so the two pages read as one site. */
.catalog-hero__photo {
  height: clamp(200px, 30vw, 380px);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}
.catalog-hero__band {
  position: relative;
  z-index: 2;
  background: var(--color-ink-soft);
  box-shadow: var(--shadow-card);
  padding: 8px 25px;
}
.catalog-hero__band h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 10vw, 120px);
  line-height: 1;
  text-align: center;
  color: var(--color-white);
}

.catalog-intro {
  max-width: 900px;
  margin-inline: auto;
  padding: 32px 25px;
  text-align: center;
  font-size: 20px;
  line-height: 27px;
}

/* --- Collection pills ------------------------------------------------- */
.collection-pills-section { padding-bottom: 10px; }
.collection-pills-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 10px 25px 20px;
}
.collection-pills-nav .icon-btn {
  background: var(--color-ink-soft);
  color: var(--color-cream);
  border-radius: 100px;
  padding: 10px 12px;
  box-shadow: var(--shadow-card);
}
.collection-pills-nav .icon-btn:hover { background: var(--color-rust); }
.collection-pills-nav .icon-btn svg { width: 25px; height: 25px; fill: currentColor; }

/* A horizontal scroller, not a wrapping row. The prev/next arrows above it are
   picked up by initCarouselNav(), which calls scrollBy() -- if this wrapped,
   those two buttons would be decoration that does nothing when clicked. */
.collection-pills {
  display: flex;
  gap: 5px;
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: 0 25px 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.collection-pills::-webkit-scrollbar { display: none; }

.pill {
  scroll-snap-align: start;
  flex: 0 0 auto;
  background: var(--color-ink-soft);
  color: var(--color-white);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px 25px;
  transition: background .3s, transform .3s;
}
.pill:hover { background: var(--color-rust); }

/* --- Sort / filter toolbar -------------------------------------------- */
/* Sticky so the controls stay reachable a long way down the grid. The offset
   clears the sticky site header above it. */
.catalog-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: 15px 25px;
  background: var(--color-cream);
}
.catalog-toolbar__sort { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catalog-toolbar__label {
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.catalog-toolbar__select {
  font: inherit;
  font-size: 17px;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

/* A compact variant of the shared .btn, for toolbars and inline actions. */
.btn--small {
  font-size: 15px;
  padding: 10px 18px;
}
.btn--small svg { width: 15px; height: 15px; fill: currentColor; }

/* --- The grid ---------------------------------------------------------- */
/* .product-card is sized with `flex: 0 0 min(260px, 80vw)` because its other
   home is the horizontal scroller on the home page. Flex properties have no
   effect on a grid item, so making this container a grid neutralises that
   sizing without touching the card itself -- the same card markup works in
   both places. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: 25px;
}
.product-card__photo { display: block; }
.product-card__name a { display: block; }

.catalog-count {
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: 0 25px 40px;
  font-size: 15px;
  color: var(--color-ink-soft);
}

/* --- Filter drawer ------------------------------------------------------ */
/* Same shape as the cart drawer, and deliberately so: two panels that slide in
   from the same edge should not behave differently. */
.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .66);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.filter-overlay.is-open { opacity: 1; visibility: visible; }
.filter-drawer {
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 25px;
  transform: translateX(24px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.filter-overlay.is-open .filter-drawer { transform: none; opacity: 1; }

.filter-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
}
.filter-drawer__head h2 { font-family: var(--font-heading); font-size: 20px; }
.filter-drawer__deals { display: flex; gap: 10px; padding-bottom: 15px; }
.filter-drawer__deals .btn { flex: 1 1 0; justify-content: center; }
.filter-drawer__actions { padding-top: 20px; }

.filter-group { border-bottom: 1px solid var(--color-ink); }
.filter-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .3px;
  list-style: none;
}
/* Hide the default disclosure triangle in both engines, so the +/- below is
   the only marker. */
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: '+'; font-size: 20px; line-height: 1; }
.filter-group[open] > summary::after { content: '\2212'; }

.filter-list { padding: 0 0 14px; }
.filter-list li { padding: 4px 0; }
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.filter-list--diagrams li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}
.filter-diagram img { width: 91px; height: auto; }

/* =========================================================
   Product page
   ========================================================= */
.product-band {
  background: var(--color-ink-soft);
  box-shadow: var(--shadow-card);
  padding: 10px 25px;
}
.product-band h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 96px);
  line-height: 1;
  text-align: center;
  color: var(--color-white);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: start;
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding: 40px 25px 80px;
}

/* --- Gallery ----------------------------------------------------------- */
/* Sticky so the frame stays on screen while the long right-hand column --
   sizes, accordion, guides -- is scrolled past it. */
.product-gallery { position: sticky; top: 20px; }
.product-gallery__main {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 25px;
  overflow: hidden;
}
.product-gallery__main img { width: 100%; height: auto; }

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding-top: 25px;
}
.product-gallery__thumb {
  flex: 1 1 120px;
  max-width: 180px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.product-gallery__thumb:hover { transform: scale(.95); }
.product-gallery__thumb.is-active { border-color: var(--color-rust); border-width: 2px; }
.product-gallery__caption {
  padding-top: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

/* --- Buy panel ---------------------------------------------------------- */
.product-detail__brand-logo { width: 150px; height: auto; padding-bottom: 25px; }
.product-detail__brand {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding-bottom: 15px;
}
.product-detail__heading {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 500;
  padding-bottom: 15px;
}
.product-detail__description { font-size: 18px; line-height: 22px; padding-bottom: 25px; }
.product-detail__price { font-size: 30px; font-weight: 500; padding-bottom: 25px; }

.product-option {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 15px;
}
.product-option__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.product-option__label { font-size: 17px; font-weight: 500; }
.product-option__link { font-size: 13px; text-decoration: underline; }
.product-option__value { font-size: 13px; font-weight: 500; padding-top: 7px; }
.product-option__note { font-size: 9px; padding-top: 7px; }
.product-option__swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.swatch--lg { width: 32px; height: 32px; }

.size-options { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 15px; }
.size-option {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-md);
  padding: 10px 5px;
  font-size: 13px;
  font-weight: 500;
  transition: background .3s, color .3s;
}
.size-option:hover { background: var(--color-ink-soft); color: var(--color-white); }

.product-actions { display: flex; flex-direction: column; gap: 10px; padding: 25px 0 15px; }
.product-actions .btn svg { width: 16px; height: 16px; fill: currentColor; }

.product-guides { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }

/* --- Accordion ---------------------------------------------------------- */
.accordion { padding-top: 25px; }
.accordion__item { border-bottom: 1px solid var(--color-ink); }
.accordion__item > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 600;
  list-style: none;
}
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary::after { content: '+'; font-size: 22px; line-height: 1; }
.accordion__item[open] > summary::after { content: '\2212'; }
.accordion__body { padding: 0 0 20px; font-size: 18px; line-height: 22px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* One column below tablet: side by side, the gallery and the buy panel are
     both too narrow to be usable. */
  .product-layout { grid-template-columns: 1fr; gap: 25px; }
  .product-gallery { position: static; }
}

@media (max-width: 767px) {
  /* The original drops the headline to 62px only at phone widths; tablets keep
     the large size, which the base clamp handles. */
  .hero__title { font-size: clamp(44px, 11vw, 62px); }
  .hero__title--accent { font-size: clamp(36px, 9vw, 52px); }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: var(--color-white);
    padding: 20px 25px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .header-tools { margin-left: 0; }
  .search input { width: 100px; }

  .philosophy { padding: 40px 25px; }
  .collection-row, .collection-row:nth-child(even) { flex-direction: column; }
  .trust-bar__item { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--color-ink); padding-block: 12px; }
  .trust-bar__item:last-child { border-bottom: 0; }
  .section-heading__row { flex-direction: column; align-items: flex-start; }

  .brand-grid { grid-template-columns: repeat(1, 1fr); }
  .footer-grid { grid-template-columns: 1fr; padding: 100px 25px 60px; }
  .step:nth-child(odd), .step:nth-child(even) { transform: none; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 15px; }
  .catalog-toolbar { justify-content: center; }
  .collection-pills { gap: 8px; }
  .filter-drawer, .cart-drawer { width: 100%; }
}
