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

:root {
  --cream: #FAF6EF;
  --warm-white: #FFF8F0;
  --terracotta: #D22701;
  --terracotta-dark: #D22701;
  --terracotta-light: #D22701;
  --gold: #C9952A;
  --gold-light: #F0C96A;
  --earth: #AAD15F;
  --earth-mid: #AAD15F;
  --earth-light: #AAD15F;
  --sage: #AAD15F;
  --text-dark: #1F2A0F;
  --text-mid: #3B4E1F;
  --text-light: #8C6B58;
  --border: #E8D9C8;
  --shadow: rgba(61, 43, 31, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--earth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: height 0.2s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--gold-light);
}

.nav-cart-btn {
  position: relative;
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cart-btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.cart-count {
  background: var(--gold-light);
  color: var(--earth);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── NEW MODERN SEARCH CONTAINER ── */
.nav-search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon Button initially visible */
.nav-search-icon-btn {
  background: rgba(250, 246, 239, 0.45); /* translucent cream */
  border: 1.5px solid rgba(31, 42, 15, 0.15); /* var(--text-dark) border */
  color: var(--text-dark);
  font-size: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 105;
}
.nav-search-icon-btn:hover {
  background: #fff;
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(210, 39, 1, 0.08);
}

/* Expand wrap - hidden by default, slides out when active */
.nav-search-expand-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--terracotta);
  border-radius: 50px;
  height: 38px;
  width: 250px;
  padding: 0 0.5rem 0 1.2rem;
  box-shadow: 0 10px 25px rgba(31, 42, 15, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 104;
}

/* Active state for expanding */
.nav-search-expand-wrap.active {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
  pointer-events: all;
}

/* Input field inside the expand wrap */
.nav-search-input-field {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  width: 100%;
  height: 100%;
}
.nav-search-input-field::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

/* Clear/Close button */
.nav-search-clear-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-mid);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.nav-search-clear-btn:hover {
  background: var(--terracotta);
  color: #fff;
}

/* Responsiveness */
@media (max-width: 768px) {
  .nav-search-expand-wrap {
    width: 170px;
  }
}
@media (max-width: 480px) {
  /* On very small devices, make it overlay the rest of the navbar items or logo when open */
  .nav-search-expand-wrap.active {
    position: fixed;
    right: 5vw;
    left: 5vw;
    top: 15px;
    width: auto;
    z-index: 110;
  }
}

/* ── NAV SEARCH SUGGESTIONS DROPDOWN ── */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(31, 42, 15, 0.15);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.nav-search-dropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
  cursor: pointer;
  text-align: left;
}
.nav-search-dropdown-item:last-child {
  border-bottom: none;
}
.nav-search-dropdown-item:hover {
  background: var(--cream);
}

.nsd-img-box {
  width: 36px;
  height: 36px;
  background: var(--warm-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.nsd-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsd-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nsd-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
}
.nav-search-dropdown-item:hover .nsd-name {
  color: var(--terracotta);
}

.nsd-cat {
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nsd-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.nav-search-dropdown-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .nav-search-dropdown {
    width: auto;
    left: 5vw;
    right: 5vw;
    position: fixed;
    top: 58px;
  }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(210,39,1,0.35); }

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--terracotta); color: #fff; transform: translateY(-1px); }

