/* =============================================================
   BYASH BASANTI — style.css
   Aesthetic: Editorial Luxury meets Indian Heritage
   Palette: Warm Ivory · Terracotta · Indigo · Gold
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================= */

/* ─────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ───────────────────────────────────────── */
:root {
  /* Colours */
  --cream:        #F5F0E8;
  --warm-white:   #FDFAF5;
  --terracotta:   #C4714A;
  --saffron:      #D4922A;
  --indigo:       #2C3E6E;
  --deep-brown:   #3D2314;
  --gold:         #C9A84C;
  --gold-light:   #E8D5A3;
  --charcoal:     #1A1A1A;
  --mid-grey:     #6B6560;
  --light-grey:   #E8E3D8;
  --sage:         #8FAF7E;
  --border:       rgba(61, 35, 20, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-accent:  'Italiana', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Sizing scale */
  --space-xs:    0.25rem;
  --space-sm:    0.5rem;
  --space-md:    1rem;
  --space-lg:    2rem;
  --space-xl:    3.5rem;
  --space-2xl:   6rem;
  --space-3xl:   10rem;

  /* Layout */
  --max-width:   1320px;
  --header-h:    80px;

  /* Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --trans-fast:  0.2s var(--ease-smooth);
  --trans-med:   0.4s var(--ease-smooth);
  --trans-slow:  0.6s var(--ease-smooth);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.14);
}

/* ─────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────── */
*, *::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);
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Screen-reader only utility */
.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;
}

/* ─────────────────────────────────────────
   3. GRAIN OVERLAY
   ───────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ─────────────────────────────────────────
   4. IMAGE PLACEHOLDERS
   (replace with real <img> tags in production)
   ───────────────────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-grey) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

/* Decorative diagonal stripe */
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(196, 113, 74, 0.05) 10px,
    rgba(196, 113, 74, 0.05) 20px
  );
}

.img-placeholder.tall { height: 360px; }

.img-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  background: rgba(255,255,255,0.8);
  padding: 4px 10px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

