/* 
 * Stiyko Dance Shoes - Main Styles
 * Black & White Theme
 */

/* Only the weights actually used in font-weight declarations (400/500/600/700) —
   300 was requested but never rendered anywhere, costing an extra font-file fetch. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-100: #f3f3f3;
  --color-gray-200: #e5e5e5;
  --color-gray-800: #333333;
  --font-main: 'Inter', sans-serif;
  --transition-fast: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Snackbar (Toast) */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 99999;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.burger-menu {
  display: none;
}

/* Order Button Style in Nav */
.btn-nav-order {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-nav-order:hover {
  background-color: var(--color-gray-800);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Remove underline effect for button */
.btn-nav-order::after {
  display: none;
}


.header-socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-gray-200);
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-black);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-gray-200);
}

.lang-link {
  color: var(--color-gray-800);
  opacity: 0.5;
}

.lang-link.active {
  color: var(--color-black);
  opacity: 1;
  text-decoration: underline;
}

.lang-link:hover {
  opacity: 0.8;
}

.lang-link:hover {
  opacity: 0.8;
}

/* Mobile Nav - Hidden by default on Desktop */
.mobile-nav {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  /* min-height: 80vh; */
  /* display: flex; */
  /* align-items: center; */
  background-color: var(--color-white);
  padding: 2rem 0;
}

.hero-h1 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-black);
  margin: 0.65rem auto 0;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); */
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  list-style: none;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* or contain depending on image aspect ratio? Images look wide */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn--left {
  left: 20px;
}

.carousel-btn--right {
  right: 20px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
}

.carousel-indicator {
  border: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: var(--color-gray-200);
  cursor: pointer;
}

.carousel-indicator.current-slide {
  background: var(--color-black);
}

/* Main Content Area */
.main-content {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  /* Long uppercase Ukrainian compounds (ЛАТИНОАМЕРИКАНСЬКИХ) are wider than a phone
     viewport — break them rather than let the heading overflow the page. */
  overflow-wrap: break-word;
}

.brand-story {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.brand-story p {
  font-size: 1.1rem;
  color: var(--color-gray-800);
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 20px;
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: 4px;
  margin-bottom: 4rem;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--color-white);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-block;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--color-black);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--color-gray-100);
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Card-scheme marks (Visa, Mastercard): small, one row, official artwork unaltered */
.pay-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
}

.pay-logos-label {
  font-size: 0.8rem;
  color: var(--color-gray-600, #666);
}

.pay-logos-list {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.pay-logos img {
  /* One identical tile per mark; object-fit keeps each mark's own proportions inside it */
  width: 52px;
  height: 32px;
  padding: 5px 7px;
  box-sizing: border-box;
  object-fit: contain;
  display: block;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
}

.pay-logos-inline {
  margin: 0.5rem 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide for mobile, implement burger if needed, or simple stack */
  }

  .nav-container {
    /* For simplicity in this prompt, maybe just keep lang switch and logo centered? */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Fluid so the longest single word still fits the viewport instead of forcing
     a horizontal scrollbar on narrow phones. */
  .section-title {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }

  /* Two columns instead of one tall stack: the logo row spans both, the link groups sit side by side. */
  .footer {
    padding: 2rem 0;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    text-align: left;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 0.6rem;
  }

  .footer-col p {
    overflow-wrap: anywhere;
  }

  .footer-nav {
    gap: 0.35rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  /* Hamburger Menu */
  .burger-menu {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  /* Mobile Nav Overlay */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .mobile-nav.active {
    transform: translateX(0);
  }

  .mobile-nav .nav-link {
    font-size: 1.5rem;
  }

  /* Hide default header right items on mobile, but keep lang switch */
  .header-right {
    display: flex;
    margin-left: auto;
    /* Push to right */
    margin-right: 1rem;
    /* Gap between lang and burger */
    gap: 0;
  }

  .header-right .nav-link,
  .header-right .header-socials {
    display: none;
  }

  /* ...except the favorites heart, which stays in the mobile header bar
     (alongside the lang switch) rather than being buried in the burger menu. */
  .header-right .nav-fav,
  .header-right .nav-cart {
    display: inline-flex;
    margin-right: 1rem;
  }

  /* Style Order Button in Mobile Menu */
  .mobile-nav .btn-mobile-order {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    margin-top: 1rem;
    transition: transform 0.3s;
  }

  .mobile-nav .btn-mobile-order:hover {
    transform: scale(1.05);
  }

  /* Adjust lang switch for mobile header bar */
  .lang-switch {
    padding-left: 0;
    border-left: none;
  }

  .mobile-socials {
    margin-top: 2rem;
    gap: 1.5rem;
    border-left: none;
    justify-content: center;
    padding-left: 0;
  }
}

/* Measurement Guide Section */
.measure-section {
  padding: 4rem 0;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gray-200);
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-desc {
  color: var(--color-gray-800);
  font-size: 0.95rem;
}

.measure-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem 0;
}

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1.25rem 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  content: '\2212'; /* minus sign */
}

.faq-a {
  color: var(--color-gray-800);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Testimonials Section */
.testimonials-section {
  margin-bottom: 4rem;
}

.testimonials-head {
  margin-bottom: 3rem;
}

.testimonials-section .section-title {
  margin-bottom: 1rem;
}

.testimonials-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gray-800);
  font-size: 1rem;
}

.testimonials-stars {
  letter-spacing: 3px;
  color: var(--color-black);
}

/* Flex rather than grid: with 5 reviews a rigid 3-column grid leaves a hole in the
   last row, whereas wrapped flex items centre themselves. */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.testimonial-card {
  flex: 0 1 calc((100% - 3rem) / 3);
  min-width: 280px;
}

.testimonial-card {
  background: var(--color-gray-100);
  border-radius: 12px;
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Oversized decorative quote mark, per the design */
.testimonial-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--color-gray-200);
  margin-bottom: 1.25rem;
}

.testimonial-text {
  margin: 0;
  font-size: 1rem;
  color: var(--color-gray-800);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

.testimonial-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-black);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--color-gray-800);
}

