/* ═══════════════════════════════════════════════════════════════
   Velum Mystica — Design System
   Light luxury theme · Cormorant Garamond + Montserrat
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f5f2ee;
  --surface-3: #ede9e3;
  --text: #1a1709;
  --text-muted: #6b5f55;
  --text-dim: #a09484;
  --accent: #b8922e;
  --accent-dark: #8a6f3e;
  --accent-light: #d4a84b;
  --border: #e0dbd3;
  --border-light: #ede9e3;
  --success: #2d7a32;
  --error: #c62828;
  --nav-height: 72px;
  --container-max: 1280px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --transition: 300ms var(--ease-out);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
.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;
}

/* ── Typography ─────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.body-text {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.body-text:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 6rem 0;
}
.section-header {
  margin-bottom: 3.5rem;
}
.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.875rem 2.25rem;
  transition: var(--transition);
  transition-property: background, color, border-color, opacity, transform;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 1.125rem 2.75rem; font-size: 0.75rem; }
.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.625rem; }
.btn-full { width: 100%; }
.btn-danger {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
}
.btn-danger:hover { background: var(--error); color: #fff; }

/* ── Announcement bar ───────────────────────────────────────── */
.announcement-bar {
  position: relative;
  z-index: 1001;
  background: var(--text);
  color: #faf9f7;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.announcement-icon {
  display: flex;
  align-items: center;
  color: var(--accent-light);
}

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  text-decoration: none;
}
.logo-main {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
}
.logo-divider {
  color: var(--accent);
  font-size: 0.875rem;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.875rem; right: 0.875rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
}
.cart-icon { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: 2px; right: 4px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.5625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  transition: var(--transition);
}
.cart-badge[data-count="0"] { opacity: 0; transform: scale(0.5); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Pages (routing) ────────────────────────────────────────── */
.page {
  display: none;
  min-height: 100vh;
  animation: pageFadeIn 400ms var(--ease-out) both;
}
.page.active { display: block; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero — full image, no overlay, no text on it ───────────── */
.hero {
  position: relative;
  width: 100%;
  /* Note: no negative margin-top needed — nav is sticky (in flow) */
  height: 72vh;
  max-height: 820px;
  min-height: 360px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ── Hero intro — brand statement below the image ───────────── */
.hero-intro {
  background: var(--bg);
  padding: 5rem 2rem 5.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-intro-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-intro-eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.hero-intro-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  margin-bottom: 1.5rem;
}
.hero-intro-main {
  font-family: var(--font-body);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  line-height: 1;
  color: var(--text);
}
.hero-intro-sub {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3.25rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  line-height: 1;
}
.hero-intro-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

/* ── Page Hero (internal pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}
.page-hero--short { min-height: 220px; }
.page-hero--tall {
  min-height: 480px;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
}
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.page-hero-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
}

/* ── Split Layout ───────────────────────────────────────────── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-layout--reverse { direction: rtl; }
.split-layout--reverse > * { direction: ltr; }
.split-text { display: flex; flex-direction: column; }
.split-text .btn { align-self: flex-start; margin-top: 0.5rem; }
.split-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms var(--ease-out);
}
.split-image:hover img { transform: scale(1.03); }

/* ── Section rule ───────────────────────────────────────────── */
.section-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

/* ── Featured cards (home page only) ───────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 0;
}
.featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.featured-card-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 1.75rem;
}
.featured-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms var(--ease-out);
}
.featured-card:hover .featured-card-img { transform: scale(1.04); }
.featured-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0 0.25rem;
}
.featured-card-num {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.375rem;
}
.featured-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: var(--text);
  transition: color var(--transition);
}
.featured-card:hover .featured-card-name { color: var(--accent-dark); }
.featured-card-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.featured-card-price {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.featured-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.75rem;
  transition: gap var(--transition);
}
.featured-card:hover .featured-card-cta { gap: 0.75rem; }

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 400px;
    margin: 0 auto;
  }
  .featured-card-img-wrap { aspect-ratio: 4/3; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .featured-grid { gap: 1.5rem; }
}

/* ── Product Grid ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.product-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.product-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: var(--surface);
  cursor: pointer;
}
.product-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--surface-2);
}
.product-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms var(--ease-out);
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(250,249,247,0.97) 0%, rgba(250,249,247,0.0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: var(--transition);
}
.product-card-body {
  padding: 1.5rem;
}
.product-card-tagline {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.product-card-price {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.product-card:hover .product-card-cta {
  opacity: 1;
  transform: translateY(0);
}
.product-card-cta svg { width: 14px; height: 14px; }

/* ── Product Detail ─────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height));
}
.product-detail-media {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
  background: var(--surface);
}
.product-detail-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-detail-content {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.product-detail-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
}
.product-detail-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  font-style: italic;
}
.product-detail-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}
.product-detail-divider {
  height: 1px;
  background: var(--border);
}
.notes-section { }
.notes-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.notes-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.notes-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.notes-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 48px;
}
.notes-values {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.size-selector { }
.size-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.size-options {
  display: flex;
  gap: 0.75rem;
}
.size-btn {
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: var(--transition);
  cursor: pointer;
}
.size-btn:hover { border-color: var(--text); color: var(--text); }
.size-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 168, 76, 0.08);
}
.size-btn .size-price {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.2em;
}
.size-btn.selected .size-price { color: var(--accent-dark); }
.add-to-cart-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quantity-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-light);
  width: fit-content;
}
.qty-btn {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  font-weight: 300;
  transition: color var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}
.qty-btn:hover { color: var(--text); }
.qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 0 0.5rem;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  line-height: 44px;
}
.product-story-section { }
.product-story-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}
.product-story-text {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}
.product-character {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.character-tag {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.35rem 0.875rem;
}

/* ── Craft Section ──────────────────────────────────────────── */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.craft-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--border);
}
.craft-item:last-child { border-right: none; }
.craft-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.craft-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.craft-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Values Grid ────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.value-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}
.value-item:last-child { border-right: none; }
.value-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.value-text {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Filters ────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
.filter-btn {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1.125rem;
  border: 1px solid transparent;
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-light); }
.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}
.product-card.hidden { display: none; }