/* Tinted placeholders for visual variety */
.c2 { background: linear-gradient(135deg, #f0e2c8 0%, #e8c88a 100%); }
.c3 { background: linear-gradient(135deg, #c8d4e8 0%, #8fa3c8 100%); }
.c4 { background: linear-gradient(135deg, #d4e8d0 0%, #a0c49a 100%); }
.c5 { background: linear-gradient(135deg, #e8d0c0 0%, #c4855a 100%); }
.c6 { background: linear-gradient(135deg, #2a2a3a 0%, #1A1A1A 100%); }
.c6 .img-label { background: rgba(255,255,255,0.15); color: #ccc; }
.c-chanderi { background: linear-gradient(135deg, #f0d8b8 0%, #d4a060 100%); }

/* ─────────────────────────────────────────
   5. TYPOGRAPHY HELPERS
   ───────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

/* ─────────────────────────────────────────
   6. BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--trans-med);
  position: relative;
  overflow: hidden;
}

/* Ripple pseudo-element */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--trans-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background-color: var(--charcoal);
  color: var(--cream);
  border: 1.5px solid var(--charcoal);
}
.btn-primary:hover {
  background-color: var(--deep-brown);
  border-color: var(--deep-brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-secondary:hover {
  background-color: var(--charcoal);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
}
.btn-outline:hover {
  background-color: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
}

.btn-quick-add {
  background-color: var(--warm-white);
  color: var(--charcoal);
  border: 1.5px solid var(--warm-white);
  padding: 12px 24px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.btn-quick-add:hover {
  background-color: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* ─────────────────────────────────────────
   7. REVEAL ANIMATIONS
   ───────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s var(--ease-smooth) forwards;
}

.reveal-fade {
  opacity: 0;
  animation: revealFade 1s var(--ease-smooth) 0.2s forwards;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

/* JS adds this class when element enters viewport */
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Product card reveal — handled by JS adding .in-view */
.products-grid .reveal-up {
  animation: none;  /* override hero auto-animation */
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.products-grid .reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealFade {
  to { opacity: 1; }
}

/* ─────────────────────────────────────────
   8. HEADER & NAVIGATION
   ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: rgba(253, 250, 245, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--trans-med), box-shadow var(--trans-med);
}

.site-header.scrolled {
  background-color: rgba(253, 250, 245, 0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  flex-shrink: 0;
}

/* Image-based logo */
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  /* The logo is black on white — invert for dark backgrounds is handled below */
}

/* Keep old text-logo styles as fallback */
.logo-main {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--charcoal);
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--terracotta);
  text-transform: uppercase;
  font-weight: 400;
}

/* Footer logo */
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Invert to white for dark footer background */
  filter: invert(1) brightness(2);
  opacity: 0.92;
}

/* Mobile overlay logo icon */
.overlay-logo-wrap {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

.overlay-logo-icon {
  height: 64px;
  width: auto;
  filter: invert(1) brightness(2);
  opacity: 0.7;
}

/* Primary Nav */
.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--trans-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--terracotta);
  transition: width var(--trans-med);
}

.nav-link:hover { color: var(--terracotta); }
.nav-link:hover::after { width: 100%; }

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--charcoal);
  transition: all var(--trans-fast);
  position: relative;
}

.icon-btn:hover {
  background-color: var(--cream);
  color: var(--terracotta);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--terracotta);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--ease-bounce) 0.2s;
  pointer-events: none;
}

.cart-count.visible { transform: scale(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 4px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--charcoal);
  transition: all var(--trans-med);
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  background-color: var(--warm-white);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--trans-slow), opacity var(--trans-med), padding var(--trans-slow);
  padding-top: 0;
  padding-bottom: 0;
}

.search-bar.open {
  max-height: 80px;
  opacity: 1;
  padding: var(--space-md) var(--space-lg);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
  outline: none;
}

.search-input::placeholder { color: var(--light-grey); }

.search-close {
  font-size: 1rem;
  color: var(--mid-grey);
  padding: 4px 8px;
  transition: color var(--trans-fast);
}
.search-close:hover { color: var(--terracotta); }

/* ─────────────────────────────────────────
   9. MOBILE NAV OVERLAY
   ───────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--charcoal);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-slow);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.overlay-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.04em;
  transition: color var(--trans-fast);
  position: relative;
}

.overlay-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--trans-med);
}

.overlay-nav-link:hover { color: var(--gold); }
.overlay-nav-link:hover::after { width: 100%; }

.overlay-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

/* ─────────────────────────────────────────
   10. HERO SECTION
   ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  overflow: hidden;
}

/* Gigantic decorative word */
.hero-bg-word {
  position: absolute;
  bottom: -0.2em;
  right: -0.05em;
  font-family: var(--font-accent);
  font-size: clamp(8rem, 22vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(196,113,74,0.09);
  letter-spacing: -0.03em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.hero-headline em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.8;
  max-width: 380px;
}

/* Hero image mosaic */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  z-index: 1;
}

.hero-img { border-radius: 3px; overflow: hidden; }

.hero-img-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 520px;
}

.hero-img-1 .img-placeholder {
  background: linear-gradient(160deg, #e8d5c0 0%, #c4855a 100%);
  height: 100%;
}

.hero-img-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  height: 250px;
}
.hero-img-2 .img-placeholder {
  background: linear-gradient(135deg, #c8d4e8 0%, #2C3E6E55 100%);
  height: 100%;
}

.hero-img-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  height: 258px;
}
.hero-img-3 .img-placeholder {
  background: linear-gradient(135deg, #d4e8d0 0%, #8FAF7E 100%);
  height: 100%;
}

/* Floating year badge */
.hero-img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  border: 3px solid var(--warm-white);
  box-shadow: var(--shadow-md);
}

.hero-img-badge strong {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
}

/* Hero images — real <img> tags */
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 3px;
}

.hero-img-1 img { object-position: center top; }
.hero-img-3 img { object-position: center 20%; }
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--terracotta), transparent);
  animation: scrollPulse 2s var(--ease-smooth) infinite;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-grey);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ─────────────────────────────────────────
   11. MARQUEE STRIP
   ───────────────────────────────────────── */
.marquee-strip {
  background-color: var(--charcoal);
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 var(--space-lg);
}

.marquee-dot {
  color: var(--terracotta) !important;
  font-size: 0.5rem !important;
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   12. ABOUT THE CRAFT SECTION
   ───────────────────────────────────────── */
.about-craft {
  padding: var(--space-3xl) var(--space-lg);
  background-color: var(--cream);
}

.about-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Image stack */
.about-img-stack {
  position: relative;
}

.about-img { border-radius: 3px; overflow: hidden; }

.about-img-main { width: 75%; }

.about-img-accent {
  width: 58%;
  position: absolute;
  bottom: -40px;
  right: 0;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}

/* About images — real <img> tags */
.about-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 3px;
}

.about-img-accent img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-img-accent .img-placeholder {
  background: linear-gradient(135deg, #e8d8c0 0%, #c4945a 100%);
  height: 200px;
}

/* Stat card */
.about-stat-card {
  position: absolute;
  top: var(--space-lg);
  right: -var(--space-md);
  background: var(--terracotta);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-md);
  min-width: 130px;
  text-align: center;
}

.about-stat-card strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
}

.about-stat-card span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  opacity: 0.88;
}