@media (max-width: 900px) {
  .testimonial-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

/* Phones: stacking three cards costs ~3 screens of scrolling, so swipe them sideways
   instead. One card fills the view and the next peeks in, which is the affordance that
   tells you it scrolls. justify-content must be flex-start here — centering a nowrap
   flex row makes the first card unreachable once it overflows. */
@media (max-width: 600px) {
  .testimonials-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    /* bleed to the screen edges so a card can sit flush while scrolling */
    margin: 0 -20px;
    padding: 0 20px 0.75rem;
  }

  .testimonial-card {
    flex: 0 0 86%;
    min-width: 0;
    scroll-snap-align: center;
    padding: 1.5rem;
  }

  .testimonial-quote {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .testimonial-author {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
  }

  .testimonials-grid::-webkit-scrollbar {
    height: 3px;
  }

  .testimonials-grid::-webkit-scrollbar-track {
    background: var(--color-gray-200);
    border-radius: 2px;
  }

  .testimonials-grid::-webkit-scrollbar-thumb {
    background: var(--color-black);
    border-radius: 2px;
  }

  .testimonials-head {
    margin-bottom: 2rem;
  }

  .testimonials-subtitle {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* Tips & Guides strip */
.guides-strip {
  margin-bottom: 4rem;
}

.guides-strip .section-title {
  margin-bottom: 2.5rem;
}

.guides-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.art-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-white);
}

.art-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

a.art-card-link:hover {
  transform: translateY(-4px);
}

/* Unpublished article: same card, no hover affordance */
.art-card-link--soon {
  cursor: default;
}

.art-card-link--soon .art-card-img {
  opacity: 0.75;
}

/* 2:1 slot matching the images' own ratio, so cover has nothing to crop. A fixed pixel
   height would make the slot narrower than 2:1 on small cards and cut into the artwork. */
.art-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.art-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.art-chip {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  color: var(--color-gray-800);
}

.art-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.art-card-read {
  font-size: 0.9rem;
  color: var(--color-gray-800);
  margin-top: auto;
}

@media (max-width: 900px) {
  .guides-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones: six stacked cards is a long scroll to the footer — swipe them sideways
   instead, same affordance as .testimonials-grid above. */
@media (max-width: 600px) {
  .guides-strip-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    margin: 0 -20px;
    padding: 0 20px 0.75rem;
  }

  .art-card {
    flex: 0 0 86%;
    min-width: 0;
    scroll-snap-align: center;
  }
}

/* Footer link column */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--color-gray-800);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-black);
}

.footer-tel {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-tel:hover {
  color: var(--color-black);
  text-decoration: underline;
}

/* ── Long-form guide / article pages ─────────────────────────────────────── */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-black);
  transition: width 0.1s linear;
}

.article-page {
  padding-top: 2rem;
}

.article-hero {
  margin-bottom: 3rem;
}

/* height:auto is required — without it the img's height attribute is used as the
   CSS height and the artwork gets cropped instead of scaled. */
.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.article-hero-head {
  max-width: 760px;
  margin: 2.25rem auto 0;
  text-align: center;
}

.article-h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 1rem auto 0;
  text-wrap: balance;
}

.article-h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-black);
  margin: 1rem auto 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-gray-800);
  margin-top: 0.9rem;
}

.article-meta-dot {
  opacity: 0.5;
}

/* Share row */
.article-share {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.article-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-black);
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.article-share-btn:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Layout: sticky TOC beside the column of text */
.article-layout {
  margin-top: 3rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-toc {
  display: none;
}

.article-toc-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-800);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.article-toc ol,
.article-toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.article-toc a {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.5rem 0 0.5rem 0.9rem;
  color: var(--color-gray-800);
  text-decoration: none;
  opacity: 0.65;
  border-left: 1px solid transparent;
  transition: opacity var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.article-toc a:hover {
  opacity: 1;
}

.article-toc a.active {
  opacity: 1;
  color: var(--color-black);
  font-weight: 600;
  border-left-color: var(--color-black);
}

/* Mobile TOC — native <details>, works with JS disabled */
.article-toc-mobile {
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.article-toc-mobile summary {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  cursor: pointer;
}

.article-toc-mobile ol {
  padding: 0 1.1rem 1rem;
}

.article-toc-mobile li {
  padding: 0.4rem 0;
}

.article-toc-mobile a {
  font-size: 0.95rem;
  color: var(--color-gray-800);
  text-decoration: none;
}

/* Article typography */
.article-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 3rem 0 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--color-black);
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 100px;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

/* Restore markers — the global reset strips them from every ul */
/* Direct-child selectors only: the mobile TOC accordion's own <ol> lives inside a
   <details> in .article-body, and an unscoped `.article-body ol` outranked
   `.article-toc-mobile ol` (same specificity, later in the file) — it re-enabled the
   list numbers and wiped the accordion's padding. Prose lists are always direct
   children of .article-body, so `>` keeps them styled and leaves the TOC alone. */
.article-body > ul,
.article-body > ol {
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
  list-style: revert;
}

/* Inline prose links. The global `a` reset (color: inherit; text-decoration: none)
   left every in-article catalog and guide link visually identical to body text, so
   readers had no way to see them. Underlined rather than coloured to stay inside the
   black & white theme. Scoped to prose only: `p a` covers paragraphs and callouts (the
   mobile TOC has no <p>), and the direct-child list selectors keep the TOC accordion's
   own <ol> — which is nested in a <details> — out of it. Block-level links around media
   (.article-figure-zoom, .article-video-fallback) live in <figure> and stay untouched. */
.article-body p a,
.article-body > ul li a,
.article-body > ol li a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-gray-800);
  text-underline-offset: 3px;
}

.article-body p a:hover,
.article-body > ul li a:hover,
.article-body > ol li a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-black);
}

.article-figure {
  margin: 2.5rem 0;
}

/* Tabular data inside an article. The wrapper is the only element allowed to scroll
   sideways — the page body never does (see CLAUDE.md responsive rules). */
.article-table-figure {
  margin: 2.5rem 0;
}

.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table-figure figcaption {
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-gray-800);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

.article-table th,
.article-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-gray-200);
}