/* ── Cart ───────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item:first-child { border-top: 1px solid var(--border); }
.cart-item-img {
  width: 100px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface);
}
.cart-item-info { display: flex; flex-direction: column; gap: 0.5rem; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
}
.cart-item-meta {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.cart-item-price {
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  margin-top: 0.5rem;
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
.cart-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cart-remove:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}
.cart-empty {
  text-align: center;
  padding: 5rem 0;
  grid-column: 1 / -1;
}
.cart-empty-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.cart-summary {
  background: var(--surface);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.cart-summary-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.summary-row.total {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  padding-top: 1rem;
}
.summary-row.total .summary-value { color: var(--accent); }
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.cart-note {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
  margin-top: 1rem;
}

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-form {
  max-width: 560px;
  margin: 3rem auto;
  padding: 0 0 4rem;
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.checkout-order-summary {
  background: var(--surface);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.checkout-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.checkout-order-item:last-child { border-bottom: none; }
.checkout-order-name { font-weight: 400; flex: 1; }
.checkout-order-meta { color: var(--text-muted); font-size: 0.75rem; }
.checkout-order-price { color: var(--accent); font-weight: 500; white-space: nowrap; }
.checkout-free-shipping { color: var(--success); }
.checkout-shipping-row { border-bottom: none; padding-bottom: 0; }
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.checkout-total-amount { color: var(--accent); }
.stripe-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 1rem;
  text-align: center;
}
.stripe-note svg { width: 14px; height: 14px; color: var(--text-dim); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 300;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5f55' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-status {
  font-size: 0.8125rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* ── Contact ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 0 6rem;
  align-items: start;
}
.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail-item { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-detail-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-detail-value {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact-detail-value:hover { color: var(--accent); }
.contact-form-wrap { padding-top: 0.5rem; }

/* ── Success Page ───────────────────────────────────────────── */
.success-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 3rem 0;
}
.success-card {
  text-align: center;
  max-width: 480px;
}
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 2rem;
}
.success-icon svg { width: 100%; height: 100%; }
.success-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
}
.success-text {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ── Admin ──────────────────────────────────────────────────── */
.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}
.admin-login .section-title { margin-bottom: 2rem; }
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.admin-tab {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.875rem 1.5rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-panel { padding: 2rem 0 4rem; }
.orders-table-wrap { overflow-x: auto; }
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.orders-table th {
  text-align: left;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.orders-table tr:hover td { background: var(--surface); }
.status-badge {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.625rem;
}
.status-badge--pending   { color: #f59e0b;          border: 1px solid #f59e0b; }
.status-badge--paid      { color: var(--success);   border: 1px solid var(--success); }
.status-badge--completed { color: var(--success);   border: 1px solid var(--success); }
.status-badge--shipped   { color: var(--accent);    border: 1px solid var(--accent); }

/* Ship form (inline in orders table) */
.ship-row td { background: var(--surface-2); padding: 1rem 1.5rem; }
.ship-row.hidden { display: none; }
.ship-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ship-form select,
.ship-form input[type="text"] {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text);
  font-family: var(--font-body);
}
.ship-form select { min-width: 100px; }
.ship-form input[type="text"] { flex: 1; min-width: 180px; }
.ship-form-status { font-size: 0.75rem; }
.orders-table .btn-ship {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: var(--transition);
}
.orders-table .btn-ship:hover { border-color: var(--accent); color: var(--accent); }
.order-tracking { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.25rem; font-family: monospace; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 360px;
  transform: translateY(calc(100% + 3rem));
  opacity: 0;
  transition: transform 350ms var(--ease-out), opacity 350ms var(--ease-out);
  pointer-events: none;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-message {
  display: block;
  margin-bottom: 0.5rem;
}
.toast-cta {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.toast-cta:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}
.toast.toast--success { border-left-color: var(--success); }
.toast.toast--error { border-left-color: var(--error); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 4rem 0 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  text-decoration: none;
  width: fit-content;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.5;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col-title {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--text-dim);
  gap: 1rem;
}
.footer-stripe a { color: inherit; }
.footer-stripe a:hover { color: var(--text-muted); }

/* ── Not found page ─────────────────────────────────────────── */
.not-found-container {
  padding: 6rem 0;
  text-align: center;
}
.not-found-cta { margin-top: 2rem; }

/* ── Related products ───────────────────────────────────────── */
.related-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.related-grid {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 0.75rem;
  background: var(--surface);
  flex: 1;
  transition: background var(--transition);
}
.related-card:hover { background: var(--surface-2); }
.related-card-img {
  width: 50px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.related-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.related-card-price {
  font-size: 0.6875rem;
  color: var(--accent);
}

/* ── Cart empty state ───────────────────────────────────────── */
.cart-empty-body { margin-bottom: 2rem; }

/* ── Summary value variants ─────────────────────────────────── */
.summary-value--free { color: var(--success); }

/* ── Placeholder images ─────────────────────────────────────── */
.img-placeholder {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Loading state ──────────────────────────────────────────── */
.loading-dots {
  display: inline-flex;
  gap: 0.3em;
  align-items: center;
}
.loading-dots span {
  display: block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: dot-bounce 1.2s ease-in-out infinite both;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid .value-item:nth-child(2),
  .values-grid .value-item:nth-child(4) { border-right: none; }
  .craft-item:nth-child(2) { border-right: 1px solid var(--border); }
  .craft-item:nth-child(3) { border-right: none; }
  .values-grid { border-right: none; }
  .values-grid .value-item { border-bottom: 1px solid var(--border); border-right: none; }
  .values-grid .value-item:nth-child(1),
  .values-grid .value-item:nth-child(2) { border-right: 1px solid var(--border); }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-media { position: relative; height: 60vw; min-height: 400px; }
  .product-detail-content { padding: 2.5rem 2rem; }
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .split-layout--reverse { direction: ltr; }
  .split-image { aspect-ratio: 16/9; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 350ms var(--ease-out);
    z-index: 1000;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link {
    padding: 0.875rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-link::after { display: none; }
  .nav-cart-link { margin-top: 1rem; }
  .hero { height: 90svh; }
  .product-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); }
  .product-grid .product-card { border-bottom: 1px solid var(--border); }
  .product-grid--large { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-item { border-right: none; border-bottom: 1px solid var(--border); }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none !important; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .toast { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-intro-main { letter-spacing: 0.2em; }
  .size-options { flex-wrap: wrap; }
  .filters { flex-wrap: wrap; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
