/* ============================================================
   SUNDAPATH DESIGN SYSTEM
   Handbestickte Unikate — Fair, Nachhaltig, Einzigartig
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors — warm, natural, derived from embroidery & cotton */
  --color-cream: #FAF6F1;
  --color-cream-dark: #F0EAE0;
  --color-sand: #E8DDD0;
  --color-warm-gray: #B8A99A;
  --color-earth: #8B7355;
  --color-earth-dark: #6B5840;
  --color-forest: #4A6741;
  --color-forest-dark: #3A5233;
  --color-forest-light: #5A7E50;
  /* Darkened for WCAG AA: #A85D32 on white = 4.91:1 (was #C4703F = 3.66:1) */
  --color-terracotta: #A85D32;
  --color-terracotta-dark: #8F4C29;
  --color-terracotta-light: #D4864F;
  --color-rose: #B5616A;
  --color-rose-light: #D4949A;
  --color-text: #2C2420;
  --color-text-light: #5A504A;
  --color-text-muted: #6E655E; /* darkened for AA: 5.70:1 on white (was #8A8078 = 3.86:1) */
  --color-white: #FFFFFF;
  --color-black: #1A1614;
  --color-border: #E0D8CE;
  --color-border-light: #EDE8E2;
  --color-overlay: rgba(44, 36, 32, 0.6);
  --color-success: #4A6741;
  --color-error: #B5616A;

  /* Typography */
  --font-heading: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.05em;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --header-height: 80px;
  --header-height-scrolled: 70px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 36, 32, 0.1);
  --shadow-lg: 0 8px 24px rgba(44, 36, 32, 0.12);
  --shadow-xl: 0 12px 36px rgba(44, 36, 32, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-lg));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-forest-dark);
}

a:focus-visible {
  outline: 3px solid var(--color-forest);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 3px solid var(--color-forest);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

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

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* --- Sections --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--cream {
  background-color: var(--color-cream);
}

.section--sand {
  background-color: var(--color-sand);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  font-weight: 400;
  margin-top: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-terracotta);
  border: none;
  margin: var(--space-lg) auto;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  z-index: var(--z-sticky);
  transition: height var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(19, 63, 38, 0.24);
  transition: width var(--transition-base), height var(--transition-base);
}

.header--scrolled .header__logo-img {
  width: 40px;
  height: 40px;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-wide);
}

/* Main Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-forest);
  background-color: var(--color-cream);
}

.nav__link-arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition-fast);
}

.nav__item--has-dropdown:hover .nav__link-arrow,
.nav__item--has-dropdown.is-open .nav__link-arrow {
  transform: rotate(-135deg);
}

/* Mega Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 580px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: var(--z-dropdown);
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: background-color var(--transition-fast);
  min-height: 44px;
}

.nav__dropdown-link:hover {
  background-color: var(--color-cream);
  color: var(--color-forest);
}

.nav__dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.nav__dropdown-text {
  font-weight: 500;
  font-size: var(--font-size-base);
}

.nav__dropdown-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav__dropdown-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.nav__dropdown-footer a {
  font-weight: 600;
  color: var(--color-forest);
}

/* Header CTA */
.header__cta {
  flex-shrink: 0;
  margin-left: var(--space-md);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
}

.nav__toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-base);
}

.nav__toggle-icon::before { top: -7px; }
.nav__toggle-icon::after { top: 7px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
  background-color: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.btn--primary:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn--secondary:hover {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
  padding: 0.875rem var(--space-md);
}

.btn--ghost:hover {
  background-color: var(--color-cream);
  color: var(--color-forest);
}

.btn--etsy {
  /* Darkened Etsy orange for WCAG AA: #BF4E17 on white = 4.86:1 (was #F16521 = 3.17:1) */
  background-color: #BF4E17;
  color: var(--color-white);
  border-color: #BF4E17;
}

.btn--etsy:hover {
  background-color: #A8420F;
  border-color: #A8420F;
  color: var(--color-white);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  min-height: 44px; /* P7: 44px touch target even for the small header CTA */
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--font-size-md);
  min-height: 52px;
}