.article-table thead th {
  background: var(--color-gray-100);
  font-weight: 600;
  white-space: nowrap;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table td a {
  text-decoration: underline;
}


.article-figure-portrait {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Wide diagrams link to the full-size file; the hint only matters on small screens
   where the figure is too small to read in place. */
.article-figure-zoom {
  display: block;
  cursor: zoom-in;
}

.article-figure-hint {
  display: none;
}

@media (max-width: 900px) {
  .article-figure-hint {
    display: block;
    margin-top: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
  }
}

.article-figure figcaption {
  font-size: 0.875rem;
  color: var(--color-gray-800);
  text-align: center;
  margin-top: 0.6rem;
}

.article-video {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-video-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 540 / 880;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-gray-100);
}

.article-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video-fallback {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-align: center;
}

.article-video figcaption {
  font-size: 0.875rem;
  color: var(--color-gray-800);
  text-align: center;
  margin-top: 0.6rem;
}

.article-callout {
  border-left: 4px solid var(--color-black);
  background: var(--color-gray-100);
  padding: 1rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 2rem 0;
}

.article-callout-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.article-callout p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-related {
  margin-top: 4.5rem;
}

.article-cta {
  margin-top: 4rem;
}

.guides-index-grid {
  margin-top: 2.5rem;
}

/* Trust pages (delivery, returns, payment, offer, contacts): the article typography without hero/TOC */
.info-head {
  text-align: center;
  margin-top: 1.5rem;
}

.info-lead {
  max-width: 720px;
  margin: 1.25rem auto 0;
  color: var(--color-gray-800);
  font-size: 1.05rem;
  line-height: 1.6;
}

.info-body {
  margin-top: 2.5rem;
}

@media (min-width: 1100px) {
  .article-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 720px) 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .article-toc {
    display: block;
    position: sticky;
    top: 120px;
    justify-self: end;
    width: 220px;
    grid-column: 1;
  }

  .article-body {
    grid-column: 2;
  }

  .article-toc-mobile {
    display: none;
  }
}

@media (max-width: 600px) {
  .article-h1 {
    font-size: 1.85rem;
  }

  .article-body p,
  .article-body > ul,
  .article-body > ol {
    font-size: 1.05rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-gray-800);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-gray-800);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: var(--color-gray-200);
}

.breadcrumb-current {
  font-weight: 600;
}

/* Category landing pages */
.category-intro {
  max-width: 800px;
  margin: -1rem auto 2.5rem;
  text-align: center;
  color: var(--color-gray-800);
  font-size: 1.1rem;
  line-height: 1.6;
}

.category-nav {
  margin: 3rem auto 2.5rem;
  text-align: center;
}

.category-nav-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 1rem;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
}

.category-chip {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gray-800);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  border-color: var(--color-black);
}

.category-chip.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Second chip row on category pages: shortcuts into the pre-filtered catalog app.
   Sits directly under "Shop by category", so it needs less top margin. */
.category-refine {
  margin-top: 1.75rem;
}

.chip-count {
  color: var(--color-gray-800);
  opacity: 0.6;
  font-size: 0.85em;
  margin-left: 0.15rem;
}

.category-chip.chip-all {
  border-color: var(--color-black);
  font-weight: 600;
}

.category-chip.chip-all:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-viewall {
  margin: 3rem 0;
}

.category-guides {
  max-width: 800px;
  margin: 3rem auto 0;
}

.category-guides h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.category-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.category-guides a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* "Browse all models" link on the catalog page → the static paginated index */
.catalog-browse-all {
  margin: -0.5rem 0 1.5rem;
}

.catalog-browse-all a {
  color: var(--color-gray-800);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-gray-200);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.catalog-browse-all a:hover {
  color: var(--color-black);
  border-color: var(--color-black);
}

/* Numbered pagination on the static "all products" index */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 3rem 0 1rem;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  color: var(--color-gray-800);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.pagination a.page-link:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.pagination .page-current {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  font-weight: 600;
}

.pagination .page-prev,
.pagination .page-next {
  font-weight: 500;
}

/* Per-product page (/<lang>/catalog/<id>/) */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 1.5rem auto 1rem;
  align-items: start;
}

.product-detail-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-gray-100);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  padding-top: 0.5rem;
}

.product-detail-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-800);
  margin-bottom: 0.75rem;
}

.product-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 1rem;
}

.product-detail-brand {
  color: var(--color-gray-800);
  margin-bottom: 1rem;
}

.product-detail-brand span {
  font-weight: 600;
  color: var(--color-black);
}

.product-detail-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-gray-800);
  margin-bottom: 2rem;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.product-detail-order {
  display: inline-block;
}

.product-detail-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-black);
  background: transparent;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.product-detail-share:hover {
  background: var(--color-black);
  color: #fff;
}

.product-detail-share svg {
  display: block;
}

.product-detail-back {
  display: block;
  color: var(--color-gray-800);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.product-detail-back:hover {
  color: var(--color-black);
}

/* Size guide (product pages) */
.size-guide {
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.size-guide-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.size-guide-summary::-webkit-details-marker {
  display: none;
}

.size-guide-summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.size-guide[open] > .size-guide-summary::after {
  content: '\2212'; /* minus sign */
}

.size-guide-body {
  padding: 0 1.25rem 1.25rem;
}

.size-guide-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-gray-800);
  margin-bottom: 0.5rem;
}

.size-guide-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.size-guide-input {
  width: 110px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  transition: border-color var(--transition-fast);
}

.size-guide-input:focus {
  outline: none;
  border-color: var(--color-black);
}

.size-guide-unit {
  font-size: 0.9rem;
  color: var(--color-gray-800);
}

.size-guide-result {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.size-guide-sizes {
  display: inline-block;
  margin-left: 0.35rem;
}

.size-guide-oor {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--color-gray-800);
}

.size-guide-tip {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--color-gray-800);
}

.size-guide-tip a {
  text-decoration: underline;
}

.measure-guide-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-gray-800);
}

.measure-guide-link a {
  text-decoration: underline;
}

.size-guide-chart-link {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.size-guide-chart-link a {
  text-decoration: underline;
}

.size-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.size-chart th,
.size-chart td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  text-align: center;
}

.size-chart th {
  font-weight: 600;
  background: var(--color-gray-100);
}

.size-chart tr.size-row-match td {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 600;
}

/* 404 page (dist/404.html) — bilingual, since the failing URL tells us nothing about
   which language the visitor wanted. */
.notfound {
  max-width: 640px;
  margin: 3rem auto 4rem;
  text-align: center;
}

.notfound-code {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gray-200);
  margin-bottom: 1rem;
}

.notfound-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 0.75rem;
}

