/* 
 * Suthri Wardrobe CSS stylesheet
 * Agency-grade custom design system
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color Palette */
  --color-bg-light: #FDFBF7;
  --color-bg-dark: #1C2E24;
  --color-text-dark: #2B1B17;
  --color-text-light: #FDFBF7;
  --color-clay: #C07C5F;
  --color-gold: #D4AF37;
  --color-oat: #F4F0E6;
  --color-border: rgba(43, 27, 23, 0.1);
  --color-border-light: rgba(253, 251, 247, 0.15);
  --color-shadow: rgba(43, 27, 23, 0.05);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-elastic: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-round: 50%;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
  background-color: var(--color-clay);
  color: var(--color-bg-light);
}

/* Grain Overlay Texture */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3 Trick code for SVG grain %3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-clay);
  border-radius: var(--radius-sm);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: inherit;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

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

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* --- Custom Cursor --- */
.custom-cursor {
  width: 10px;
  height: 10px;
  background-color: var(--color-clay);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}
.custom-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-clay);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-hover .custom-cursor {
  width: 20px;
  height: 20px;
  background-color: var(--color-gold);
}
.cursor-hover .custom-cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--color-gold);
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-ring {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.1rem 2.2rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-text-dark);
  color: var(--color-bg-light);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-clay);
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary > span, .btn-primary > i {
  position: relative;
  z-index: 2;
}

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

.btn-secondary:hover {
  background-color: var(--color-text-dark);
  color: var(--color-bg-light);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}
header.scrolled .nav-container {
  padding: 0.8rem 0;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 990;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: var(--transition-fast);
}

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

.brand-logo {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition-smooth);
}

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

.cart-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--color-text-dark);
  font-size: 1.3rem;
  padding: 8px;
  transition: var(--transition-fast);
}

.cart-icon-btn:hover {
  transform: scale(1.1);
  color: var(--color-clay);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-clay);
  color: var(--color-bg-light);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-elastic);
  transform: scale(0);
}

.cart-badge.has-items {
  transform: scale(1);
}

/* Fullscreen Nav Menu Drawer */
.nav-menu-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu-drawer.active {
  left: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.nav-links a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(253, 251, 247, 0.6);
  position: relative;
}

.nav-links a:hover {
  color: var(--color-text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-menu-info {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(253, 251, 247, 0.4);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background-color: var(--color-oat);
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
  }
}

.hero-statement {
  z-index: 10;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-clay);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero h1 em {
  color: var(--color-clay);
}

.hero-statement p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(43, 27, 23, 0.8);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.hero-image-wrapper {
  position: relative;
  z-index: 5;
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px var(--color-shadow);
  aspect-ratio: 4 / 5;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease-out;
}

.hero-image-wrapper:hover img {
  transform: scale(1.08);
}

.hero-image-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: var(--color-bg-dark);
  color: var(--color-bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 5px;
  max-width: 180px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .hero-image-badge {
    display: flex;
  }
}

.hero-image-badge span:first-child {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-gold);
}

.hero-image-badge span:last-child {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.6);
}

/* Scroll Anchor */
.scroll-anchor {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-clay);
  cursor: pointer;
}

.scroll-anchor-line {
  width: 1px;
  height: 50px;
  background-color: var(--color-clay);
  position: relative;
  overflow: hidden;
}

.scroll-anchor-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--color-bg-light);
  animation: scroll-bounce 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scroll-bounce {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(250%); }
  100% { transform: translateY(-100%); }
}

/* --- Philosophy / About Section --- */
.philosophy {
  padding: var(--space-xxl) 0;
  background-color: var(--color-oat);
  position: relative;
  overflow: hidden;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-xl);
  }
}

.philosophy-intro h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.philosophy-intro h2 em {
  color: var(--color-clay);
}

.philosophy-intro-badge {
  display: inline-block;
  border: 1px solid var(--color-clay);
  color: var(--color-clay);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.philosophy-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(43, 27, 23, 0.9);
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-clay);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(43, 27, 23, 0.6);
}

/* --- Shop / Product Grid Section --- */
.shop {
  padding: var(--space-xxl) 0;
}

.shop-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .shop-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.shop-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
}

.shop-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: var(--color-bg-light);
}

/* Asymmetric Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-lg);
  }
}

/* Layout Asymmetry */
.product-card {
  position: relative;
  transition: var(--transition-smooth);
}

@media (min-width: 1024px) {
  /* Pattern: 2 columns wide/tall, standard, overlapping offsets */
  .product-card:nth-child(4n+1) {
    grid-column: span 7;
  }
  .product-card:nth-child(4n+2) {
    grid-column: span 5;
    margin-top: 4rem;
  }
  .product-card:nth-child(4n+3) {
    grid-column: span 5;
  }
  .product-card:nth-child(4n+4) {
    grid-column: span 7;
    margin-top: -3rem;
  }
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-container {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--color-shadow);
  margin-bottom: var(--space-sm);
  background-color: var(--color-oat);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Size Pills Overlay on Hover */
.product-size-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(28, 46, 36, 0.9) 0%, rgba(28, 46, 36, 0) 100%);
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: 5;
}

.product-card:hover .product-size-overlay {
  transform: translateY(0);
}

