/* ============================================
   AliVaera Crochets — Design System
   Warm cream/white base + lavender & blush accents (Ali samples)
   ============================================ */

:root {
  /* Warm cream/white base + Ali lavender/blush accents (Nev 2026-09-15) */
  --cream: #FAF7F2;
  --cream-dark: #F3EDE4;
  --sage: #8B71DB;          /* remapped: lavender accent (kept name for existing rules) */
  --sage-dark: #5A3FBF;     /* deep violet — sparingly */
  --sage-light: #C9BEF0;    /* soft periwinkle highlight */
  --blush: #F7D7E9;
  --blush-deep: #E8B4D4;
  --warm-gray: #6B6560;
  --warm-gray-light: #9A948E;
  --charcoal: #3D3935;      /* warm ink, not cool black */
  --white: #ffffff;
  --border: #E8E2D8;        /* soft warm beige */
  --shadow: rgba(61, 57, 53, 0.08);
  --shadow-hover: rgba(61, 57, 53, 0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --max-width: 1120px;
  --nav-height: 72px;
  --aspect-product: 4 / 5;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: var(--warm-gray);
  max-width: 36em;
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight {
  padding-block: var(--space-xl);
}

.site-main {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

.btn--primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--sage-dark);
  border-color: transparent;
  padding-inline: 0.75rem;
}

.btn--ghost:hover {
  color: var(--charcoal);
}

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

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--charcoal);
  white-space: nowrap;
}

.logo-img {
  display: block;
  width: min(156px, 34vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.logo-img--footer {
  width: min(210px, 70vw);
  max-height: 70px;
}

.logo span {
  color: var(--sage);
  font-weight: 400;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.4vw, var(--space-lg));
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
  font-weight: 500;
  color: var(--warm-gray);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

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

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--cream-dark);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}

.cart-link:hover {
  background: var(--sage-light);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: var(--white);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
}

/* Photo Placeholder */
.photo-slot {
  position: relative;
  aspect-ratio: var(--aspect-product);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--cream-dark) 0%, var(--blush) 45%, var(--sage-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 1px dashed rgba(107, 122, 94, 0.35);
}

.photo-slot--square {
  aspect-ratio: 1;
}

.photo-slot--wide {
  aspect-ratio: 16 / 9;
}

.photo-slot--thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: outline var(--transition), transform var(--transition);
}

.photo-slot--thumb:hover,
.photo-slot--thumb.is-active {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.photo-slot__yarn {
  width: 48%;
  max-width: 120px;
  opacity: 0.85;
}

.photo-slot__caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-align: center;
  padding: 0.35rem 0.75rem;
  background: rgba(250, 247, 242, 0.88);
  border-radius: var(--radius-pill);
  max-width: 90%;
  line-height: 1.3;
}