.notfound-text {
  color: var(--color-gray-800);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.notfound-link {
  color: var(--color-gray-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notfound-link:hover {
  color: var(--color-black);
}

.notfound-sep {
  border: 0;
  border-top: 1px solid var(--color-gray-200);
  margin: 2.5rem 0;
}

/* Product specifications table (product pages) — the parsed, per-product facts.
   Two columns: label + value, left-aligned, so it reads as a spec sheet rather than
   the centred size chart above it. */
.product-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.product-specs-caption {
  text-align: left;
  font-weight: 600;
  color: var(--color-black);
  padding-bottom: 0.5rem;
}

.product-specs th,
.product-specs td {
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--color-gray-200);
  text-align: left;
  vertical-align: top;
}

.product-specs th {
  font-weight: 500;
  color: var(--color-gray-800);
  width: 45%;
}

/* "About this model" + care copy, full width under the product hero. */
.product-about,
.product-faq {
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.product-about-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 1rem;
}

.product-about-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 1.5rem 0 0.75rem;
}

.product-about p {
  line-height: 1.65;
  color: var(--color-gray-800);
  margin-bottom: 0.9rem;
}

.product-about-link a {
  color: var(--color-black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-faq .faq-list {
  margin-top: 0.5rem;
}

.product-related {
  margin-top: 3.5rem;
}

.product-related .section-title {
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }
}

/* CATALOG STYLES */

.catalog-section {
  padding: 2rem 0;
  min-height: 80vh;
}

.catalog-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Filters Sidebar */
.filters-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--color-white);
  padding: 1rem;
  position: sticky;
  /* parks just below the sticky header + sticky controls bar on desktop */
  top: 140px;
  max-height: calc(100vh - 152px);
  overflow-y: auto;
  align-self: flex-start;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-gray-200);
  padding-bottom: 0.5rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-gray-800);
  transition: color 0.2s;
}

.filter-label:hover {
  color: var(--color-black);
}

.filter-label input[type="radio"],
.filter-label input[type="checkbox"] {
  accent-color: var(--color-black);
  cursor: pointer;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  margin-bottom: 1rem;
}

/* Catalog Controls (View Toggles) */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
}

.view-toggles {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.view-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray-800);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.view-toggle-btn.active {
  color: var(--color-black);
}

.view-toggle-btn:not(.active) svg {
  opacity: 0.5;
}

.view-toggle-btn.active[data-view="1"] svg {
  fill: currentColor;
}

/* Base grid already defined below, let's override with classes */
.product-grid.view-1 {
  grid-template-columns: 1fr;
}

.product-grid.view-1 .product-image-container {
  padding-top: 100%;
  /* square ratio maxes out nicely */
}

/* For mobile, if user wants smaller images maybe we let them have 2 columns. */
/* view-2 and view-3 will just override grid-template-columns */
@media (max-width: 900px) {
  .product-grid.view-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* 3-per-row photos-only grid (Zara-style). Shows just the product images:
     no info block, no share overlay, seamless edge-to-edge cards.
     width:100% is required because .catalog-layout uses align-items:flex-start
     (shrink-to-fit on the cross axis) — without in-flow card content (info is
     hidden, the image is position:absolute) the grid would otherwise collapse. */
  .product-grid.view-3 {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .product-grid.view-3 .product-info {
    display: none;
  }

  .product-grid.view-3 .product-card {
    border: none;
    border-radius: 0;
  }

  /* Keep the dense photo grid clean — drop the per-card share button here. */
  .product-grid.view-3 .product-share-btn {
    display: none;
  }
}

@media (min-width: 901px) {
  .product-grid.view-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid.view-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Grid */
.product-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Share Button */
.product-share-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--color-black);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-5px);
}

.product-card:hover .product-share-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-share-btn:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .product-share-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Favorite (wishlist) heart on product cards — mirrors the share button but
   pinned top-left and always visible, so saved state reads at a glance. Scoped
   to .product-card so it doesn't hit the detail-page pill (.product-detail-fav). */
.product-card .product-fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--color-black);
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card .product-fav-btn:hover {
  transform: scale(1.1);
}

/* Heart fills when the product is saved (outline → solid). Shared by the card
   button and the product-detail pill. */
.product-fav-btn .fav-heart {
  fill: none;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.product-fav-btn.is-fav .fav-heart {
  fill: currentColor;
}

/* Product-detail "Save"/"Saved" pill — same shape as the share button. */
.product-detail-fav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-black);
  background: transparent;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.product-detail-fav:hover {
  background: var(--color-black);
  color: #fff;
}

.product-detail-fav .fav-heart {
  display: block;
}

/* Label swap: "Save" by default, "Saved" once wishlisted (toggled by .is-fav). */
.product-fav-btn .fav-label-added {
  display: none;
}

.product-fav-btn.is-fav .fav-label-add {
  display: none;
}

.product-fav-btn.is-fav .fav-label-added {
  display: inline;
}

/* Favorites entry point in the nav: heart + saved-count badge. */
.nav-fav {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-fav .fav-heart {
  fill: none;
  display: block;
}

/* Saved-count badge: a small bubble pinned to the heart's top-right corner.
   (Pinned rather than inline so it can't sit off the text baseline — the inline
   number looked misaligned next to the heart and the large mobile-menu text.) */
.nav-fav .fav-count {
  position: absolute;
  top: -7px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: 999px;
}

/* Recently viewed — a horizontal scroller of compact product cards, filled
   client-side from localStorage (script.js) and hidden when empty. */
.recently-viewed {
  margin: 2.5rem 0;
}

.recently-viewed-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.recently-viewed-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  /* top/side padding gives the hover-lift room; bottom leaves space for the scrollbar */
  padding: 4px 4px 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.recent-card {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recent-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gray-300, #d0d0d0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.recent-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7f7f7;
}

.recent-card-name {
  /* Two-line clip. The clip box is EXACTLY two lines tall (2.6em = 2 × line-height
     1.3) with no padding — overflow:hidden clips at the padding box, so any inner
     padding would let a third line peek through. Spacing is done with margin
     (outside the clip) instead. Bulletproof, no -webkit-line-clamp quirks. */
  display: block;
  overflow: hidden;
  height: 2.6em;
  margin: 0.6rem 0.7rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--color-gray-800);
}

@media (max-width: 600px) {
  .recent-card {
    width: 44vw;
    max-width: 180px;
  }

  .recently-viewed-title {
    font-size: 1.2rem;
  }
}

