/* ============================================
   AETERNA — Art Urn E-Commerce
   Custom Design Tokens & Component Styles
   ============================================ */

/* --- Google Fonts: Instrument Serif --- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* --- Fontshare: Switzer --- */
@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Light Mode (default) */
  --color-bg: #FAFAF8;
  --color-surface: #F5F4F0;
  --color-surface-alt: #EDECE8;
  --color-text: #1A1A18;
  --color-text-muted: #8A8A86;
  --color-text-faint: #B5B5B0;
  --color-primary: #8B7355;
  --color-primary-hover: #6D5A43;
  --color-primary-light: rgba(139, 115, 85, 0.08);
  --color-border: #E5E3DD;
  --color-overlay: rgba(26, 26, 24, 0.6);

  /* Type Scale (Fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --text-hero: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1400px;
  --content-width: 1200px;
  --narrow-width: 800px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);

  /* Font families */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Switzer', system-ui, -apple-system, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #0E0E0C;
  --color-surface: #1A1918;
  --color-surface-alt: #222120;
  --color-text: #E8E6E2;
  --color-text-muted: #7A7A76;
  --color-text-faint: #5A5A56;
  --color-primary: #C4A87C;
  --color-primary-hover: #D4BC94;
  --color-primary-light: rgba(196, 168, 124, 0.1);
  --color-border: #2A2928;
  --color-overlay: rgba(14, 14, 12, 0.8);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.4s var(--ease-in-out), color 0.4s var(--ease-in-out);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover {
  color: var(--color-primary-hover);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-6), 4vw, var(--space-12));
}

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

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

/* ============================================
   Scroll Animations (CSS-native)
   ============================================ */
.fade-in {
  opacity: 1;
}

.reveal-up {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }

  .reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

@keyframes reveal-clip {
  to { clip-path: inset(0 0 0 0); }
}

/* Stagger delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background-color 0.4s var(--ease-in-out),
              backdrop-filter 0.4s var(--ease-in-out),
              box-shadow 0.3s var(--ease-in-out);
}

.nav--scrolled {
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav--scrolled {
  background: rgba(14, 14, 12, 0.9);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-6), 4vw, var(--space-12));
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  transition: color 0.4s var(--ease-in-out);
}

.nav__logo svg {
  width: 36px;
  height: 36px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.15em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease-in-out);
}

.nav__links a:hover {
  color: var(--color-text);
}

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

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-primary-light);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Nav */
.nav__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--color-text);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0E0E0C;
  color: #E8E6E2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Abstract gradient art background */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(139, 115, 85, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 60%, rgba(196, 168, 124, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(100, 80, 55, 0.08) 0%, transparent 60%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,12,0.3) 0%, rgba(14,14,12,0.1) 50%, rgba(14,14,12,0.8) 100%);
}

/* Floating abstract shapes in hero */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(60px);
  animation: float-shape 20s ease-in-out infinite;
}

.hero__shape--1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 350px;
  height: 350px;
  background: #C4A87C;
  bottom: 20%;
  right: 15%;
  animation-delay: -7s;
}

.hero__shape--3 {
  width: 250px;
  height: 250px;
  background: #D4BC94;
  top: 50%;
  left: 60%;
  animation-delay: -14s;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: var(--space-8);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C4A87C;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out) 0.4s forwards;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(232, 230, 226, 0.7);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out) 0.6s forwards;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out) 0.8s forwards;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive),
              transform var(--transition-interactive);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: #C4A87C;
  color: #0E0E0C;
}

.btn--primary:hover {
  background: #D4BC94;
  color: #0E0E0C;
}

.btn--outline {
  background: transparent;
  color: #E8E6E2;
  border: 1px solid rgba(232, 230, 226, 0.3);
}

.btn--outline:hover {
  border-color: #C4A87C;
  color: #C4A87C;
}

/* Light-theme button variants */
.btn--primary-light {
  background: var(--color-primary);
  color: #FAFAF8;
}

.btn--primary-light:hover {
  background: var(--color-primary-hover);
  color: #FAFAF8;
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline-light:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(232, 230, 226, 0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out) 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(196, 168, 124, 0.6), transparent);
  animation: scroll-line 2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
}

