/* =============================================================
   COSE VINTAGE - Design System
   "La Brocante" - Mercatino Parigino Romantico
   ============================================================= */

/* -------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES - PALETTE & TOKENS
   ------------------------------------------------------------- */
:root {
  /* Primary: Verde Salvia - Il colore delle tende di lino */
  --color-sage: #8B9A7A;
  --color-sage-light: #A8B89A;
  --color-sage-dark: #6B7A5A;
  --color-sage-muted: #C5CEB8;

  /* Background: Beige/Crema - Carta invecchiata */
  --color-cream: #F7F3EB;
  --color-cream-warm: #F2EBD9;
  --color-cream-dark: #E8E0D0;
  --color-parchment: #EDE5D8;

  /* Accent: Terracotta Rosa - Calore mediterraneo */
  --color-terracotta: #C4846C;
  --color-terracotta-light: #D9A08A;
  --color-terracotta-dark: #A66B54;

  /* Neutrals: Toni caldi, mai freddi */
  --color-ink: #3D352E;
  --color-ink-light: #5C534A;
  --color-ink-faded: #7A6F64;
  --color-sepia: #8B7355;

  /* Accenti metallici - Oro antico */
  --color-gold: #B8976D;
  --color-gold-light: #D4BC9A;
  --color-gold-dark: #8B7355;

  /* Functional */
  --color-success: #7A9A6B;
  --color-warning: #C4A46C;
  --color-error: #B85C4C;

  /* -------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------- */
  /* Display: Playfair Display - Romantico, editoriale francese */
  --font-display: 'Playfair Display', 'Times New Roman', serif;

  /* Body: Lora - Leggibile ma con carattere, non clinico */
  --font-body: 'Lora', 'Georgia', serif;

  /* Accent: Cormorant Garamond - Per quote e dettagli speciali */
  --font-accent: 'Cormorant Garamond', 'Garamond', serif;

  /* UI: Source Sans 3 - Per prezzi, bottoni, elementi UI */
  --font-ui: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  /* Scale - Golden Ratio inspired */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;

  /* -------------------------------------------------------------
     SPACING SYSTEM - 8px base, con variazioni organiche
     ------------------------------------------------------------- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* -------------------------------------------------------------
     EFFECTS & DECORATIONS
     ------------------------------------------------------------- */
  /* Shadows - Morbide, calde, come luce naturale */
  --shadow-sm: 0 1px 2px rgba(61, 53, 46, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(61, 53, 46, 0.08),
               0 2px 4px -1px rgba(61, 53, 46, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(61, 53, 46, 0.1),
               0 4px 6px -2px rgba(61, 53, 46, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(61, 53, 46, 0.12),
               0 10px 10px -5px rgba(61, 53, 46, 0.04);
  --shadow-vintage: 0 4px 20px rgba(139, 115, 85, 0.15);
  --shadow-card: 0 2px 8px rgba(61, 53, 46, 0.08),
                 0 8px 24px rgba(139, 115, 85, 0.12);

  /* Border radius - Leggermente arrotondati, mai troppo */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-gentle: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders */
  --border-thin: 1px solid var(--color-cream-dark);
  --border-decorative: 1px solid var(--color-gold-light);

  /* -------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;

  /* Grid */
  --grid-gap: var(--space-6);
  --grid-gap-lg: var(--space-8);
}

/* -------------------------------------------------------------
   2. RESET & BASE STYLES
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
  background-color: var(--color-cream);
  min-height: 100vh;
}

/* Texture di carta sottile su body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY CLASSES
   ------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.font-accent {
  font-family: var(--font-accent);
}

.font-ui {
  font-family: var(--font-ui);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-ink);
  letter-spacing: var(--tracking-tight);
}

h1, .h1 {
  font-size: var(--text-5xl);
  font-weight: 400;
}

h2, .h2 {
  font-size: var(--text-4xl);
}

h3, .h3 {
  font-size: var(--text-3xl);
}

h4, .h4 {
  font-size: var(--text-2xl);
}

h5, .h5 {
  font-size: var(--text-xl);
}

h6, .h6 {
  font-size: var(--text-lg);
}

/* Stile titolo decorativo - con linee laterali */
.title-decorated {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.title-decorated::before,
.title-decorated::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--direction, right),
    transparent,
    var(--color-gold-light) 20%,
    var(--color-gold) 50%,
    var(--color-gold-light) 80%,
    transparent
  );
}

.title-decorated::after {
  --direction: left;
}

/* Quote style */
.quote {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-ink-light);
  line-height: var(--leading-relaxed);
  position: relative;
  padding-left: var(--space-8);
}

.quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: var(--text-6xl);
  color: var(--color-sage-muted);
  font-family: var(--font-display);
  line-height: 1;
}

/* Link styles */
a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-terracotta-dark);
}

/* Underline elegante */
.link-elegant {
  position: relative;
  display: inline-block;
}

.link-elegant::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.link-elegant:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Small caps per dettagli */
.small-caps {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ink-faded);
}

/* -------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary - Verde salvia */
.btn-primary {
  background: var(--color-sage);
  color: var(--color-cream);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-sage-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary - Terracotta outline */
.btn-secondary {
  background: transparent;
  color: var(--color-terracotta);
  border: 1px solid var(--color-terracotta);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-terracotta);
  color: var(--color-cream);
}

/* Ghost - Solo testo */
.btn-ghost {
  background: transparent;
  color: var(--color-ink-light);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--color-ink);
  background: var(--color-cream-dark);
}

/* Gold - Per CTA speciali */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-cream);
  box-shadow: var(--shadow-vintage);
}

.btn-gold:hover:not(:disabled) {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Icon button */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------
   5. PRODUCT CARD - Il cuore dell'e-commerce
   ------------------------------------------------------------- */
.product-card {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-gentle);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

/* Immagine prodotto */
.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-parchment);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

/* Overlay su hover */
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(61, 53, 46, 0.6) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

/* Quick actions */
.product-card__actions {
  display: flex;
  gap: var(--space-2);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__actions {
  transform: translateY(0);
}

/* Badge angolo */
.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

/* Wishlist button */
.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
  transform: scale(1);
}

.product-card__wishlist:hover {
  background: var(--color-terracotta);
  color: var(--color-cream);
}

.product-card__wishlist svg {
  width: 18px;
  height: 18px;
}

/* Info prodotto */
.product-card__info {
  padding: var(--space-4);
}

.product-card__category {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-1);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.product-card__title a {
  color: inherit;
}

.product-card__title a:hover {
  color: var(--color-terracotta);
}

/* Era/Decade */
.product-card__era {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-ink-faded);
  margin-bottom: var(--space-2);
}

/* Prezzo */
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-card__price-current {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-ink);
}

.product-card__price-original {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-ink-faded);
  text-decoration: line-through;
}

/* Condition indicator */
.product-card__condition {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-ink-faded);
}

.product-card__condition-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-success);
}

.product-card__condition-dot--good {
  background: var(--color-success);
}

.product-card__condition-dot--fair {
  background: var(--color-warning);
}

/* -------------------------------------------------------------
   6. BADGES
   ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge-new {
  background: var(--color-sage);
  color: var(--color-cream);
}

.badge-sale {
  background: var(--color-terracotta);
  color: var(--color-cream);
}

.badge-sold {
  background: var(--color-ink-faded);
  color: var(--color-cream);
}

.badge-rare {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-cream);
}

/* Badge condizione */
.badge-condition {
  background: var(--color-cream-warm);
  color: var(--color-ink-light);
  border: 1px solid var(--color-cream-dark);
}

.badge-condition--excellent {
  background: rgba(122, 154, 107, 0.15);
  color: var(--color-sage-dark);
  border-color: var(--color-sage-muted);
}

/* Decade badge */
.badge-decade {
  background: transparent;
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold-light);
  font-family: var(--font-accent);
  font-style: italic;
  letter-spacing: var(--tracking-normal);
  text-transform: none;
}

/* -------------------------------------------------------------
   7. FORM ELEMENTS
   ------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-light);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(139, 154, 122, 0.15);
}

.form-input::placeholder {
  color: var(--color-ink-faded);
  font-style: italic;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Input con icona */
.form-input-wrapper {
  position: relative;
}

.form-input-wrapper .form-input {
  padding-left: var(--space-10);
}

.form-input-wrapper svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-ink-faded);
}

/* Checkbox custom */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.form-checkbox input:checked {
  background: var(--color-sage);
  border-color: var(--color-sage);
}