/* ── SECTION HEADERS ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--earth);
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--terracotta); }

/* ── PRODUCT CARD ── */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px var(--shadow); }

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--warm-white);
}
.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--warm-white), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.product-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth-light);
  margin-bottom: 0.3rem;
}
.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--earth);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  flex: 1;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price {
  display: flex;
  flex-direction: column;
}
.product-price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--terracotta);
}
.product-price-old {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.add-to-cart-btn {
  background: var(--earth);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.add-to-cart-btn:hover { background: var(--terracotta); transform: scale(1.1); }
.add-to-cart-btn.added { background: var(--sage); }

/* ── FOOTER ── */
footer {
  background: var(--earth);
  color: var(--cream);
  padding: 4rem 5vw 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.footer-brand-tagline {
  font-size: 0.82rem;
  color: var(--earth-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(250,246,239,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250,246,239,0.5);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--earth);
  color: var(--cream);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; }

/* ── MOBILE ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--cream); display: block; border-radius: 2px; transition: all 0.3s; }

@media (max-width: 768px) {
  .nav-logo-img {
    height: 40px !important;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--earth);
    padding: 1.5rem 5vw;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .nav-logo-img {
    height: 34px !important;
  }
}

/* ── LIGHT GREEN BACKGROUND CONTRAST OVERRIDES ── */

nav {
  background: var(--earth) !important;
}
.nav-links a {
  color: var(--text-dark) !important;
  opacity: 0.9;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--terracotta) !important;
  opacity: 1;
}
.hamburger span {
  background: var(--text-dark) !important;
}
.cart-count {
  background: var(--text-dark) !important;
  color: var(--earth) !important;
}

footer {
  background: var(--earth) !important;
  color: var(--text-dark) !important;
}
.footer-brand-name {
  color: var(--text-dark) !important;
}
.footer-brand-tagline {
  color: var(--text-mid) !important;
}
.footer-col h4 {
  color: var(--terracotta) !important;
}
.footer-col ul li a {
  color: var(--text-mid) !important;
}
.footer-col ul li a:hover {
  color: var(--terracotta) !important;
}
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--text-mid) !important;
}

.hero {
  background: var(--earth) !important;
}
.hero-title {
  color: var(--text-dark) !important;
}
.hero-title em {
  color: var(--terracotta) !important;
}
.hero-subtitle {
  color: var(--text-mid) !important;
}
.hero-eyebrow {
  background: rgba(210, 39, 1, 0.1) !important;
  border: 1px solid rgba(210, 39, 1, 0.25) !important;
  color: var(--terracotta) !important;
}
.hero .btn-outline {
  color: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
}
.hero .btn-outline:hover {
  background: var(--text-dark) !important;
  color: #fff !important;
}
.satellite-label {
  color: var(--text-dark) !important;
}
.ladoo-satellite {
  background: rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.story-banner {
  background: var(--earth) !important;
}
.story-text .section-title {
  color: var(--text-dark) !important;
}
.story-text .section-title em {
  color: var(--terracotta) !important;
}
.story-body {
  color: var(--text-mid) !important;
}
.stat-box {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.stat-number {
  color: var(--terracotta) !important;
}
.stat-label {
  color: var(--text-mid) !important;
}
.story-badge {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.story-badge:first-child {
  background: linear-gradient(135deg, rgba(210, 39, 1, 0.1), rgba(0, 0, 0, 0.04)) !important;
}
.story-badge-title {
  color: var(--text-dark) !important;
}
.story-badge-desc {
  color: var(--text-mid) !important;
}

.about-hero {
  background: var(--earth) !important;
}
.ah-title {
  color: var(--text-dark) !important;
}
.ah-title em {
  color: var(--terracotta) !important;
}
.ah-body {
  color: var(--text-mid) !important;
}
.av-card {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.av-card:first-child {
  background: linear-gradient(135deg, rgba(210, 39, 1, 0.1), rgba(0, 0, 0, 0.04)) !important;
}
.av-title {
  color: var(--text-dark) !important;
}
.av-desc {
  color: var(--text-mid) !important;
}

.catalog-hero {
  background: var(--earth) !important;
}
.catalog-hero .section-title {
  color: var(--text-dark) !important;
}
.catalog-hero .section-title em {
  color: var(--terracotta) !important;
}
.catalog-hero p {
  color: var(--text-mid) !important;
}

.cart-hero {
  background: var(--earth) !important;
}
.cart-hero .section-title {
  color: var(--text-dark) !important;
}

.toast {
  background: var(--text-dark) !important;
  color: var(--earth) !important;
}