.section--dark {
  background: #0E0E0C;
  color: #E8E6E2;
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section__header {
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}

.section__header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   Philosophy Section
   ============================================ */
.philosophy {
  background: var(--color-bg);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.pillar {
  text-align: center;
  padding: var(--space-8);
}

.pillar__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.pillar__icon svg {
  width: 28px;
  height: 28px;
}

.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.pillar__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   Collections / Product Grid
   ============================================ */
.collections {
  background: var(--color-surface);
}

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.filter-tab {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: transparent;
  transition: all var(--transition-interactive);
}

.filter-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.filter-tab.active {
  background: var(--color-primary);
  color: #FAFAF8;
  border-color: var(--color-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.product-card__image {
  aspect-ratio: 4 / 5;
  background: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__overlay span {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FAFAF8;
  border: 1px solid rgba(255,255,255,0.4);
  padding: var(--space-2) var(--space-6);
}

.product-card__info {
  padding: var(--space-4) var(--space-4) var(--space-6);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.product-card__material {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.product-card__price {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

/* Product card hidden state for filter */
.product-card.hidden {
  display: none;
}

/* ============================================
   CSS Art Shapes for Products
   ============================================ */
.art-shape {
  width: 55%;
  aspect-ratio: 1;
  position: relative;
}

/* 1. Solace — White ceramic, minimalist sphere */
.art-shape--solace {
  border-radius: 50%;
  background: linear-gradient(145deg, #F0EDE8 0%, #D8D4CC 50%, #C0BAB0 100%);
  box-shadow:
    inset -15px -15px 30px rgba(0,0,0,0.08),
    inset 10px 10px 25px rgba(255,255,255,0.9),
    0 20px 40px rgba(0,0,0,0.06);
}

/* 2. Ember — Hand-blown glass, amber gradient */
.art-shape--ember {
  border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
  background: linear-gradient(160deg, #F0C878 0%, #D4943C 40%, #A06020 70%, #784818 100%);
  box-shadow:
    inset 8px 8px 20px rgba(255,220,150,0.5),
    inset -5px -5px 15px rgba(0,0,0,0.15),
    0 15px 35px rgba(160,96,32,0.2);
  opacity: 0.9;
}
.art-shape--ember::after {
  content: '';
  position: absolute;
  width: 30%;
  height: 40%;
  top: 15%;
  left: 20%;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  filter: blur(8px);
}

/* 3. Meridian — Bronze sculptural form */
.art-shape--meridian {
  border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
  background: linear-gradient(135deg, #B89968 0%, #8B7355 40%, #5C4A35 100%);
  box-shadow:
    inset 5px 5px 15px rgba(184,153,104,0.4),
    inset -8px -8px 20px rgba(0,0,0,0.2),
    0 15px 30px rgba(92,74,53,0.25);
}
.art-shape--meridian::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  border: 1px solid rgba(184,153,104,0.3);
}

/* 4. Vesper — Carved walnut, organic curves */
.art-shape--vesper {
  border-radius: 50% 50% 45% 55% / 60% 60% 40% 40%;
  background: linear-gradient(170deg, #8B6E4E 0%, #6B5038 50%, #4A3525 100%);
  box-shadow:
    inset 3px 3px 10px rgba(139,110,78,0.4),
    inset -5px -5px 15px rgba(0,0,0,0.2),
    0 12px 28px rgba(74,53,37,0.2);
}
.art-shape--vesper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    175deg,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 5px
  );
}

/* 5. Lumina — Crystal glass with gold leaf */
.art-shape--lumina {
  border-radius: 15%;
  background: linear-gradient(145deg,
    rgba(255,255,255,0.9) 0%,
    rgba(230,225,215,0.7) 30%,
    rgba(196,168,124,0.3) 60%,
    rgba(255,255,255,0.8) 100%);
  box-shadow:
    inset 0 0 30px rgba(196,168,124,0.2),
    0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(196,168,124,0.3);
  transform: rotate(12deg);
}
.art-shape--lumina::before {
  content: '';
  position: absolute;
  inset: 20%;
  background: linear-gradient(135deg, rgba(196,168,124,0.4), transparent 60%);
  border-radius: 10%;
  transform: rotate(-5deg);
}
.art-shape--lumina::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 60%;
  top: 20%;
  left: 45%;
  background: linear-gradient(to bottom, transparent, rgba(196,168,124,0.5), transparent);
}

/* 6. Terra — Earthen ceramic, wabi-sabi */
.art-shape--terra {
  border-radius: 48% 52% 55% 45% / 50% 48% 52% 50%;
  background: linear-gradient(160deg, #C4B098 0%, #A8937A 40%, #8A7A68 100%);
  box-shadow:
    inset 4px 4px 12px rgba(196,176,152,0.3),
    inset -6px -6px 18px rgba(0,0,0,0.15),
    0 10px 25px rgba(138,122,104,0.15);
}
.art-shape--terra::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 3px;
  top: 55%;
  left: 15%;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  transform: rotate(-5deg);
}

/* 7. Companion (Pet) — Small ceramic, river stone */
.art-shape--companion {
  width: 50%;
  border-radius: 52% 48% 50% 50% / 40% 45% 55% 60%;
  background: linear-gradient(150deg, #D8D2C8 0%, #BEB5A8 50%, #A09888 100%);
  box-shadow:
    inset 8px 8px 20px rgba(255,255,255,0.4),
    inset -6px -6px 16px rgba(0,0,0,0.08),
    0 12px 24px rgba(0,0,0,0.06);
}

/* 8. Whisper (Keepsake) — Miniature glass pendant */
.art-shape--whisper {
  width: 35%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(145deg,
    rgba(220,215,205,0.9) 0%,
    rgba(196,168,124,0.4) 50%,
    rgba(180,175,165,0.8) 100%);
  box-shadow:
    inset 4px 4px 10px rgba(255,255,255,0.6),
    inset -3px -3px 8px rgba(0,0,0,0.1),
    0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(196,168,124,0.2);
  position: relative;
}
.art-shape--whisper::before {
  content: '';
  position: absolute;
  width: 30%;
  height: 2px;
  top: -15%;
  left: 35%;
  background: var(--color-primary);
  border-radius: 1px;
}
.art-shape--whisper::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 15%;
  top: -15%;
  left: 50%;
  background: var(--color-primary);
}

/* ============================================
   Materials Section
   ============================================ */
.materials {
  background: var(--color-bg);
  overflow: hidden;
}

.materials__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
  scrollbar-width: none;
}

.materials__track::-webkit-scrollbar {
  display: none;
}

.material-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface);
}

.material-card__visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* Material textures */
.material-texture--ceramic {
  background: linear-gradient(145deg, #F0EDE8, #E0DCD4, #D0CBC2);
}
.material-texture--ceramic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.4), transparent 60%);
}

.material-texture--glass {
  background: linear-gradient(135deg, #E8E4DC, rgba(196,168,124,0.2), #F0ECE4, rgba(196,168,124,0.15));
  background-size: 200% 200%;
}
.material-texture--glass::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 120%;
  top: -10%;
  left: 25%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(25deg);
}

.material-texture--metal {
  background: linear-gradient(145deg, #B89968, #8B7355, #6D5A43, #8B7355);
}
.material-texture--metal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
}

.material-texture--wood {
  background: linear-gradient(170deg, #8B6E4E, #6B5038);
}
.material-texture--wood::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    175deg,
    transparent 0px,
    transparent 8px,
    rgba(0,0,0,0.03) 8px,
    rgba(0,0,0,0.03) 10px
  );
}

.material-card__content {
  padding: var(--space-6);
}

.material-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.material-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   Story Section
   ============================================ */
.story {
  background: var(--color-surface);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}

.story__text {
  max-width: 540px;
}

.story__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.story__quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

.story__visual {
  aspect-ratio: 3/4;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-surface-alt), var(--color-border));
}

