/* ============================================================
   SURBHI VAYA — Main Stylesheet
   Premium Lifestyle Blog + Ecommerce
   ============================================================ */

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

/* ---- CSS Variables ----------------------------------------- */
:root {
  /* Colors */
  --cream:      #FAF7F2;
  --warm-white: #FFFDF9;
  --beige:      #EDE0D0;
  --beige-mid:  #D9C4AC;
  --brown-soft: #C8A882;
  --brown:      #8B6F4E;
  --brown-dark: #5C4A35;
  --sage:       #8A9E7A;
  --sage-light: #B8CCAA;
  --sage-dark:  #637055;
  --blush:      #E8C0B4;
  --dusty-rose: #C8856A;
  --gold:       #C9A84C;
  --gold-light: #E8D5A0;
  --charcoal:   #2D2926;
  --charcoal-mid:#4A3F36;
  --text-main:  #3A2F28;
  --text-muted: #8B7D72;
  --text-light: #AFA39A;
  --white:      #FFFFFF;
  --black:      #1A1310;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(90,60,40,.06);
  --shadow-sm:  0 2px 8px rgba(90,60,40,.08);
  --shadow-md:  0 4px 20px rgba(90,60,40,.10);
  --shadow-lg:  0 8px 40px rgba(90,60,40,.14);
  --shadow-xl:  0 16px 60px rgba(90,60,40,.18);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-script:  'Satisfy', cursive;

  /* Spacing & Layout */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --radius-full:999px;

  /* Transitions */
  --ease:    cubic-bezier(.4,0,.2,1);
  --ease-out:cubic-bezier(0,0,.2,1);
  --t-fast:  .15s;
  --t-base:  .25s;
  --t-slow:  .4s;

  /* Nav height */
  --nav-h: 72px;
}

/* Dark mode */
[data-theme="dark"] {
  --cream:      #1E1810;
  --warm-white: #231D15;
  --beige:      #2D2520;
  --beige-mid:  #3A3028;
  --text-main:  #EDE0D0;
  --text-muted: #A09080;
  --text-light: #6A5D52;
  --charcoal:   #EDE0D0;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease);
}

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

/* Selection */
::selection { background: var(--gold-light); color: var(--brown-dark); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ---- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

.display-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
}

.script-text {
  font-family: var(--font-script);
  color: var(--dusty-rose);
}

.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

p { color: var(--text-main); }
.text-muted { color: var(--text-muted); }

/* ---- Layout ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 860px; }
.container-xs { max-width: 640px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* ---- Navigation ------------------------------------------- */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease);
}

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

[data-theme="dark"] .nav-wrapper.scrolled {
  background: rgba(30,24,16,.92);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--brown-dark);
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  border-radius: var(--radius-full);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover {
  background: var(--beige);
  color: var(--brown-dark);
}

.nav-link.active {
  color: var(--brown-dark);
  background: var(--beige);
}

/* Mega menu dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding-top: 12px;
  background: transparent;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
  pointer-events: none;
}
.nav-dropdown-menu::before {
  content: '';
  display: block;
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: absolute;
  inset: 12px 0 0 0;
  z-index: -1;
}
.nav-dropdown-menu a {
  position: relative;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: .85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
  background: transparent;
}

.nav-dropdown-menu a:hover {
  background: var(--beige);
  color: var(--brown-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-mid);
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--beige);
  color: var(--brown-dark);
}

.nav-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--dusty-rose);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-mid);
  transition: background var(--t-fast);
}

.theme-toggle:hover { background: var(--beige); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal-mid);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 100vw);
  height: 100vh;
  background: var(--warm-white);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
  padding: 80px 24px 40px;
}

.nav-mobile.open { transform: translateX(0); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}

.nav-overlay.open { opacity: 1; visibility: visible; }

.nav-mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--beige);
}

/* Page offset for fixed nav */
main { margin-top: var(--nav-h); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-full);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,.12); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--brown-dark);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(92,74,53,.3);
}
.btn-primary:hover {
  background: var(--brown);
  box-shadow: 0 4px 20px rgba(92,74,53,.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--brown-dark);
  border: 1.5px solid var(--beige-mid);
}
.btn-secondary:hover {
  border-color: var(--brown-soft);
  background: var(--beige);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(138,158,122,.3);
}
.btn-sage:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--brown-dark);
  border: 1.5px solid var(--brown-soft);
}
.btn-ghost:hover { background: var(--brown-dark); color: var(--white); }