.btn--full {
  width: 100%;
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  background-color: var(--color-cream);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-forest);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-badge {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  background-color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-xl) 0;
}

.trust-bar__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: 500;
}

.trust-bar__icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--color-cream);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background-color: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.product-card__body {
  padding: var(--space-lg);
}

.product-card__category {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.product-card__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-md);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: background-color var(--transition-fast);
}

.product-card__cta:hover {
  background-color: var(--color-terracotta-dark);
  color: var(--color-white);
}

.product-card__price--pending {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.product-card__cta--pending {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-sand);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  min-height: 44px;
  cursor: default;
}

/* Sold-out state */
.product-card--sold-out {
  position: relative;
}

.product-card--sold-out .product-card__image img,
.product-card--sold-out .product-card__image picture {
  opacity: 0.55;
  filter: grayscale(30%);
  transition: opacity var(--transition-base), filter var(--transition-base);
}

.product-card--sold-out:hover .product-card__image img,
.product-card--sold-out:hover .product-card__image picture {
  opacity: 0.75;
  filter: grayscale(10%);
}

.product-card__sold-out-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.product-card__sold-out-text {
  background: rgba(44, 36, 32, 0.85);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.product-card__cta--sold-out {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-warm-gray);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  min-height: 44px;
  cursor: default;
  text-align: center;
  line-height: 1.3;
}

/* Material label */
.product-card__material {
  font-size: var(--font-size-sm);
  color: var(--color-forest);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Product card image gallery */
.product-card__gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-card__slide {
  display: none;
  width: 100%;
  height: 100%;
}

.product-card__slide.is-active {
  display: block;
}

.product-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; /* P7: min 44x44 touch target */
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1; /* P7: visible by default so touch devices can use it */
  transition: opacity var(--transition-fast), background var(--transition-fast);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* On hover-capable (desktop) devices, reveal arrows on hover/focus only. */
@media (hover: hover) and (pointer: fine) {
  .product-card__gallery-btn {
    opacity: 0;
  }
  .product-card:hover .product-card__gallery-btn,
  .product-card__gallery-btn:focus-visible {
    opacity: 1;
  }
}

.product-card__gallery-btn--prev {
  left: 6px;
}

.product-card__gallery-btn--next {
  right: 6px;
}

.product-card__gallery-btn:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.product-card__gallery-btn:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

.product-card__gallery-dots {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  display: flex;
  gap: 0;
  z-index: 3;
  height: 44px; /* P7: 44px-tall touch strip */
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-card__gallery-dots::-webkit-scrollbar {
  display: none;
}

/* Real <button> dots with a generous touch area and a small visual dot. */
.product-card__gallery-dot {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__gallery-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.product-card__gallery-dot.is-active::before {
  background: var(--color-white);
  transform: scale(1.5);
}

.product-card__gallery-dot:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: -6px;
  border-radius: var(--radius-sm);
}

/* Product Filters */
.product-filters {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
}

.product-filters__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-light);
}

.product-filters__btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.product-filters__btn:hover,
.product-filters__btn.is-active {
  border-color: var(--color-forest);
  background-color: var(--color-cream);
  color: var(--color-forest);
}

.product-filters__count {
  margin-left: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   SHOP-FIRST HOMEPAGE
   ============================================================ */
.shop-home {
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  background:
    linear-gradient(180deg, var(--color-cream) 0, var(--color-white) 18rem);
}

.shop-home > * {
  order: 10;
}

.shop-mask {
  order: 1;
}

.shop-etsy-wrap {
  order: 2;
}

.shop-hero {
  order: 3;
}

.shop-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

.shop-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: var(--space-3xl);
  align-items: center;
}

.shop-hero__content {
  max-width: 680px;
}

.shop-hero__badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-md);
  color: var(--color-forest);
  font-size: var(--font-size-sm);
  font-weight: 800;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.shop-hero h2 {
  max-width: 12ch;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 3.65rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.shop-hero__subtitle {
  max-width: 62ch;
  margin-bottom: var(--space-xl);
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
}

.shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.shop-hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  list-style: none;
}