/* Abstract art composition for story */
.story__visual::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  background: linear-gradient(135deg, var(--color-primary), rgba(139,115,85,0.3));
  opacity: 0.6;
}

.story__visual::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  bottom: 15%;
  right: 15%;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0.3;
}

/* ============================================
   Process Section
   ============================================ */
.process {
  background: var(--color-bg);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

/* Connecting line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.666% + 24px);
  right: calc(16.666% + 24px);
  height: 1px;
  background: var(--color-border);
}

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

.process-step__number {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.process-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0E0E0C;
  color: #E8E6E2;
  padding: clamp(var(--space-16), 6vw, var(--space-24)) 0 var(--space-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: #E8E6E2;
}

.footer__logo svg {
  width: 32px;
  height: 32px;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.15em;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: #7A7A76;
  line-height: 1.7;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A7A76;
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(232, 230, 226, 0.7);
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: #C4A87C;
}

/* Newsletter */
.footer__newsletter-text {
  font-size: var(--text-sm);
  color: #7A7A76;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: #E8E6E2;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--transition-interactive);
}

.newsletter-form input::placeholder {
  color: #5A5A56;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #C4A87C;
}

.newsletter-form button {
  padding: var(--space-3) var(--space-6);
  background: #C4A87C;
  color: #0E0E0C;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background var(--transition-interactive);
}

.newsletter-form button:hover {
  background: #D4BC94;
}

/* Social icons */
.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(232, 230, 226, 0.6);
  transition: all var(--transition-interactive);
}