.product-card.highlighted {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
  z-index: 1;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(45deg, #000000, #999999, #000000) border-box;
  background-size: 200% 200%;
  animation: borderShimmer 2s linear infinite;
}

@keyframes borderShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding-top: 100%;
  /* Square aspect ratio 1:1 */
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--color-gray-800);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Responsive Catalog */
@media (max-width: 900px) {
  .catalog-layout {
    flex-direction: column;
    position: relative;
  }

  /* Sticky filter button */
  .mobile-filter-toggle {
    display: block;
    position: sticky;
    top: 80px;
    z-index: 100;
    margin: 10px 0 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  /* Filter panel as overlay */
  .filters-sidebar {
    position: fixed;
    top: 73px;
    /* below header */
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    z-index: 9999;
    display: none;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 1rem;
    /* Reset sticky from desktop */
    align-self: auto;
  }

  .filters-sidebar.active {
    display: block;
  }

  /* Apply button inside filter panel */
  .filters-apply-btn {
    display: block;
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 1rem;
  }

  /* .filters-apply-btn:hover {
    background: var(--color-gray-800);
    transform: scale(1.02);
  } */
}

@media (min-width: 900px) {

  /* Hide apply button on desktop */
  .filters-apply-btn {
    display: none;
  }
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: var(--color-gray-800);
  width: 100%;
}

/* Filters Backdrop (mobile overlay) */
.filters-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters-backdrop.active {
  display: block;
  opacity: 1;
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--color-gray-800);
  transform: translateY(-5px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    z-index: 2000;
  }
}

/* Skeleton Loader */
.skeleton {
  background: #f0f0f0;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

.skeleton-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
  padding: 0;
}

.skeleton-image {
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  position: relative;
}

.skeleton-content {
  padding: 1.2rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-title {
  height: 1.5rem;
  margin-bottom: 1rem;
  width: 80%;
}

.skeleton-desc {
  height: 0.8rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-desc.short {
  width: 60%;
}

/* ============================================================
   Catalog toolbar: search, result count, active-filter chips,
   load-more footer, per-card order button, and focus styles.
   ============================================================ */

/* Sticky controls bar (desktop only) — keeps search + view toggles reachable
   in a long list. On mobile the sticky FILTERS button covers this role. */
@media (min-width: 901px) {
  .catalog-controls {
    position: sticky;
    top: 72px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-gray-200);
  }
}

/* Search box */
.catalog-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
  display: flex;
  align-items: center;
}

.catalog-search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--color-gray-800);
  opacity: 0.6;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.catalog-controls-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.result-count {
  font-size: 0.85rem;
  color: var(--color-gray-800);
  white-space: nowrap;
}

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--color-black);
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  background: var(--color-gray-200);
}

.filter-chip span {
  font-size: 0.9em;
  opacity: 0.6;
}

.filter-chip--clear {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-chip--clear:hover {
  background: var(--color-gray-800);
}

/* Empty state */
.catalog-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-gray-800);
}

.catalog-empty p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Load-more footer (manual fallback + "showing X of Y" status) */
.grid-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 1rem;
}

.load-more-btn {
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 50px;
  padding: 0.75rem 2.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.load-more-btn:hover {
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-2px);
}

.load-more-btn[hidden] {
  display: none;
}

.grid-status {
  font-size: 0.8rem;
  color: var(--color-gray-800);
  opacity: 0.7;
}

/* Per-card "Order this model" button (hidden in the photos-only 3-col mode) */
.product-order-btn {
  margin-top: auto;
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-order-btn:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* Keyboard focus visibility (a11y). Dark controls get a light ring. */
:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.btn-dark:focus-visible,
.btn-nav-order:focus-visible,
.btn-mobile-order:focus-visible,
.mobile-filter-toggle:focus-visible,
.filters-apply-btn:focus-visible,
.scroll-to-top:focus-visible,
.product-order-btn:focus-visible,
.load-more-btn:focus-visible,
.filter-chip--clear:focus-visible {
  outline-color: var(--color-white);
  outline-offset: 2px;
}

/* On small screens the controls stack; keep search full-width. */
@media (max-width: 600px) {
  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-search {
    /* reset desktop's flex-grow: in the column layout it would grow vertically */
    flex: none;
    max-width: none;
  }

  .catalog-controls-right {
    justify-content: space-between;
  }
}
/* Short-answer block at the top of a guide: same box as a callout, tighter top margin. */
.article-answer {
  margin-top: 0;
}


/* ── Shop (stage 2): prices, availability, sizes ───────────────────────────────────────── */
.shop-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.25rem;
}

.shop-price-now {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-black);
}

.shop-price-old {
  color: rgba(51, 51, 51, 0.7); /* colour, not opacity: opacity would also fade the strike line */
  text-decoration-color: #e0453a; /* bright red strike */
  text-decoration-thickness: 1.5px;
}

.shop-price-intl {
  margin: 0 0 0.75rem;
  color: var(--color-gray-800);
  font-size: 0.95rem;
}

.shop-availability {
  margin: 0 0 1.25rem;
}

/* Status is always text; the colour only reinforces it. */
.shop-avail {
  display: inline-block;
  align-self: flex-start; /* a flex-column parent would stretch the pill across the card */
  width: fit-content;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-gray-100);
  color: var(--color-black);
}

.shop-avail--in-stock { background: #e3f3e6; color: #17612a; }
.shop-avail--backorder { background: #fdf1d8; color: #7a5200; }
.shop-avail--out-of-stock,
.shop-avail--discontinued { background: var(--color-gray-200); color: var(--color-gray-800); }

.shop-card .shop-price { margin: 0.25rem 0 0.4rem; }
.shop-card .shop-price-now { font-size: 1.1rem; }

.shop-sizes { margin: 0 0 1.5rem; }

.shop-sizes-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.shop-size-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-size {
  min-width: 3rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-gray-800);
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
}

.shop-size--off {
  border-color: var(--color-gray-200);
  color: var(--color-gray-800);
  opacity: 0.55;
  text-decoration: line-through;
}

.shop-policies {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--color-gray-800);
}

/* ── Shop product gallery (item 7): swipe track + thumbs, hover zoom on mouse, lightbox on tap ───────── */
.shop-gallery-stage { position: relative; }

.shop-gallery-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shop-gallery-track::-webkit-scrollbar { display: none; }

.shop-gallery-count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white, #fff);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: none; /* never blocks the swipe, the click-to-open or the hover zoom beneath it */
}

.shop-gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; overflow: hidden; }
.shop-gallery-link { display: block; height: 100%; cursor: zoom-in; }
.shop-gallery-slide img { transition: transform 0.2s ease-out; transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%); }

/* Mouse only: touch screens have no hover, they get the lightbox instead. */
@media (hover: hover) and (pointer: fine) {
  .shop-gallery-slide:hover img { transform: scale(2); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-gallery-slide img { transition: none; }
}

.shop-gallery-thumbs a { display: block; border-radius: 6px; outline-offset: 2px; }
.shop-gallery-thumbs a.is-current img { outline: 2px solid var(--color-black); outline-offset: -2px; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pinch-zoom; user-select: none; }
.gallery-lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.gallery-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gallery-lightbox-close { top: 1rem; right: 1rem; }
.gallery-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.9rem; }