.btn-sm  { padding: 8px 20px; font-size: .8rem; }
.btn-lg  { padding: 16px 40px; font-size: 1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; }

/* ---- Cards ------------------------------------------------- */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

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

.card-body { padding: 20px; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-text {
  font-size: .875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 12px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Recipe Card ------------------------------------------ */
.recipe-card .card-img { aspect-ratio: 3/2; }
.recipe-card .recipe-time-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 600;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.recipe-card .card-img { position: relative; }

.recipe-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 600;
  background: var(--beige);
  color: var(--brown);
}

/* ---- Product Card ----------------------------------------- */
.product-card .card-img { aspect-ratio: 3/4; }

.product-card .product-actions {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--t-base) var(--ease);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 36px;
  height: 36px;
  background: var(--warm-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--charcoal-mid);
  font-size: .85rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.product-action-btn:hover { background: var(--brown-dark); color: var(--white); }
.product-action-btn.wishlisted { background: var(--dusty-rose); color: var(--white); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-new       { background: var(--sage); color: var(--white); }
.badge-sale      { background: var(--dusty-rose); color: var(--white); }
.badge-bestseller{ background: var(--gold); color: var(--white); }

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.price-current { font-size: 1.1rem; font-weight: 700; color: var(--brown-dark); }
.price-compare { font-size: .875rem; color: var(--text-light); text-decoration: line-through; }
.price-discount { font-size: .75rem; font-weight: 600; color: var(--sage-dark); }

/* ---- Hero Section ----------------------------------------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30,20,12,.7) 0%,
    rgba(92,74,53,.3) 40%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 660px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--brown-dark);
  padding: 14px 36px;
  font-size: .95rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.btn-hero-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.btn-hero-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 14px 36px;
  font-size: .95rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.4);
  transition: all var(--t-base);
  cursor: pointer;
}
.hero-dot.active {
  width: 24px;
  background: var(--white);
}

/* ---- Section Headers -------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-label { margin-bottom: 12px; display: block; }

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  justify-content: center;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--beige-mid);
}

/* ---- Grid Layouts ----------------------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---- Category Pills --------------------------------------- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 500;
  background: var(--warm-white);
  border: 1.5px solid var(--beige);
  color: var(--text-muted);
  transition: all var(--t-fast);
  cursor: pointer;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
}

/* ---- Search Bar ------------------------------------------- */
.search-bar {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--beige-mid);
  background: var(--warm-white);
  color: var(--text-main);
  font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--brown-soft);
  box-shadow: 0 0 0 3px rgba(200,168,130,.15);
}

.search-bar .search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--brown-dark);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Highlighted Feature Strip ---------------------------- */
.feature-strip {
  background: var(--brown-dark);
  color: var(--white);
  padding: 14px 0;
  overflow: hidden;
}

.feature-strip-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  opacity: .9;
}

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

/* ---- Newsletter ------------------------------------------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--charcoal-mid) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/texture.svg') repeat;
  opacity: .04;
}

.newsletter-content { text-align: center; position: relative; }
.newsletter-content h2 { color: var(--white); font-style: italic; margin-bottom: 12px; }
.newsletter-content p  { color: rgba(255,255,255,.75); margin-bottom: 32px; }

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--text-main);
  font-size: .9rem;
}

.newsletter-form button {
  padding: 16px 28px;
  background: var(--dusty-rose);
  color: var(--white);
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.newsletter-form button:hover { background: var(--brown-dark); }

/* ---- Instagram Gallery ------------------------------------ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.ig-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.ig-item:hover img { transform: scale(1.1); }

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92,74,53,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
  color: var(--white);
  font-size: 1.5rem;
}
.ig-item:hover .ig-overlay { opacity: 1; }

/* ---- Testimonials ----------------------------------------- */
.testimonial-card {
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: .8;
  color: var(--beige);
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--beige);
}

.testimonial-name { font-weight: 600; font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: var(--text-light); }

/* ---- Stars ------------------------------------------------ */
.stars { color: var(--gold); letter-spacing: 1px; font-size: .85rem; }
.stars .star.half { opacity: .5; }
.stars .star:not(.filled):not(.half) { color: var(--beige-mid); }