.form-checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox span {
  font-size: var(--text-sm);
  color: var(--color-ink-light);
  line-height: var(--leading-normal);
}

/* Newsletter input special */
.newsletter-form {
  display: flex;
  gap: var(--space-2);
  max-width: 400px;
}

.newsletter-form .form-input {
  flex: 1;
  border-color: var(--color-gold-light);
}

.newsletter-form .form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 109, 0.15);
}

/* -------------------------------------------------------------
   8. LAYOUT COMPONENTS
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-lg {
  max-width: var(--container-lg);
}

/* Grid prodotti */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap-lg);
  }
}

/* Section spacing */
.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Divider decorativo */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-cream-dark);
  margin: var(--space-8) 0;
}

.divider-decorative {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-12) 0;
}

.divider-decorative::before,
.divider-decorative::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to var(--direction, right),
    transparent,
    var(--color-gold-light)
  );
}

.divider-decorative::after {
  --direction: left;
}

.divider-decorative svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
}

/* -------------------------------------------------------------
   9. SPECIAL EFFECTS
   ------------------------------------------------------------- */
/* Texture carta vintage overlay */
.texture-paper {
  position: relative;
}

.texture-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Bordo foto vintage */
.frame-vintage {
  border: 8px solid var(--color-cream-warm);
  box-shadow:
    inset 0 0 0 1px var(--color-cream-dark),
    var(--shadow-vintage);
}

/* Effetto sepia su hover */
.sepia-hover {
  transition: filter var(--transition-slow);
}

.sepia-hover:hover {
  filter: sepia(20%);
}

/* Etichetta scritta a mano */
.tag-handwritten {
  font-family: 'Caveat', cursive, var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-sepia);
  transform: rotate(-2deg);
}

/* Decorazione angolo */
.corner-decoration {
  position: relative;
}

.corner-decoration::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--color-gold-light);
  border-left: 2px solid var(--color-gold-light);
}

.corner-decoration::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--color-gold-light);
  border-right: 2px solid var(--color-gold-light);
}

/* Scroll reveal animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* -------------------------------------------------------------
   10. UTILITIES
   ------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sage { color: var(--color-sage); }
.text-terracotta { color: var(--color-terracotta); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-ink-faded); }

.bg-cream { background-color: var(--color-cream); }
.bg-parchment { background-color: var(--color-parchment); }
.bg-sage { background-color: var(--color-sage); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.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;
}

/* Responsive visibility */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* -------------------------------------------------------------
   11. COMPONENT: HEADER / NAVIGATION
   ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: var(--border-thin);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.header__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
}

.header__logo span {
  color: var(--color-sage);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-ink-light);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--color-ink);
}

.header__nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-sage);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header__cart {
  position: relative;
}

.header__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-terracotta);
  color: var(--color-cream);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* Mobile menu */
.header__menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 767px) {
  .header__nav {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }
}

/* -------------------------------------------------------------
   12. COMPONENT: FOOTER
   ------------------------------------------------------------- */
.footer {
  background: var(--color-parchment);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-ink-light);
  margin-bottom: var(--space-6);
}

.footer__heading {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink-light);
}

.footer__links a:hover {
  color: var(--color-terracotta);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: var(--border-thin);
}

.footer__copy {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-ink-faded);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-full);
  color: var(--color-ink-light);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-sage);
  color: var(--color-cream);
}

/* -------------------------------------------------------------
   13. COMPONENT: HERO - Layered Parisian Vintage
   ------------------------------------------------------------- */

/* Hero Keyframes */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes grainMove {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1%, -1%); }
  30% { transform: translate(1%, -1%); }
  50% { transform: translate(-1%, 1%); }
  70% { transform: translate(1%, 1%); }
  90% { transform: translate(-1%, -1%); }
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Atmospheric sky gradient - warm sunset to deep */
.hero__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #F7F3EB 0%,
    #EDE5D8 15%,
    #D8CCBA 35%,
    #B8A68A 55%,
    #8B9A7A 70%,
    #5C6B52 85%,
    var(--color-ink) 100%
  );
  z-index: 0;
}

/* Vintage paper grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 50;
  animation: grainMove 6s steps(8) infinite;
}

/* Layered fabric/paper waves - like rolling hills of cloth */
.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__wave--back { z-index: 1; }
.hero__wave--mid { z-index: 2; }
.hero__wave--front { z-index: 3; }