.shop-hero__trust li {
  min-height: 54px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.shop-hero__media {
  position: relative;
  min-height: 390px;
}

.shop-hero__main-image,
.shop-hero__thumb {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(74, 103, 65, 0.18);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.shop-hero__main-image {
  aspect-ratio: 1;
  width: min(100%, 380px);
  margin-left: auto;
}

.shop-hero__main-image img,
.shop-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-hero__thumb {
  position: absolute;
  width: 142px;
  aspect-ratio: 1;
}

.shop-hero__thumb--one {
  left: 0;
  bottom: 44px;
}

.shop-hero__thumb--two {
  right: 28px;
  bottom: -8px;
}

.trust-bar--compact {
  display: none;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.shop-mask {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--color-white);
}

.shop-mask__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.shop-mask__header h1,
.shop-mask__header h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-3xl);
}

.shop-mask__header p {
  max-width: 760px;
  color: var(--color-text-light);
}

.shop-mask__etsy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  color: var(--color-terracotta-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.shop-controls {
  position: sticky;
  top: var(--header-height-scrolled);
  z-index: 20;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.shop-category-strip {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex: 0 0 auto;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.shop-chip:hover,
.shop-chip.is-active {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: var(--color-white);
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  gap: var(--space-md);
}

.shop-search,
.shop-sort {
  display: grid;
  gap: var(--space-xs);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 800;
}

.shop-search input,
.shop-sort select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  padding: 0 var(--space-md);
}

.shop-search input:focus,
.shop-sort select:focus {
  outline: 3px solid rgba(196, 112, 63, 0.22);
  border-color: var(--color-terracotta);
}

.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  font-weight: 800;
}

.shop-results-bar__note {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.shop-products {
  align-items: stretch;
}

.shop-products .product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.shop-products .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.shop-products .product-card__footer {
  margin-top: auto;
  gap: var(--space-sm);
}

.shop-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

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

.etsy-notice--shop {
  margin: 0 0 var(--space-3xl);
}

.category-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section--proof {
  background: var(--color-white);
}

.story--shop .story__actions {
  margin-top: var(--space-2xl);
}

/* Noscript fallback */
.noscript-notice {
  padding: var(--space-2xl);
  background-color: var(--color-cream);
  border: 2px solid var(--color-terracotta);
  border-radius: var(--radius-md);
  text-align: center;
  margin: var(--space-xl) 0;
}

.noscript-notice h3 {
  margin-bottom: var(--space-md);
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.category-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: var(--color-white);
}

.category-tile__image {
  position: absolute;
  inset: 0;
  background-color: var(--color-earth);
}

.category-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-tile:hover .category-tile__image img {
  transform: scale(1.08);
}

.category-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 20, 0.7) 0%, rgba(26, 22, 20, 0.1) 60%);
  transition: background var(--transition-base);
}

.category-tile:hover .category-tile__overlay {
  background: linear-gradient(to top, rgba(26, 22, 20, 0.8) 0%, rgba(26, 22, 20, 0.2) 60%);
}

.category-tile__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
}

.category-tile__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.category-tile__count {
  font-size: var(--font-size-sm);
  opacity: 0.85;
}

/* ============================================================
   STORY / IMPACT SECTION
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.story--reverse {
  direction: rtl;
}

.story--reverse > * {
  direction: ltr;
}

.story__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__content h2 {
  margin-bottom: var(--space-lg);
}

.story__content p {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
}

.story__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.story__stat-value {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-terracotta);
}

.story__stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ============================================================
   MATERIAL / SUSTAINABILITY
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
}

.testimonial-card__stars {
  color: var(--color-terracotta);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-card__author {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-card__source {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.placeholder-notice {
  text-align: center;
  padding: var(--space-md);
  background-color: var(--color-cream);
  border: 1px dashed var(--color-warm-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  gap: var(--space-md);
}

.faq-item__question:hover {
  color: var(--color-forest);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer-inner {
  padding: 0 0 var(--space-lg) 0;
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

/* ============================================================
/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-md);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.85); /* AA on dark footer */
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-lg);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer__social a:hover {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__bottom p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75); /* AA on dark footer (was 0.4 = ~3.9:1) */
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer__bottom-links a:hover {
  color: var(--color-white);
}