.footer__social a:hover {
  border-color: #C4A87C;
  color: #C4A87C;
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

/* Footer bottom */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: #5A5A56;
}

.footer__bottom a {
  color: #7A7A76;
  transition: color var(--transition-interactive);
}

.footer__bottom a:hover {
  color: #C4A87C;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .story__visual {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

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

  .pillar {
    padding: var(--space-6) var(--space-4);
  }

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

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

  .process__steps::before {
    display: none;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .material-card {
    flex: 0 0 260px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .filter-tabs {
    gap: var(--space-2);
  }

  .filter-tab {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
}

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

  .product-card__info {
    padding: var(--space-3);
  }

  .product-card__name {
    font-size: var(--text-base);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* Hero-area nav override: always light text when over the dark hero */
.nav--hero .nav__logo {
  color: #E8E6E2;
}

.nav--hero .nav__links a {
  color: rgba(232, 230, 226, 0.6);
}

.nav--hero .nav__links a:hover {
  color: #E8E6E2;
}

.nav--hero .theme-toggle {
  color: rgba(232, 230, 226, 0.6);
}

.nav--hero .theme-toggle:hover {
  color: #E8E6E2;
  background: rgba(232, 230, 226, 0.1);
}

.nav--hero .nav__hamburger {
  color: #E8E6E2;
}

/* ============================================
   New Art Shapes for Additional Products
   ============================================ */

/* 9. Soulful — Pet, hand-blown glass orb */
.art-shape--soulful {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(120,200,220,0.6) 0%, rgba(60,150,170,0.8) 40%, rgba(30,100,120,0.9) 70%, rgba(15,70,90,1) 100%);
  box-shadow:
    inset 8px 8px 20px rgba(150,230,255,0.3),
    inset -5px -5px 15px rgba(0,0,0,0.2),
    0 15px 35px rgba(30,100,120,0.25);
}
.art-shape--soulful::after {
  content: '';
  position: absolute;
  width: 25%;
  height: 30%;
  top: 18%;
  left: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  filter: blur(6px);
}

/* 10. Pebble — Tiny keepsake, smooth stone shape */
.art-shape--pebble {
  width: 40%;
  border-radius: 52% 48% 55% 45% / 45% 50% 50% 55%;
  background: linear-gradient(150deg, #D4C8B8 0%, #BFB3A0 40%, #A89880 100%);
  box-shadow:
    inset 6px 6px 18px rgba(255,255,255,0.35),
    inset -5px -5px 14px rgba(0,0,0,0.1),
    0 10px 20px rgba(0,0,0,0.06);
}

/* 11. Ember Glow — Memorial candle */
.art-shape--ember-glow {
  width: 35%;
  aspect-ratio: 2/3;
  border-radius: 8% 8% 4% 4%;
  background: linear-gradient(180deg, #F5E6D0 0%, #E8D4B8 60%, #D4BC94 100%);
  box-shadow:
    inset 4px 4px 12px rgba(255,255,255,0.3),
    inset -3px -3px 8px rgba(0,0,0,0.06),
    0 10px 24px rgba(196,168,124,0.15);
  position: relative;
}
.art-shape--ember-glow::before {
  content: '';
  position: absolute;
  width: 20%;
  height: 15%;
  top: -12%;
  left: 40%;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse, #FFD080 0%, #FF9020 50%, transparent 100%);
  filter: blur(3px);
  animation: flicker 2s ease-in-out infinite alternate;
}
.art-shape--ember-glow::after {
  content: '';
  position: absolute;
  width: 4%;
  height: 12%;
  top: -2%;
  left: 48%;
  background: #5A4A38;
  border-radius: 1px;
}
@keyframes flicker {
  0% { opacity: 0.8; transform: scale(1) translateY(0); }
  50% { opacity: 1; transform: scale(1.1) translateY(-2px); }
  100% { opacity: 0.7; transform: scale(0.95) translateY(1px); }
}

/* 12. Eternal Thread — Sterling silver pendant */
.art-shape--eternal-thread {
  width: 30%;
  aspect-ratio: 2/3;
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  background: linear-gradient(145deg, #E8E6E2 0%, #C0BEBA 30%, #A0A0A0 60%, #D0CECC 100%);
  box-shadow:
    inset 5px 5px 12px rgba(255,255,255,0.6),
    inset -4px -4px 10px rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.1);
  position: relative;
}
.art-shape--eternal-thread::before {
  content: '';
  position: absolute;
  width: 20%;
  height: 2px;
  top: -12%;
  left: 40%;
  background: #A0A0A0;
  border-radius: 1px;
}
.art-shape--eternal-thread::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 12%;
  top: -12%;
  left: 50%;
  background: #A0A0A0;
}

/* ============================================
   Cart Drawer
   ============================================ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.active {
  pointer-events: all;
  visibility: visible;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.cart-drawer.active .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 90vw);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
}

.cart-drawer.active .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.cart-drawer__close:hover {
  color: var(--color-text);
  background: var(--color-primary-light);
}

.cart-drawer__close svg {
  width: 20px;
  height: 20px;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.cart-drawer__empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.cart-item__image {
  width: 64px;
  height: 64px;
  background: var(--color-surface-alt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item__image .art-shape {
  width: 60% !important;
  aspect-ratio: 1;
}

.cart-item__info h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.cart-item__material {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

.cart-item__qty span {
  font-size: var(--text-sm);
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.cart-item__qty-btn:hover {
  color: var(--color-text);
}

.cart-item__price {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.cart-item__remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  transition: color var(--transition-interactive);
}

.cart-item__remove:hover {
  color: var(--color-text);
}

.cart-item__remove svg {
  width: 14px;
  height: 14px;
}

.cart-drawer__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.cart-drawer__total span:last-child {
  color: var(--color-primary);
}

.cart-drawer__shipping {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.cart-drawer__checkout {
  padding: var(--space-4);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumb {
  padding: calc(80px + var(--space-4)) 0 var(--space-4);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.breadcrumb__list a {
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.breadcrumb__list a:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  opacity: 0.4;
}

.breadcrumb__current {
  color: var(--color-text);
}

/* ============================================
   Cart Icon in Nav
   ============================================ */
.cart-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.cart-trigger:hover {
  color: var(--color-text);
  background: var(--color-primary-light);
}

.cart-trigger svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge[style*="display: none"] { display: none !important; }
.cart-badge:not([style*="display: none"]) { display: flex; }

/* Hero nav overrides for cart */
.nav--hero .cart-trigger {
  color: rgba(232, 230, 226, 0.6);
}

.nav--hero .cart-trigger:hover {
  color: #E8E6E2;
  background: rgba(232, 230, 226, 0.1);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s, background var(--transition-interactive);
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background: var(--color-primary);
  color: #FAFAF8;
  border-color: var(--color-primary);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Page Transition
   ============================================ */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.3s;
}

/* Ultrawide */
@media (min-width: 2000px) {
  :root {
    font-size: 18px;
  }
}