/* Hero content container */
.hero__container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

/* Badge/tag above title */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61, 53, 46, 0.08);
  color: var(--color-ink);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-radius: 2rem;
  animation: fadeDown 0.8s ease 0.1s both;
}

/* Main title */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s ease 0.2s both;
}

.hero__title em {
  font-style: italic;
  color: var(--color-terracotta);
  font-family: var(--font-accent);
  display: block;
}

/* Subtitle/description */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-ink-light);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  animation: fadeDown 0.8s ease 0.3s both;
}

/* CTA button */
.hero__cta-wrapper {
  animation: fadeDown 0.8s ease 0.4s both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 1.1rem 2.25rem;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
}

.hero__cta:hover {
  background: var(--color-sage);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(139, 154, 122, 0.35);
}

.hero__cta svg {
  transition: transform 0.3s;
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

.hero__cta-secondary {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
  animation: fadeDown 0.8s ease 0.5s both;
}

.hero__cta-secondary:hover {
  color: var(--color-terracotta);
}

/* Floating product cards */
.hero__floating {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  flex-wrap: wrap;
  margin-top: -3rem;
}

.hero__float-card {
  background: var(--color-cream);
  padding: 1rem;
  border-radius: 8px;
  box-shadow:
    0 4px 20px rgba(61, 53, 46, 0.1),
    0 1px 3px rgba(61, 53, 46, 0.08);
  text-align: center;
  min-width: 160px;
  max-width: 200px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: floatUp 0.7s ease both;
}

.hero__float-card:nth-child(1) { animation-delay: 0.5s; }
.hero__float-card:nth-child(2) { animation-delay: 0.6s; }
.hero__float-card:nth-child(3) { animation-delay: 0.7s; }

.hero__float-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    0 16px 40px rgba(61, 53, 46, 0.15),
    0 3px 8px rgba(61, 53, 46, 0.1);
}

.hero__float-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  filter: saturate(0.9);
}

.hero__float-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

.hero__float-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-ink-light);
  letter-spacing: 0.05em;
}

.hero__float-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-terracotta);
  margin-top: 0.5rem;
}

/* Decorative corner elements */
.hero__decor--corner {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-gold);
  opacity: 0.25;
  z-index: 5;
}

.hero__decor--corner-tl {
  top: 2rem;
  left: 2rem;
  border-right: none;
  border-bottom: none;
}

.hero__decor--corner-br {
  bottom: 2rem;
  right: 2rem;
  border-left: none;
  border-top: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-cream);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeDown 0.8s ease 1s forwards;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, var(--color-cream), transparent);
  animation: floatSoft 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__container {
    padding: 8rem 2rem 5rem;
  }

  .hero__floating {
    gap: 1rem;
  }

  .hero__float-card {
    min-width: 140px;
    max-width: 160px;
  }
}

@media (max-width: 767px) {
  .hero__container {
    padding: 7rem 1.5rem 3rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__floating {
    flex-direction: row;
    padding: 0 1rem 3rem;
    gap: 0.75rem;
    margin-top: -2rem;
  }

  .hero__float-card {
    min-width: 120px;
    max-width: 140px;
    padding: 0.75rem;
  }

  .hero__float-card-title {
    font-size: 0.85rem;
  }

  .hero__float-card-price {
    font-size: 1rem;
  }

  .hero__decor--corner {
    width: 50px;
    height: 50px;
  }

  .hero__decor--corner-tl {
    top: 1rem;
    left: 1rem;
  }

  .hero__decor--corner-br {
    bottom: 1rem;
    right: 1rem;
  }

  .hero__scroll {
    display: none;
  }
}

/* -------------------------------------------------------------
   14. SNIPCART CUSTOMIZATION
   ------------------------------------------------------------- */
/* Override Snipcart default styles */
.snipcart-modal__container {
  font-family: var(--font-body) !important;
}

.snipcart-cart-header__title {
  font-family: var(--font-display) !important;
}

.snipcart-item-line__title {
  font-family: var(--font-display) !important;
}

.snipcart-cart-button--highlight {
  background: var(--color-sage) !important;
}

.snipcart-cart-button--highlight:hover {
  background: var(--color-sage-dark) !important;
}

/* Add to cart button */
.snipcart-add-item {
  cursor: pointer;
}