.shop-gallery-thumbs {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-gallery-thumbs img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-gray-100);
}

.shop-empty {
  margin: 2rem 0;
  color: var(--color-gray-800);
}

/* ── Cart (stage 3) ────────────────────────────────────────────────────────────────────── */

/* Header entry: cart icon + pairs-in-cart badge (same pinned bubble as the favorites heart). */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-cart .cart-icon { display: block; }

.nav-cart .cart-count {
  position: absolute;
  top: -7px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: 999px;
}

.nav-cart .cart-count[hidden] { display: none; }

.cart-count.is-bumped { animation: cart-bump 0.4s ease; }

@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Product page: choosing a size and adding it to the cart. */
.shop-buy { margin: 0 0 1.5rem; }

button.shop-size {
  font: inherit;
  background: var(--color-white);
  color: var(--color-black);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

button.shop-size:hover:not(:disabled) { border-color: var(--color-black); background: var(--color-gray-100); }

button.shop-size[aria-checked="true"],
button.shop-size[aria-checked="true"]:hover:not(:disabled) {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

button.shop-size:disabled { cursor: not-allowed; }

button.shop-size:focus-visible,
.shop-add:focus-visible,
.cart-qty-btn:focus-visible,
.cart-line-remove:focus-visible,
.cart-clear:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

.shop-size-list[aria-invalid="true"] button.shop-size:not(:disabled) { border-color: #b3261e; }

.shop-size-note {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: var(--color-gray-800);
}

.shop-cart-ui { margin: 0 0 0.9rem; }

.shop-add { display: inline-block; min-width: 12rem; cursor: pointer; border: 0; font: inherit; font-weight: 600; }

/* Same hover as the header's order button: .btn-dark would turn white on the white page. */
.shop-add:hover {
  background-color: var(--color-gray-800);
  border-color: var(--color-gray-800);
  color: var(--color-white);
}

.shop-buy-msg {
  margin: 0.6rem 0 0;
  min-height: 1.4em;
  font-size: 0.95rem;
}

.shop-buy-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.shop-buy-msg.is-error { color: #b3261e; font-weight: 600; }
.shop-buy-warn { color: #7a5200; }

.shop-buy-none {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

/* The order form: the main action without the cart (no JS / sizes not entered); the "from abroad" link with it. */
.shop-form-row { margin: 0; }
.shop-form-link { display: inline-block; }
.shop-form-abroad { display: none; }

.shop-buy.is-enhanced .shop-form-link,
.shop-buy.is-enhanced .shop-form-link:hover {
  background: none;
  color: var(--color-gray-800);
  padding: 0;
  border: 0;
  border-radius: 0;
  transform: none;
  text-transform: none;
  text-decoration: underline;
  font-size: 0.95rem;
  font-weight: 500;
}

/* With the cart the form is no longer offered here: «delivery outside Ukraine» sits by the checkout button in /cart/. */
.shop-buy.is-enhanced .shop-form-row { display: none; }

.cart-abroad {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--color-gray-800);
  font-size: 0.95rem;
  text-decoration: underline;
}

/* /cart/ */
.cart-view { margin: 1.5rem 0 2rem; }

.cart-loading,
.cart-hint,
.cart-note { color: var(--color-gray-800); }

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: start;
}

.cart-layout.is-updating .cart-line-total,
.cart-layout.is-updating .cart-total-amount { opacity: 0.45; }

.cart-lines { list-style: none; margin: 0; padding: 0; }

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.cart-line:first-child { border-top: 1px solid var(--color-gray-200); }

.cart-line > .cart-line-info:first-child { grid-column: 1 / 3; }

.cart-line-image,
.cart-line-image img {
  display: block;
  width: 96px;
  height: 96px;
}

.cart-line-image img { object-fit: cover; border-radius: 6px; background: var(--color-gray-100); }
.cart-line-image--none { border-radius: 6px; background: var(--color-gray-100); }

.cart-line-name {
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
}

.cart-line-name:hover { text-decoration: underline; }

.cart-line-meta,
.cart-line-status,
.cart-line-note { margin: 0.25rem 0 0; font-size: 0.92rem; }

.cart-line-meta { color: var(--color-gray-800); }

.cart-line-note {
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #fdf1d8;
  color: #7a5200;
  font-weight: 500;
}

.cart-line-note--bad { background: var(--color-gray-200); color: var(--color-gray-800); }

.cart-line-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.cart-line-each,
.cart-line-total { margin: 0; }
.cart-line-each { font-size: 0.9rem; color: var(--color-gray-800); }
.cart-line-total { font-weight: 700; font-size: 1.1rem; }

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-gray-800);
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: var(--color-white);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-qty-btn:hover:not(:disabled) { background: var(--color-gray-100); }
.cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.cart-qty-value { min-width: 2.2rem; text-align: center; font-weight: 600; }

.cart-line-remove,
.cart-clear {
  border: 0;
  background: none;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-gray-800);
  text-decoration: underline;
  cursor: pointer;
}

.cart-line.is-unavailable { opacity: 0.85; }
.cart-line.is-unavailable .cart-line-image img { filter: grayscale(1); }

.cart-unavailable { margin-top: 2rem; }
.cart-unavailable-title { font-size: 1.1rem; margin: 0 0 0.25rem; }

.cart-summary {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  background: var(--color-gray-100);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.cart-total-amount { font-size: 1.5rem; font-weight: 700; }

.cart-note { margin: 0 0 0.75rem; font-size: 0.92rem; }

.cart-note--warn {
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  background: #fdf1d8;
  color: #7a5200;
  font-weight: 500;
}

.cart-checkout { display: block; width: 100%; text-align: center; }

.cart-checkout.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.cart-hint { margin: 0.6rem 0 0; font-size: 0.88rem; }

.cart-continue {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--color-gray-800);
  font-size: 0.95rem;
}

.cart-clear-row { grid-column: 1 / 2; }

.cart-empty,
.cart-error {
  margin: 2rem auto;
  max-width: 32rem;
  text-align: center;
}

.cart-empty-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 0.4rem; }
.cart-empty-hint { margin: 0 0 1.25rem; color: var(--color-gray-800); }
.cart-error p { margin: 0 0 1rem; }
.cart-error-actions { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

@media (max-width: 800px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
  .cart-clear-row { grid-column: auto; }
}

@media (max-width: 520px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line-image,
  .cart-line-image img { width: 72px; height: 72px; }
  .cart-line > .cart-line-info:first-child { grid-column: 1 / -1; }
  .cart-line-buy {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.shop-policy-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Facts a shopper must not miss (the sizes, the lead time, the return window, the deposit). */
.shop-policies strong,
.shop-size-note strong,
.cart-note strong { font-weight: 700; color: var(--color-black); }

.shop-size-note strong { font-size: 1.05em; }

/* ── Catalog: minimal filters + quiet cards ───────────────────────────────────────────────
   Filters are a row of pill toggles (the native checkbox/radio stays in the DOM, so catalog.js and the keyboard
   work unchanged); cards lose their frame, description and heavy hover so the photos carry the page. */
.catalog-layout { flex-direction: column; gap: 1.25rem; }

.filters-sidebar .filter-group { margin: 0; }

.filters-sidebar .filter-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-gray-800);
  border: 0;
  margin: 0 0 0.5rem;
  padding: 0;
}

.filters-sidebar .filter-options { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }

.filters-sidebar .filter-label {
  position: relative;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filters-sidebar .filter-label:hover { border-color: var(--color-gray-800); }

/* Hidden visually, still focusable and announced. */
.filters-sidebar .filter-label input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.filters-sidebar .filter-label:has(input:checked) {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.filters-sidebar .filter-label:has(input:focus-visible) {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

@media (min-width: 901px) {
  .filters-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
  }
  .filters-sidebar .filter-group:last-child { flex-basis: 100%; } /* the long brand list gets its own row */
  .view-toggles { display: none; } /* one clean grid on desktop; the 1/2-column choice stays for phones */
}

.product-grid { gap: 1.75rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.product-grid .product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.product-grid .product-card:hover { transform: none; box-shadow: none; }
.product-grid .product-image-container { border-radius: 6px; }
.product-grid .product-info { padding: 0.75rem 0 0; }
.product-grid .product-category { margin-bottom: 0.2rem; }
.product-grid .product-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.product-grid .product-desc { display: none; }

.product-grid .product-order-btn {
  align-self: flex-start;
  width: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-gray-800);
  font-size: 0.85rem;
  text-decoration: underline;
  text-transform: none;
}

/* mini-cart: the cart in a dialog (a side drawer from 900px, a bottom sheet below). Built by cart.js. */
html.is-mini-cart-open { overflow: hidden; }

.mini-cart {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  max-height: 86dvh;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-main);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.mini-cart[open] {
  display: flex;
  flex-direction: column;
  animation: mini-cart-up 0.25s ease-out;
}

.mini-cart::backdrop { background: rgba(0, 0, 0, 0.45); }

/* the sheet's grab handle (decoration only) */
.mini-cart::before {
  content: '';
  flex: none;
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: #ccc;
}

@keyframes mini-cart-up { from { transform: translateY(100%); } }
@keyframes mini-cart-right { from { transform: translateX(100%); } }

@media (min-width: 900px) {
  .mini-cart {
    inset: 0 0 0 auto;
    width: 440px;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }
  .mini-cart::before { display: none; }
  .mini-cart[open] { animation-name: mini-cart-right; }
}

@media (prefers-reduced-motion: reduce) {
  .mini-cart[open] { animation: none; }
}

.mini-cart a:focus-visible,
.mini-cart button:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }

.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 8px 16px 10px 20px;
  border-bottom: 1px solid var(--color-gray-200);
}

.mini-cart-title { margin: 0; font-size: 1.3rem; font-weight: 700; }

.mini-cart-x {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.mini-cart-x:hover { background: var(--color-gray-100); }

.mini-cart-body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }

.mini-cart-foot {
  flex: none;
  padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-white);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.06);
}