.photo-slot--alt-1 {
  background: linear-gradient(160deg, #FAF7F2 0%, #F7D7E9 55%, #EFE8DF 100%);
}

.photo-slot--alt-2 {
  background: linear-gradient(160deg, #FFFBF7 0%, #F7D7E9 50%, #EDE6DC 100%);
}

.photo-slot--alt-3 {
  background: linear-gradient(145deg, #FAF7F2 0%, #C9BEF0 45%, #F3EDE4 100%);
}

.photo-slot--alt-4 {
  background: linear-gradient(150deg, #FFFBF7 0%, #E8B4D4 35%, #C9BEF0 100%);
}

.photo-slot--alt-5 {
  background: linear-gradient(170deg, #FAF7F2 0%, #F7D7E9 40%, #EFE8DF 100%);
}

.photo-slot--filled {
  border: none;
  background: var(--cream-dark);
  padding: 0;
  display: block;
}

.photo-slot--filled picture {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-slot--filled img,
.photo-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-slot--thumb.photo-slot--filled {
  display: block;
}

.cart-item .photo-slot--filled {
  width: 100px;
}

/* Product Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl) var(--space-lg);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-card__category {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray-light);
  font-weight: 600;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.product-card__price {
  font-weight: 600;
  color: var(--sage-dark);
  margin-top: 0.15rem;
}

.product-card a:hover .product-card__name {
  color: var(--sage-dark);
}

/* Hero */
.hero {
  padding-block: var(--space-3xl) var(--space-2xl);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(197, 209, 184, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 60%, rgba(232, 196, 192, 0.4) 0%, transparent 45%),
    var(--cream);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.hero__visual {
  position: relative;
}

.hero__visual .photo-slot {
  aspect-ratio: 4 / 5;
  max-height: 480px;
  margin-inline: auto;
}

.hero__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
}

/* Section headers */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-header p {
  color: var(--warm-gray);
  max-width: 32em;
}

/* Story band */
.story-band {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.story-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.story-band__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.story-band__text p {
  color: var(--warm-gray);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-gray);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.filter-btn.is-active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.product-card.is-hidden {
  display: none;
}


/* Shop by Line hub */
.line-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

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

.line-card:hover {
  box-shadow: 0 12px 32px var(--shadow);
  transform: translateY(-2px);
}

.line-card a {
  display: block;
  color: inherit;
}

.line-card__meta {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.line-card__name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--charcoal);
}

.line-card__desc {
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

.line-card__cta {
  margin-top: var(--space-xs);
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.95rem;
}

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

/* Page header */
.page-header {
  padding-block: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.page-header .lede {
  margin-inline: auto;
  margin-top: var(--space-md);
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding-bottom: var(--space-2xl);
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.product-info__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.product-info__desc {
  color: var(--warm-gray);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.option-group label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.option-group select {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  max-width: 280px;
}

.swatches {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}

.swatch:hover,
.swatch.is-selected {
  box-shadow: 0 0 0 2px var(--sage);
  transform: scale(1.08);
}

.swatch--sage { background: #8B71DB; }
.swatch--cream { background: #FAF7F2; }
.swatch--blush { background: #F7D7E9; }
.swatch--terracotta { background: #c4785a; }
.swatch--sky { background: #a8c4d4; }

.product-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--warm-gray);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.product-meta-list li::before {
  content: "✦ ";
  color: var(--sage);
  font-size: 0.75rem;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: var(--space-xl);
  align-items: start;
  padding-bottom: var(--space-2xl);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-item .photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
}

.cart-item .photo-slot__yarn {
  max-width: 48px;
  width: 55%;
}

.cart-item .photo-slot__caption {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
}

.cart-item__details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.cart-item__details p {
  font-size: 0.9rem;
  color: var(--warm-gray);
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.cart-item__price {
  font-weight: 700;
  color: var(--sage-dark);
  white-space: nowrap;
}

.cart-summary {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-summary h2 {
  font-size: 1.35rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--warm-gray);
}

.summary-row--total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.cart-note {
  font-size: 0.85rem;
  color: var(--warm-gray-light);
  font-style: italic;
  text-align: center;
}

/* About / Contact */
.content-narrow {
  max-width: 640px;
  margin-inline: auto;
}

.content-narrow p {
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-bottom: var(--space-2xl);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.value-card {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.contact-card {
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card h2 {
  margin-bottom: var(--space-md);
}

.contact-card p {
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 1.1rem;
}

.contact-email:hover {
  text-decoration: underline;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-gray);
}

.form-row input,
.form-row textarea,
.form-row select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: border-color var(--transition), background var(--transition);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--warm-gray-light);
  font-style: italic;
}

/* Empty / notice */
.preview-banner {
  background: var(--sage-light);
  color: var(--sage-dark);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #cfc9c2;
  padding-block: var(--space-2xl) var(--space-xl);
  margin-top: auto;
}

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

.footer-brand .logo {
  color: var(--cream);
  display: inline-flex;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 28em;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}


/* Policy / legal prose */
.policy-page {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: var(--space-2xl);
}

.policy-page .lede {
  margin-bottom: var(--space-xl);
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--warm-gray-light);
  margin-bottom: var(--space-xl);
}

.policy-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.policy-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.policy-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-bottom: var(--space-md);
}

.policy-section p,
.policy-section li {
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
}

.policy-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--space-md);
}

.policy-section li {
  margin-bottom: 0.5rem;
}

.policy-section a {
  color: var(--sage-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.policy-callout p {
  margin-bottom: 0;
  color: var(--warm-gray);
}

.policy-cta {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.policy-cta p {
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
}

.footer-bottom a {
  color: inherit;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--cream);
}

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

.visually-hidden {
  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; }
.mt-lg { margin-top: var(--space-lg); }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .story-band__inner,
  .product-detail,
  .cart-layout,
  .about-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }

  .cart-summary {
    position: static;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    box-shadow: 0 12px 24px var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    background: var(--cream-dark);
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item__price {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
  }

  .product-card__name {
    font-size: 1.05rem;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* Hero & shop promo banners (Photo & Video assets) */
.hero-banner {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px var(--shadow);
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.shop-banner-wrap {
  margin-bottom: var(--space-lg);
}

.shop-banner {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px var(--shadow);
}

.shop-banner__img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 720px) {
  .hero-banner__img { max-height: 220px; }
  .shop-banner__img { max-height: 160px; }
}


/* ============================================================
   "Photo coming soon" placeholder tiles (js/photos.js)
   Shown when SHOW_PHOTOS = false in js/config.js
   ============================================================ */
.avc-ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(247, 215, 233, 0.75) 0, rgba(247, 215, 233, 0) 55%),
    radial-gradient(circle at 85% 90%, rgba(201, 190, 240, 0.65) 0, rgba(201, 190, 240, 0) 60%),
    var(--cream-dark);
  color: var(--sage-dark);
  border-radius: inherit;
}

/* stitched border */
.avc-ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(139, 113, 219, 0.45);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.avc-ph__yarn {
  width: 38%;
  max-width: 110px;
  height: auto;
  flex: 0 0 auto;
  opacity: 0.95;
}

.avc-ph__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 88%;
  align-items: center;
}

.avc-ph__label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--sage-dark);
  line-height: 1.2;
}

.avc-ph__name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-gray);
  line-height: 1.3;
}

/* ensure placeholder frames fill the existing 4:5 tile */
.photo-slot--ph {
  border: 1px solid var(--border);
  background: var(--cream-dark);
  display: block;
}

/* the old yarn-ball slots in the cart use the same look */
.cart-item .photo-slot--ph { width: 100px; }
.cart-item .avc-ph { padding: 0.4rem; gap: 0.25rem; }
.cart-item .avc-ph::before { inset: 4px; border-radius: 4px; }
.cart-item .avc-ph__yarn { width: 46%; }
.cart-item .avc-ph__label { font-size: 0.66rem; }
.cart-item .avc-ph__name { display: none; }

/* thumbnails: icon only */
.photo-slot--thumb .avc-ph { padding: 0.25rem; }
.photo-slot--thumb .avc-ph::before { inset: 3px; }
.photo-slot--thumb .avc-ph__text { display: none; }
.photo-slot--thumb .avc-ph__yarn { width: 58%; }

/* home hero + shop banner */
.hero-banner.avc-ph,
.shop-banner.avc-ph {
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px var(--shadow);
  border-radius: var(--radius);
}
.hero-banner.avc-ph { aspect-ratio: 4 / 3; max-height: 420px; height: auto; }
.shop-banner.avc-ph {
  flex-direction: row;
  height: auto;
  min-height: 150px;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}
.shop-banner.avc-ph .avc-ph__yarn { width: 84px; max-width: 84px; }
.shop-banner.avc-ph .avc-ph__text { align-items: flex-start; text-align: left; max-width: none; }
.shop-banner.avc-ph .avc-ph__label { font-size: 1.5rem; }
.hero-banner.avc-ph .avc-ph__yarn { width: 30%; max-width: 150px; }
.hero-banner.avc-ph .avc-ph__label { font-size: 1.5rem; }

/* hero tile sits inside .hero__visual .photo-slot-less frame */
.line-card .avc-ph__yarn { width: 26%; }

/* line cards / wide tiles */
.photo-slot--wide .avc-ph__yarn { width: 22%; }

@media (max-width: 720px) {
  .shop-banner.avc-ph { min-height: 110px; padding: 1rem; gap: 1rem; }
  .shop-banner.avc-ph .avc-ph__yarn { width: 56px; }
  .shop-banner.avc-ph .avc-ph__label { font-size: 1.15rem; }
}

/* Buy now (Stripe Payment Links) */
.product-card__buy { align-self: flex-start; margin-top: -0.35rem; }
.buy-note { font-size: 0.85rem; color: var(--warm-gray-light); margin-top: -0.25rem; }
.order-steps { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md, 12px); padding: 1.5rem; }
.order-steps h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.order-steps ol { padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.order-steps a { color: var(--sage-dark); font-weight: 600; }