/* ============================================================
   FORMS (Contact)
   ============================================================ */
.form {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.875rem var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
  min-height: 48px;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.25); /* visible keyboard focus ring */
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

.form__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-forest);
}

.form__checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form__success {
  display: none;
  padding: var(--space-lg);
  background-color: rgba(74, 103, 65, 0.1);
  border: 1px solid var(--color-forest);
  border-radius: var(--radius-sm);
  color: var(--color-forest);
  font-weight: 500;
}

.form__error {
  display: none;
  padding: var(--space-lg);
  background-color: rgba(181, 97, 106, 0.1);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  color: var(--color-error);
  font-weight: 500;
  margin-top: var(--space-md);
}

.form__error a {
  color: var(--color-error);
  text-decoration: underline;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: var(--space-md) 0;
  margin-top: var(--header-height);
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-sm) var(--space-xs); /* P7: larger touch area, stays visually small */
  margin: calc(var(--space-sm) * -1) 0; /* keep the row visually compact */
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--color-forest);
}

.breadcrumbs__separator {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.breadcrumbs__current {
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   PAGE HERO (for subpages)
   ============================================================ */
.page-hero {
  background-color: var(--color-cream);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-hero--with-breadcrumbs {
  margin-top: 0;
  padding-top: var(--space-2xl);
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--font-size-md);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   CONTENT PAGES
   ============================================================ */
.content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.content p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.content ul,
.content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.content li {
  margin-bottom: var(--space-sm);
  list-style: disc;
  line-height: var(--line-height-normal);
}

.content ol li {
  list-style: decimal;
}

/* ============================================================
   ETSY REDIRECT NOTICE
   ============================================================ */
.etsy-notice {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
  border-left: 4px solid #F16521;
  margin: var(--space-xl) 0;
}

.etsy-notice__icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.etsy-notice__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
}

.etsy-notice__text strong {
  color: var(--color-text);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  padding: var(--space-4xl) var(--space-lg);
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-sand);
  line-height: 1;
}

.error-page h1 {
  margin: var(--space-lg) 0 var(--space-md);
}

.error-page p {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero__image {
    max-height: 400px;
    aspect-ratio: 16 / 9;
  }

  .shop-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .shop-hero h2 {
    font-size: 3.35rem;
  }

  .shop-hero__media {
    min-height: 360px;
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .shop-hero__main-image {
    margin: 0 auto;
    width: min(76vw, 420px);
  }

  .shop-mask__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-controls {
    top: var(--header-height);
  }

  .category-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .story--reverse {
    direction: ltr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  /* Show mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-white);
    padding: var(--space-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-dropdown);
  }

  .nav__list.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--font-size-md);
    padding: var(--space-md);
    justify-content: space-between;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background-color: transparent;
  }

  .nav__item--has-dropdown.is-open .nav__dropdown {
    max-height: 600px;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
  }

  .nav__dropdown-grid {
    grid-template-columns: 1fr;
  }

  .nav__dropdown-footer {
    display: none;
  }

  .header__cta {
    display: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .shop-hero {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .shop-hero__content {
    text-align: left;
  }

  .shop-hero h2 {
    max-width: 11ch;
    margin-bottom: var(--space-md);
    font-size: 2.1rem;
    line-height: 1.02;
  }

  .shop-hero__subtitle {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
  }

  .shop-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: 0;
  }

  .shop-hero__actions .btn--secondary {
    display: none;
  }

  .shop-hero__trust {
    display: none;
  }

  .shop-hero__media {
    display: none;
  }

  .hero__content {
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .shop-mask {
    padding: var(--space-lg) 0 var(--space-2xl);
  }

  .shop-mask__header {
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .shop-mask__header h1,
  .shop-mask__header h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0;
  }

  .shop-mask__header p,
  .shop-mask__etsy-link,
  .trust-bar--compact {
    display: none;
  }

  .shop-mask__etsy-link {
    width: 100%;
  }

  .shop-controls {
    position: static;
    margin-left: calc(var(--space-md) * -1);
    margin-right: calc(var(--space-md) * -1);
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .shop-category-strip {
    margin-bottom: var(--space-sm);
  }

  .shop-chip {
    min-height: 40px;
    padding: var(--space-xs) var(--space-md);
  }

  .shop-toolbar {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: var(--space-sm);
  }

  .shop-search span,
  .shop-sort span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .shop-search input,
  .shop-sort select {
    min-height: 44px;
    padding: 0 var(--space-sm);
  }

  .shop-results-bar {
    margin-bottom: var(--space-md);
  }

  .shop-results-bar__note {
    display: none;
  }

  .shop-products {
    grid-template-columns: 1fr;
  }

  .shop-products .product-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-products .product-card__cta,
  .shop-products .product-card__cta--pending,
  .shop-products .product-card__cta--sold-out {
    justify-content: center;
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .category-tile {
    aspect-ratio: 1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .story__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-bar__list {
    gap: var(--space-lg);
    justify-content: flex-start;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn--lg {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .header,
  .nav__toggle,
  .footer__social {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    margin-top: 0;
  }
}

/* ============================================================
   PLACEHOLDER IMAGE STYLES (for development)
   ============================================================ */
.placeholder-img {
  background-color: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-gray);
  font-size: var(--font-size-sm);
  text-align: center;
  padding: var(--space-md);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   CATEGORY PAGE SPECIFICS
   ============================================================ */
.category-intro {
  max-width: var(--max-width-narrow);
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.category-intro p {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
}

.category-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-3xl) 0;
}

.category-advantage {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
}

.category-advantage__icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

.category-advantage__title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.category-advantage__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.related-categories {
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border-light);
}

.related-categories h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.related-categories__grid {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.related-categories__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.related-categories__link:hover {
  border-color: var(--color-forest);
  color: var(--color-forest);
  background-color: var(--color-cream);
}

/* Etsy Shop CTA Bar */
.etsy-cta-bar {
  background-color: var(--color-cream);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.etsy-cta-bar p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* ============================================================
   OPTION 3 + 1 REDESIGN: IMPACT ACCESSORY / EDITORIAL CRAFT
   ============================================================ */
.craft-home {
  --craft-ink: #251f1b;
  --craft-paper: #fbf7f0;
  --craft-wash: #f2eadf;
  --craft-line: #ded3c6;
  --craft-madder: #a84f3f;
  --craft-indigo: #263d49;
  --craft-moss: #556b4a;
  padding-top: var(--header-height);
  background: var(--craft-paper);
  color: var(--craft-ink);
}

.craft-home > * {
  order: initial;
}

.craft-home .section-kicker {
  color: var(--craft-madder);
  letter-spacing: 0.05em;
}

.craft-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(251, 247, 240, 0.96), rgba(251, 247, 240, 0.74)),
    var(--craft-paper);
}

.craft-hero__inner {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.craft-hero__copy {
  max-width: 680px;
}

.craft-hero h1 {
  max-width: 12ch;
  margin-bottom: var(--space-lg);
  color: var(--craft-ink);
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.craft-hero__lead {
  max-width: 58ch;
  margin-bottom: var(--space-xl);
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
}

.craft-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.craft-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  max-width: 640px;
}

.craft-hero__facts div {
  padding-top: var(--space-md);
  border-top: 1px solid var(--craft-line);
}

.craft-hero__facts dt {
  margin-bottom: var(--space-xs);
  color: var(--craft-indigo);
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1;
}

.craft-hero__facts dd {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.craft-hero__gallery {
  position: relative;
  min-height: 560px;
}

.craft-hero__image {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(37, 31, 27, 0.12);
  background: var(--color-white);
  box-shadow: 0 18px 48px rgba(37, 31, 27, 0.14);
}

.craft-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-hero__image--large {
  width: min(78%, 470px);
  aspect-ratio: 4 / 5;
  margin-left: auto;
}

.craft-hero__image--small {
  position: absolute;
  width: 178px;
  aspect-ratio: 1;
}

.craft-hero__image--top {
  left: 0;
  top: 64px;
}

.craft-hero__image--bottom {
  right: 20px;
  bottom: 8px;
}

.proof-ribbon {
  border-top: 1px solid var(--craft-line);
  border-bottom: 1px solid var(--craft-line);
  background: var(--color-white);
}

.proof-ribbon__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  list-style: none;
  padding: var(--space-md) 0;
}

.proof-ribbon__list li {
  color: var(--craft-indigo);
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-align: center;
}

.editorial-section-head {
  max-width: 820px;
  margin-bottom: var(--space-2xl);
}

.editorial-section-head h2 {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-3xl);
  line-height: 1.08;
}

.editorial-section-head p {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
}

.editorial-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: var(--space-2xl);
  align-items: end;
  max-width: none;
}

.curated-shop,
.use-cases,
.impact-editorial,
.full-shop,
.faq-compact {
  padding: var(--space-4xl) 0;
}

.curated-shop {
  background: var(--color-white);
}

.curated-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.curated-shop__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

.use-cases {
  background: var(--craft-wash);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.use-card {
  position: relative;
  display: flex;
  min-height: 360px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-white);
  text-decoration: none;
  isolation: isolate;
}

.use-card--wide {
  grid-column: span 2;
}

.use-card picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.use-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.use-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(37, 31, 27, 0.05), rgba(37, 31, 27, 0.72));
}