.mini-added {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #17612a;
}

.mini-added i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3f3e6;
  font-size: 0.8rem;
  font-style: normal;
}

.mini-lines { list-style: none; margin: 0; padding: 0; }

.mini-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 4px 12px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--color-gray-200);
  border-radius: 8px;
}

.mini-line.is-new { margin-top: 8px; background: #f7fbf8; box-shadow: inset 3px 0 0 #17612a; }
.mini-line.is-unavailable { opacity: 0.85; }
.mini-line.is-unavailable .mini-line-image img { filter: grayscale(1); }

.mini-line-image {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: var(--color-gray-100);
  overflow: hidden;
}

.mini-line-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mini-line-info { min-width: 0; }
.mini-line-name { display: block; font-size: 0.95rem; font-weight: 600; color: var(--color-black); text-decoration: none; }
.mini-line-name:hover { text-decoration: underline; }
.mini-line-meta { margin: 2px 0 0; font-size: 0.85rem; color: var(--color-gray-800); }
.mini-line-status { margin: 6px 0 0; }

.mini-line-remove {
  margin-top: 4px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--color-gray-800);
  text-decoration: underline;
  cursor: pointer;
}

.mini-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mini-line-total { margin: 0; font-size: 1.05rem; font-weight: 700; }
.mini-line-each { margin: 0; font-size: 0.85rem; color: var(--color-gray-800); }
.mini-line-note { grid-column: 2 / -1; justify-self: start; margin: 2px 0 0; }

.mini-empty,
.mini-loading,
.mini-error { margin: 24px 0; color: var(--color-gray-800); }

.mini-reco-title { margin: 22px 0 10px; font-size: 1.05rem; font-weight: 700; }
.mini-reco-list { list-style: none; margin: 0; padding: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.mini-reco-card a {
  display: block;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  color: var(--color-black);
  font-size: 0.85rem;
  text-decoration: none;
}

.mini-reco-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; border-radius: 6px; background: var(--color-gray-100); }
.mini-reco-name { display: block; }
.mini-reco-price { display: block; margin-top: 2px; font-weight: 700; }

.mini-note { margin: 0 0 10px; }

.mini-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; color: var(--color-gray-800); }
.mini-total b { font-size: 1.5rem; color: var(--color-black); }

.mini-actions { display: flex; flex-direction: column; }

.mini-checkout {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.mini-checkout.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.mini-continue {
  margin-top: 2px;
  padding: 0.55rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-800);
  text-decoration: underline;
  cursor: pointer;
}

.mini-abroad { display: block; margin-top: 0; text-align: center; font-size: 0.85rem; color: var(--color-gray-800); text-decoration: underline; }