/* About text */
.about-text {
  padding-top: var(--space-lg);
}

.about-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--terracotta), var(--gold));
  margin: var(--space-lg) 0;
}

.about-body {
  font-size: 0.95rem;
  color: var(--mid-grey);
  margin-bottom: var(--space-md);
  line-height: 1.9;
}

.about-body strong { color: var(--charcoal); font-weight: 500; }

/* Pills */
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 5px 14px;
  border-radius: 100px;
  transition: all var(--trans-fast);
}

.pill:hover {
  background-color: var(--terracotta);
  color: #fff;
  cursor: default;
}

/* ─────────────────────────────────────────
   13. PRODUCTS SECTION
   ───────────────────────────────────────── */
.products-section {
  padding: var(--space-3xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-header .section-title { margin-bottom: var(--space-md); }

.view-all-link {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--trans-fast);
}
.view-all-link:hover { gap: 8px; }
.view-all-link span { transition: transform var(--trans-fast); }
.view-all-link:hover span { transform: translateX(4px); }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--light-grey);
  border-radius: 100px;
  color: var(--mid-grey);
  background: transparent;
  transition: all var(--trans-fast);
}

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

.filter-tab.active {
  background-color: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Cards hidden by filter get display:none via JS */
.product-card.hidden { display: none; }

/* Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}

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

.product-img-wrap {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--cream);
}

.product-img-ph {
  width: 100%;
  height: 100%;
  transition: transform var(--trans-slow);
  position: absolute;
  inset: 0;
}

/* Real product images */
.product-img-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--trans-slow);
}

.product-card:hover .product-img-ph img {
  transform: scale(1.04);
}

/* Product overlay on hover */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-lg);
  opacity: 0;
  transition: opacity var(--trans-med);
}

.product-card:hover .product-overlay,
.product-card:focus-within .product-overlay {
  opacity: 1;
}

/* Product badge */
.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  background: var(--charcoal);
  color: var(--cream);
  z-index: 2;
}

.product-badge.bestseller { background: var(--terracotta); }
.product-badge.limited { background: var(--indigo); }

/* Product Info */
.product-info {
  padding: var(--space-md) 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--mid-grey);
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--deep-brown);
}

.product-colors {
  display: flex;
  gap: 6px;
  align-items: center;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  cursor: default;
  transition: transform var(--trans-fast);
}

.color-dot:hover { transform: scale(1.25); }

/* ─────────────────────────────────────────
   14. PHILOSOPHY BANNER
   ───────────────────────────────────────── */
.philosophy-banner {
  background: var(--indigo);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.philosophy-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.philosophy-inner { position: relative; max-width: 820px; margin: 0 auto; }

.philosophy-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.philosophy-attr {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

/* ─────────────────────────────────────────
   15. COLLECTIONS FEATURE BLOCKS
   ───────────────────────────────────────── */
.collections-feature {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

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

.collection-img-wrap {
  border-radius: 3px;
  overflow: hidden;
}

.collection-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--trans-slow);
}

.collection-img-wrap:hover .collection-img { transform: scale(1.04); }

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

.collection-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.1;
}

.collection-title em {
  font-style: italic;
  color: var(--terracotta);
}

.collection-text p {
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.8;
  max-width: 380px;
}

/* ─────────────────────────────────────────
   16. FOOTER
   ───────────────────────────────────────── */
.site-footer {
  background-color: var(--deep-brown);
  color: var(--cream);
  padding-top: var(--space-2xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-2xl);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: var(--space-2xl);
}

/* Footer brand */

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.65);
  margin: var(--space-lg) 0;
  max-width: 340px;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: 50%;
  color: rgba(245, 240, 232, 0.7);
  transition: all var(--trans-fast);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* Footer nav */