.use-card:hover img {
  transform: scale(1.04);
}

.use-card span {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-transform: uppercase;
}

.use-card strong {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  line-height: 1;
}

.checkout-trust {
  padding: var(--space-2xl) 0;
  background: var(--craft-indigo);
  color: var(--color-white);
}

.checkout-trust .section-kicker {
  color: #f1c8a2;
}

.checkout-trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.8fr) auto;
  gap: var(--space-xl);
  align-items: center;
}

.checkout-trust h2 {
  font-size: var(--font-size-2xl);
}

.checkout-trust p {
  color: rgba(255, 255, 255, 0.8);
}

.impact-editorial {
  background: var(--craft-paper);
}

.impact-editorial__inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 0.95fr);
  gap: var(--space-3xl);
  align-items: center;
}

.impact-editorial__image {
  overflow: hidden;
  border: 1px solid var(--craft-line);
}

.impact-editorial__image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.impact-editorial__copy h2 {
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-3xl);
}

.impact-editorial__copy p {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
}

.impact-editorial__copy .btn {
  margin-top: var(--space-lg);
}

.full-shop {
  background: var(--color-white);
}

.full-shop .shop-controls {
  position: static;
}

.craft-home .product-card {
  border-color: rgba(37, 31, 27, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.craft-home .product-card:hover {
  box-shadow: 0 14px 30px rgba(37, 31, 27, 0.1);
}

.craft-home .product-card__image {
  background: var(--craft-wash);
}

.craft-home .product-card__body {
  padding: var(--space-md);
}

.craft-home .product-card__category {
  color: var(--craft-madder);
  letter-spacing: 0.04em;
}

.craft-home .product-card__name {
  font-size: var(--font-size-md);
  line-height: 1.15;
}

.product-card__scarcity {
  margin-bottom: var(--space-sm);
  color: var(--craft-indigo);
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-transform: uppercase;
}

.craft-home .product-card__description {
  display: none;
}

.craft-home .product-card__material {
  margin-bottom: var(--space-sm);
  color: var(--craft-moss);
}

.craft-home .product-card__footer {
  align-items: stretch;
  flex-direction: column;
  gap: var(--space-sm);
}

.craft-home .product-card__cta {
  justify-content: center;
  width: 100%;
  background: var(--craft-ink);
}

.craft-home .product-card__cta:hover {
  background: var(--craft-madder);
}

.craft-home .product-card__badge {
  border-radius: 0;
  background: var(--craft-paper);
  color: var(--craft-ink);
}

.craft-home .shop-mask__header {
  align-items: end;
}

.craft-home .shop-mask__header h2 {
  font-size: var(--font-size-3xl);
}

.craft-home .shop-mask__header p {
  color: var(--color-text-light);
}

.craft-home .shop-controls {
  border-radius: 0;
  border-color: var(--craft-line);
  box-shadow: none;
}

.craft-home .shop-chip {
  border-radius: 0;
}

.craft-home .shop-chip:hover,
.craft-home .shop-chip.is-active {
  border-color: var(--craft-ink);
  background: var(--craft-ink);
}

@media (max-width: 1024px) {
  .craft-hero__inner,
  .impact-editorial__inner,
  .checkout-trust__inner,
  .editorial-section-head--split {
    grid-template-columns: 1fr;
  }

  .craft-hero h1 {
    font-size: 3.4rem;
  }

  .craft-hero__gallery {
    min-height: 420px;
    max-width: 680px;
  }

  .proof-ribbon__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curated-products,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .craft-home {
    padding-top: var(--header-height);
  }

  .craft-hero {
    padding: var(--space-lg) 0 var(--space-md);
  }

  .craft-hero h1 {
    max-width: 12ch;
    margin-bottom: var(--space-sm);
    font-size: 2.2rem;
    line-height: 1.02;
  }

  .craft-hero__lead {
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
  }

  .craft-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .craft-hero__actions .btn--secondary {
    display: none;
  }

  .craft-hero__facts {
    display: none;
  }

  .craft-hero__gallery {
    min-height: 0;
  }

  .craft-hero__image--large {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .craft-hero__image--small {
    display: none;
  }

  .proof-ribbon__list {
    display: none;
  }

  .curated-shop,
  .use-cases,
  .impact-editorial,
  .full-shop,
  .faq-compact {
    padding: var(--space-2xl) 0;
  }

  .curated-shop {
    padding-top: var(--space-lg);
  }

  .editorial-section-head h2,
  .impact-editorial__copy h2,
  .craft-home .shop-mask__header h2 {
    font-size: var(--font-size-2xl);
  }

  .curated-shop .editorial-section-head {
    margin-bottom: var(--space-lg);
  }

  .curated-shop .editorial-section-head h2 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xl);
  }

  .curated-shop .editorial-section-head p {
    display: none;
  }

  .curated-products,
  .use-case-grid,
  .shop-products {
    grid-template-columns: 1fr;
  }

  .use-card,
  .use-card--wide {
    grid-column: auto;
    min-height: 250px;
  }

  .checkout-trust__inner {
    gap: var(--space-md);
  }

  .checkout-trust .btn {
    width: 100%;
  }

  .impact-editorial__image img {
    min-height: 260px;
  }

  .craft-home .shop-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ACCESSIBILITY & DATA-STATE HELPERS (Review-Fixes)
   ============================================================ */

/* P8: closed FAQ answers must be truly hidden from the a11y tree.
   Wins over the .faq-item__answer max-height animation. */
.faq-item__answer[hidden] {
  display: none;
}

/* P9: honest empty-search state actions (real reset + real Etsy link) */
.shop-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.shop-empty p {
  margin: var(--space-sm) 0 0;
  color: var(--color-text-light);
}

/* P3: snapshot recency note in the shop results bar */
.shop-results-bar__stamp {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* P5: per-field contact-form validation feedback */
.form__field-error {
  display: block;
  margin-top: var(--space-xs);
  color: #9C444E; /* 6.27:1 on white */
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.form__field-error[hidden] {
  display: none;
}

.form__input[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  border-color: #9C444E;
}

.form__checkbox[aria-invalid="true"] {
  outline: 2px solid #9C444E;
  outline-offset: 2px;
}

/* P9: on tablet/mobile the category filters wrap so every category stays
   visible (no accidentally hidden filters). */
@media (max-width: 768px) {
  .shop-category-strip {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}