/* shop filters — the /shop/ listing's controls (shop-filters.js). Without JS only the collection links and the count show. */
.shop-filters { margin: 0 0 1.25rem; }
.shop-filters-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.shop-filters-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-filters-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.shop-filters-groups { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

/* Room for the controls the script adds, so the grid never jumps when it starts. */
@media (scripting: enabled) {
  .shop-filters-tools { min-height: 44px; }
  .shop-filters-groups { min-height: 44px; }
}

/* On a phone the quick chips the script builds take a row of their own above the tools: hold that row while the nav is
   still empty (a nav that already has server-rendered links is not :empty), so the count and the grid never drop. */
@media (scripting: enabled) and (max-width: 680px) {
  .shop-filters-quick:empty { flex: 0 0 100%; min-height: 44px; }
}

/* Between a phone and a laptop the group pills wrap into two rows (they sit in the sheet at <=600px, one row from ~680px). */
@media (scripting: enabled) and (min-width: 601px) and (max-width: 680px) {
  .shop-filters-groups { min-height: 96px; }
}

.shop-chip,
.shop-filters-btn,
.shop-filters-pill,
.shop-filters-ghost,
.shop-filters-primary {
  font: inherit;
  cursor: pointer;
}

.shop-chip,
.shop-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 50px;
  background: var(--color-white);
  color: var(--color-gray-800);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition-fast);
}

.shop-chip:hover,
.shop-filters-btn:hover { border-color: var(--color-black); }

.shop-chip.is-on {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.shop-filters-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
}

.shop-filters-badge[hidden] { display: none; }
.shop-filters-caret { font-size: 0.65rem; opacity: 0.7; }
.shop-filters-btn--filters { display: none; }
.shop-filters-sort-current { color: var(--color-black); }
.shop-filters-btn-label:has(+ .shop-filters-sort-current)::after { content: ':'; }

.shop-filters-dd { position: relative; }

.shop-filters-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 230px;
  max-height: 320px;
  overflow: auto;
  padding: 0.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.shop-filters-pop[hidden] { display: none; }
.shop-filters-pop.is-right { left: auto; right: 0; }

.shop-filters-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.shop-filters-opt:hover { background: var(--color-gray-100); }
.shop-filters-opt input { width: 16px; height: 16px; accent-color: var(--color-black); }
.shop-filters-opt.is-disabled { opacity: 0.4; cursor: not-allowed; }
.shop-filters-opt-count { margin-left: auto; color: var(--color-gray-800); opacity: 0.6; font-size: 0.8rem; }

.shop-filters-found {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.shop-filters-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.3rem 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--color-gray-100);
  font-size: 0.85rem;
}

.shop-filters-active button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--color-gray-200);
  color: inherit;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}

.shop-filters-clear {
  padding: 0.5rem 0.25rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

.shop-card[hidden],
.category-grid[hidden] { display: none; }

.shop-filters-empty {
  margin-top: 1.25rem;
  padding: 3rem 1rem;
  border: 1px dashed var(--color-gray-200);
  border-radius: 12px;
  text-align: center;
}

.shop-filters-empty[hidden] { display: none; }
.shop-filters-empty strong { display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }
.shop-filters-empty p { margin: 0 0 1rem; color: var(--color-gray-800); }

.shop-filters-primary {
  flex: 1;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 600;
}

.shop-filters-primary--inline { flex: none; }

.shop-filters-ghost {
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  background: var(--color-white);
  color: inherit;
}

/* The bottom sheet (phones): one native dialog, so Esc, focus and the dim backdrop come for free. */
.shop-filters-sheet {
  width: 100%;
  max-width: none;
  max-height: 85vh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--color-white);
  color: var(--color-black);
}

.shop-filters-sheet[open] { display: flex; flex-direction: column; }
.shop-filters-sheet::backdrop { background: rgba(0, 0, 0, 0.45); }

.shop-filters-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.6rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.shop-filters-sheet-title { margin: 0; font-size: 1.1rem; }

.shop-filters-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.shop-filters-sheet-body { flex: 1; overflow: auto; padding: 0 1rem 1rem; }
.shop-filters-sheet-group { padding: 0.9rem 0; border-bottom: 1px solid var(--color-gray-100); }

.shop-filters-sheet-group h3 {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray-800);
}

.shop-filters-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.shop-filters-pill {
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-gray-800);
  font-size: 0.9rem;
}

.shop-filters-pill[aria-pressed="true"] {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

.shop-filters-pill:disabled { opacity: 0.35; cursor: not-allowed; }
.shop-filters-pill small { margin-left: 0.25rem; opacity: 0.6; }

.shop-filters-sheet-foot {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

@media (prefers-reduced-motion: no-preference) {
  .shop-filters-sheet[open] { animation: shop-filters-rise 0.22s ease-out; }
  @keyframes shop-filters-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ≤600px: [Filters] [Sort] on one line, the quick chips scroll sideways, the groups live in the sheet. */
@media (max-width: 600px) {
  .shop-filters-top { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .shop-filters-tools { order: -1; margin-left: 0; }
  .shop-filters-tools .shop-filters-btn { width: 100%; justify-content: center; }
  .shop-filters-tools .shop-filters-dd,
  .shop-filters-btn--filters { flex: 1; min-width: 0; }
  .shop-filters-btn--filters { display: inline-flex; }
  .shop-filters-sort-current { display: none; }
  .shop-filters-btn-label:has(+ .shop-filters-sort-current)::after { content: none; }
  .shop-filters-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .shop-filters-quick::-webkit-scrollbar { display: none; }
  .shop-chip { flex: none; }
  .shop-filters-groups { display: none; }
  .shop-filters-pop.is-right { right: 0; }
}

/* shop home — the listing is the home page of a shop build (backlog п. 36): the facts line under the intro and the block under the grid */
.shop-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin: -0.5rem auto 1.5rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-gray-800);
}
.shop-trust li::before { content: "✓"; margin-right: 0.35rem; font-weight: 700; color: var(--color-black); }
.home-below { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--color-gray-200); }
.home-below .brand-story { margin-bottom: 2rem; }
.home-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.home-help-card {
  display: block;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: var(--color-gray-800);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}
.home-help-card:hover, .home-help-card:focus-visible { border-color: var(--color-black); }
.home-help-card h3 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--color-black); }
.home-help-card p { font-size: 0.9rem; margin: 0 0 0.6rem; }
.home-help-card strong { color: var(--color-black); }
.home-help-more { font-size: 0.85rem; font-weight: 600; color: var(--color-black); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .home-help { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shop-trust { justify-content: flex-start; gap: 0.25rem 0.9rem; font-size: 0.82rem; margin-top: -0.75rem; }
}