/* ---- Toast Notifications ---------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 3px solid var(--sage);
  min-width: 280px;
  max-width: 360px;
  pointer-events: auto;
  animation: slideInRight .3s var(--ease-out);
}

.toast.toast-error   { border-color: var(--dusty-rose); }
.toast.toast-success { border-color: var(--sage); }
.toast.toast-info    { border-color: var(--brown-soft); }
.toast.hiding { animation: slideOutRight .3s var(--ease) forwards; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
  to { transform: translateX(120%); opacity: 0; }
}

/* ---- Forms ------------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--beige-mid);
  border-radius: var(--radius-md);
  background: var(--warm-white);
  color: var(--text-main);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control:focus {
  border-color: var(--brown-soft);
  box-shadow: 0 0 0 3px rgba(200,168,130,.15);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-error {
  font-size: .78rem;
  color: var(--dusty-rose);
  margin-top: 4px;
}

/* ---- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--beige);
  transition: all var(--t-fast);
  background: var(--warm-white);
}

.page-btn:hover,
.page-btn.active {
  background: var(--brown-dark);
  color: var(--white);
  border-color: var(--brown-dark);
}

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: var(--beige-mid);
}

.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item a { color: var(--brown-soft); }
.breadcrumb-item a:hover { color: var(--brown-dark); }

/* ---- Reading Progress Bar --------------------------------- */
.reading-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dusty-rose), var(--gold));
  z-index: 999;
  width: 0%;
  transition: width .1s linear;
}

/* ---- Quote Block ------------------------------------------ */
.quote-block {
  margin: 40px 0;
  padding: 32px 40px;
  border-left: 3px solid var(--brown-soft);
  background: var(--beige);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brown-dark);
  line-height: 1.6;
}

.quote-attribution {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ---- Meal Planner ----------------------------------------- */
.meal-planner {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.meal-day {
  background: var(--warm-white);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.meal-day-header {
  background: var(--beige);
  padding: 10px;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown-dark);
}

.meal-slot {
  padding: 8px;
  min-height: 60px;
  border-bottom: 1px solid var(--beige);
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: .72rem;
  color: var(--text-muted);
}

.meal-slot:hover { background: var(--beige); }
.meal-slot:last-child { border-bottom: none; }
.meal-slot-label {
  font-weight: 600;
  color: var(--text-light);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 4px;
}

/* ---- Cart Sidebar ----------------------------------------- */
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--warm-white);
  box-shadow: var(--shadow-xl);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { transform: translateX(0); }

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

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--beige);
}

.cart-item-img {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--beige);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: .875rem; font-weight: 500; }
.cart-item-variant { font-size: .75rem; color: var(--text-light); }
.cart-item-price { font-size: .9rem; font-weight: 700; color: var(--brown-dark); margin-top: 4px; }

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--beige-mid);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
  width: fit-content;
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: background var(--t-fast);
}
.qty-btn:hover { background: var(--beige); }

.qty-val {
  min-width: 32px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: 0 4px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--beige);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-total-label { font-weight: 600; }
.cart-total-price { font-size: 1.4rem; font-weight: 700; color: var(--brown-dark); }

/* ---- Footer ----------------------------------------------- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: .875rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,.6);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: all var(--t-fast);
}
.social-btn:hover {
  background: var(--brown-soft);
  border-color: var(--brown-soft);
  color: var(--white);
}

.footer-col-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  padding: 5px 0;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--brown-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: var(--brown-soft); }

/* ---- Utility Classes -------------------------------------- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm  { gap: 8px; }
.flex-gap     { gap: 16px; }
.mt-auto      { margin-top: auto; }
.mb-0         { margin-bottom: 0; }
.gap-4        { gap: 4px; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }

/* ---- Animations ------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

.fade-in {
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.fade-in.visible { opacity: 1; }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * .08s); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--beige) 25%, var(--warm-white) 50%, var(--beige) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
  .meal-planner { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .meal-planner { grid-template-columns: repeat(3, 1fr); }
  :root { --nav-h: 64px; }
}

@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .meal-planner { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .section { padding: 56px 0; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius-md); }
  .newsletter-form input, .newsletter-form button { border-radius: var(--radius-md); }
  .container { padding: 0 16px; }
}

/* ---- Print Styles ----------------------------------------- */
@media print {
  .nav-wrapper, .footer, .cart-sidebar, .toast-container { display: none !important; }
  main { margin-top: 0; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #eee; }
}