.size-overlay-title {
  color: var(--color-bg-light);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

.size-pill-container {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.size-pill-btn {
  background-color: rgba(253, 251, 247, 0.15);
  border: 1px solid rgba(253, 251, 247, 0.3);
  color: var(--color-bg-light);
  font-size: 0.7rem;
  font-weight: 500;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-pill-btn:hover {
  background-color: var(--color-bg-light);
  color: var(--color-bg-dark);
  border-color: var(--color-bg-light);
}

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-clay);
  color: var(--color-bg-light);
  padding: 0.3rem 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 4;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xs);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-info h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
}

.product-info span {
  font-size: 0.75rem;
  color: rgba(43, 27, 23, 0.6);
  letter-spacing: 0.05em;
}

.product-price {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-clay);
  font-weight: 500;
  white-space: nowrap;
}

/* --- Social Proof & Storytelling --- */
.social-proof {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 30vw;
  height: 30vw;
  background-color: rgba(192, 124, 95, 0.15);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 5;
}

@media (min-width: 1024px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.testimonial-wrapper {
  position: relative;
}

.quote-icon {
  font-size: 6rem;
  font-family: var(--font-serif);
  line-height: 1;
  color: rgba(192, 124, 95, 0.3);
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: -1;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.testimonial-author-title {
  font-size: 0.75rem;
  color: rgba(253, 251, 247, 0.5);
}

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

.artisan-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}

.artisan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.artisan-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: var(--space-sm);
  color: var(--color-bg-light);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* --- Call To Action (CTA) Section --- */
.cta {
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  background-color: var(--color-oat);
  color: var(--color-clay);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.cta h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.cta h2 em {
  color: var(--color-clay);
}

.cta p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(43, 27, 23, 0.7);
  margin-bottom: var(--space-lg);
}

/* --- Footer --- */
footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-md) 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: span 1;
}
@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2;
  }
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(43, 27, 23, 0.6);
  max-width: 320px;
}

.footer-links-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--color-clay);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(43, 27, 23, 0.7);
}

.footer-links a:hover {
  color: var(--color-clay);
  transform: translateX(3px);
}

.footer-newsletter input {
  width: 100%;
  background-color: var(--color-oat);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--color-clay);
}

.footer-newsletter button {
  width: 100%;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  padding: 0.8rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  align-items: center;
  font-size: 0.75rem;
  color: rgba(43, 27, 23, 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

/* --- Slide-Out Cart Drawer --- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background-color: var(--color-bg-light);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--color-border);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-drawer-header h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text-dark);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Cart Item card styling */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

.cart-item-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(43, 27, 23, 0.4);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-clay);
}

.cart-item-meta {
  font-size: 0.75rem;
  color: rgba(43, 27, 23, 0.5);
  margin-top: 2px;
}

.cart-item-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xs);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.qty-btn {
  background: none;
  border: none;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-size: 0.8rem;
  font-weight: 600;
  width: 25px;
  text-align: center;
}

.cart-item-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-clay);
  font-weight: 500;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-oat);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.cart-subtotal-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(43, 27, 23, 0.6);
}

.cart-subtotal-val {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-clay);
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-xs);
}

.empty-cart-message {
  text-align: center;
  color: rgba(43, 27, 23, 0.5);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-top: 5rem;
}

/* --- Modal Backdrop --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(28, 46, 36, 0.4);
  backdrop-filter: blur(8px);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Product Details Modal --- */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr;
  overflow-y: auto;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .product-modal {
    grid-template-columns: 1.1fr 0.9fr;
    overflow-y: hidden;
  }
}

.product-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-modal-image {
  background-color: var(--color-oat);
  position: relative;
  aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
  .product-modal-image {
    height: 100%;
    aspect-ratio: auto;
  }
}

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

.product-modal-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  max-height: 100%;
}

.product-modal-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-clay);
  font-weight: 600;
  margin-bottom: 5px;
}

.product-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-modal-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-clay);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.product-modal-desc {
  font-size: 0.9rem;
  color: rgba(43, 27, 23, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.product-modal-sizes {
  margin-bottom: 1.5rem;
}

.size-selector-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.size-options {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.size-option-btn {
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.size-option-btn:hover {
  border-color: var(--color-text-dark);
}

.size-option-btn.active {
  background-color: var(--color-text-dark);
  color: var(--color-bg-light);
  border-color: var(--color-text-dark);
}

.product-spec-table {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  font-size: 0.8rem;
}

.spec-key {
  font-weight: 600;
  color: var(--color-clay);
}

.spec-val {
  color: rgba(43, 27, 23, 0.7);
}

.modal-add-to-cart-btn {
  width: 100%;
  justify-content: center;
}

/* --- Checkout Modal --- */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 480px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  z-index: 1060;
  opacity: 0;
  pointer-events: none;
  padding: 2.2rem;
  transition: var(--transition-smooth);
}

.checkout-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-text-dark);
}

.checkout-modal h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.checkout-modal-subtitle {
  font-size: 0.8rem;
  color: rgba(43, 27, 23, 0.6);
  margin-bottom: var(--space-md);
  text-align: center;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-clay);
}

.form-group input, .form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background-color: var(--color-oat);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-clay);
  background-color: var(--color-bg-light);
}

.checkout-submit-btn {
  margin-top: var(--space-xs);
  justify-content: center;
  width: 100%;
}

/* --- Scroll Entrance Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations helper */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }

/* Custom cursor active styles for pointer items */
a, button, .qty-btn, .scroll-anchor, .filter-btn, .size-pill-btn, .size-option-btn {
  cursor: pointer !important;
}