.footer-nav-group {
  display: contents;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-lg);
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.6);
  transition: color var(--trans-fast);
  display: inline-block;
}

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

/* Newsletter */
.footer-newsletter {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  padding-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-lg) var(--space-2xl);
  align-items: start;
}

.footer-newsletter .footer-col-title { margin-bottom: var(--space-sm); }

.footer-newsletter p {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.7;
  grid-column: 1 / 2;
}

.newsletter-form {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
}

.newsletter-input-wrap {
  display: flex;
  border: 1px solid rgba(245, 240, 232, 0.25);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

.newsletter-input-wrap:focus-within {
  border-color: var(--gold);
}

.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--cream);
  padding: 14px var(--space-md);
}

.newsletter-input::placeholder { color: rgba(245,240,232,0.35); }

.newsletter-btn {
  background: var(--gold);
  color: var(--deep-brown);
  border: none;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast);
}
.newsletter-btn:hover { background: var(--saffron); }

.newsletter-msg {
  font-size: 0.78rem;
  margin-top: 8px;
  min-height: 20px;
  color: var(--gold-light);
}
.newsletter-msg.error { color: #e87070; }

.newsletter-fine {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.35);
  margin-top: var(--space-sm);
  grid-column: 1 / 2;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.10);
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
}

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

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  transition: color var(--trans-fast);
}
.footer-bottom-links a:hover { color: var(--cream); }

/* ─────────────────────────────────────────
   17. CART TOAST NOTIFICATION
   ───────────────────────────────────────── */
.cart-toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--charcoal);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: transform var(--ease-bounce) 0.35s, opacity var(--trans-med);
  z-index: 9000;
  pointer-events: none;
  border-left: 3px solid var(--terracotta);
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast svg { color: var(--terracotta); flex-shrink: 0; }

/* ─────────────────────────────────────────
   18. RESPONSIVE — TABLET (≤ 1024px)
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }

  .hero-visual { display: none; } /* Hide mosaic on tablet, show full-width content */
  .hero-bg-word { font-size: 40vw; opacity: 0.5; }

  .scroll-indicator { display: none; }

  .about-layout { gap: var(--space-xl); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-newsletter {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); }

  .collection-block { gap: var(--space-lg); }
}

/* ─────────────────────────────────────────
   19. RESPONSIVE — MOBILE (≤ 768px)
   ───────────────────────────────────────── */
@media (max-width: 768px) {

  :root { --header-h: 64px; }

  /* Header */
  .primary-nav { display: none; } /* Hidden on mobile, shown in overlay */
  .hamburger { display: flex; }

  .header-inner { padding: 0 var(--space-md); gap: var(--space-md); }

  .logo-img { height: 40px; }
  .logo-main { font-size: 1rem; }
  .logo-sub  { display: none; }

  /* Hero */
  .hero {
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    text-align: center;
  }

  .hero-content { align-items: center; }
  .hero-sub { text-align: center; }
  .hero-bg-word { font-size: 50vw; }

  /* About */
  .about-craft { padding: var(--space-2xl) var(--space-md); }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { margin-bottom: 60px; } /* Space for overlapping accent image */
  .about-stat-card { right: 0; }

  /* Products */
  .products-section { padding: var(--space-2xl) var(--space-md); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

  .section-header { margin-bottom: var(--space-lg); }
  .view-all-link {
    position: static;
    margin-top: var(--space-md);
    font-size: 0.72rem;
  }

  /* Philosophy */
  .philosophy-banner { padding: var(--space-xl) var(--space-md); }

  /* Collections */
  .collections-feature { padding: var(--space-2xl) var(--space-md); }
  .collection-block,
  .chanderi-block { grid-template-columns: 1fr; }
  .chanderi-block .collection-img-wrap { order: -1; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-nav-group { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-xl); }

  .footer-newsletter {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-sm); }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

  /* Cart toast */
  .cart-toast {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
    justify-content: center;
  }
}

/* ─────────────────────────────────────────
   20. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ───────────────────────────────────────── */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 7px 14px; font-size: 0.65rem; }
  .about-pills { gap: 6px; }
}

/* ─────────────────────────────────────────
   21. FOCUS STYLES (Accessibility)
   ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

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

  .marquee-track { animation: none; }
  .scroll-indicator { display: none; }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-fade {
    opacity: 1;
    transform: none;
  }
}
