/* ==========================================================
   ANNAPOORNA HOME MADE FOODS — Stylesheet
   Warm, traditional, refined: deep forest green + gold + saffron
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --forest: #0d3d2e;
  --forest-deep: #082921;
  --forest-light: #1a5641;
  --gold: #c9982f;
  --gold-soft: #d4a94a;
  --gold-pale: #ead9a4;
  --saffron: #d56b1f;
  --saffron-light: #e8742c;
  --cream: #faf3e0;
  --cream-light: #fdf9eb;
  --ivory: #fffdf7;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: rgba(13, 61, 46, 0.12);
  --line-gold: rgba(201, 152, 47, 0.3);

  --display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(13, 61, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 61, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(13, 61, 46, 0.18);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ============ KOLAM PATTERN BG (decorative) ============ */
.kolam-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20px 20px, var(--gold) 1.5px, transparent 1.5px),
    radial-gradient(circle at 60px 60px, var(--gold) 1.5px, transparent 1.5px);
  background-size: 80px 80px;
  z-index: 0;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-logo {
  height: 80px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-signboard {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--forest-deep);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 0 var(--saffron);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--saffron); }
.cart-btn:active { transform: translateY(0); box-shadow: 0 2px 0 var(--saffron); }
.cart-count {
  background: var(--forest-deep);
  color: var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  min-width: 22px;
  text-align: center;
}

.mobile-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  padding: 120px 32px 160px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}
.hero p.lede {
  font-size: 19px;
  max-width: 560px;
  color: rgba(250, 243, 224, 0.88);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 0 var(--saffron);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--saffron); }
.btn-secondary {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary:hover { background: var(--gold); color: var(--forest-deep); }

/* hero visual: stacked cards */
.hero-visual {
  position: relative;
  height: 640px;
}
.hero-card {
  position: absolute;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  transition: transform 0.4s ease;
}
.hero-card-1 {
  top: 20px; right: 30px;
  width: 360px; height: 440px;
  transform: rotate(5deg);
  z-index: 3;
}
.hero-card-2 {
  bottom: 0; left: 0;
  width: 280px; height: 340px;
  transform: rotate(-7deg);
  z-index: 2;
}
.hero-card-3 {
  top: 80px; left: 30px;
  width: 260px; height: 310px;
  transform: rotate(-3deg);
  z-index: 1;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback when image fails to load */
.hero-card.hero-fallback {
  background: linear-gradient(135deg, var(--cream) 0%, #fbe8c4 50%, #f1d488 100%);
  display: grid;
  place-items: center;
}
.hero-card.hero-fallback img { display: none; }
.hero-card.hero-fallback::after {
  content: attr(data-label);
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  color: var(--gold);
  font-weight: 600;
}
.hero-badge {
  position: absolute;
  bottom: 30px; right: 0px;
  transform: rotate(-8deg);
  background: var(--saffron);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 50%;
  width: 130px; height: 130px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  z-index: 5;
  border: 2px dashed var(--cream);
}

/* hero decorative pattern */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--forest-light) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -50px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

/* trust strip */
.trust-strip {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 20px 32px;
  border-top: 1px solid var(--gold-soft);
}
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.trust-item .icon {
  color: var(--gold);
  font-size: 20px;
}

/* ============ SECTION GENERAL ============ */
section { padding: 96px 32px; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-bottom: 20px;
}
.section-title .accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}
.section-lede {
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
}
.divider-ornament .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider-ornament .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: rotate(45deg);
}

/* ============ ABOUT ============ */
.about { background: var(--cream-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 44px;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.about-image-stack {
  position: relative;
  aspect-ratio: 1;
}
.about-image-stack .frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  transform: rotate(-3deg);
}
.about-image-stack .photo {
  position: absolute;
  inset: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--forest);
}
.about-image-stack .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============ PRODUCTS ============ */
.products-section { background: var(--ivory); }
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  background: var(--ivory);
}
.filter-chip:hover { border-color: var(--gold); color: var(--forest); }
.filter-chip.active {
  background: var(--forest);
  color: var(--gold);
  border-color: var(--forest);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-pale);
}
.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.img-fallback-content {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: linear-gradient(135deg, var(--cream) 0%, #fbe8c4 100%);
}
.product-image.img-fallback .img-fallback-content { display: grid; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--saffron);
  color: var(--ivory);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}
.veg-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px; height: 22px;
  border: 2px solid #2d8a3e;
  background: var(--ivory);
  display: grid;
  place-items: center;
  border-radius: 3px;
}
.veg-mark::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2d8a3e;
}

.product-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 10px;
}
.product-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 4px;
}
.product-tamil {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  font-style: italic;
}
.product-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price {
  display: flex;
  flex-direction: column;
}
.price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  color: var(--forest);
  line-height: 1;
}
.price-unit {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.add-btn {
  background: var(--forest);
  color: var(--gold);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.add-btn:hover { background: var(--gold); color: var(--forest); }
.add-btn.added { background: var(--saffron); color: var(--ivory); }

/* ============ HOW IT WORKS ============ */
.how-it-works { background: var(--forest); color: var(--cream); }
.how-it-works .section-title { color: var(--cream); }
.how-it-works .section-title .accent { color: var(--gold); }
.how-it-works .section-eyebrow { color: var(--gold); }
.how-it-works .section-lede { color: rgba(250, 243, 224, 0.8); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step {
  position: relative;
  padding-top: 24px;
}
.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 15px;
  color: rgba(250, 243, 224, 0.75);
  line-height: 1.6;
}

/* ============ CONTACT ============ */
.contact { background: var(--cream-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--ivory);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}
.contact-item .icon {
  width: 40px; height: 40px;
  background: var(--forest);
  color: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-item-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 16px;
  color: var(--forest);
  font-weight: 500;
  line-height: 1.5;
}

.gst-badge {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--forest);
  color: var(--gold);
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.contact-form {
  background: var(--ivory);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-gold);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(201, 152, 47, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 64px 32px 32px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand .brand-name {
  font-size: 32px;
  margin-bottom: 8px;
}
.footer-logo {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(250, 243, 224, 0.7);
  max-width: 360px;
  line-height: 1.7;
  margin-top: 16px;
}
.footer-col h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(250, 243, 224, 0.75);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 152, 47, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(250, 243, 224, 0.5);
  letter-spacing: 0.05em;
}

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 41, 33, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(440px, 100%);
  height: 100vh;
  background: var(--ivory);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.5, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(13, 61, 46, 0.2);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--forest);
  color: var(--cream);
}
.cart-header h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--gold);
}
.close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(201, 152, 47, 0.4);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: all 0.2s ease;
}
.close-btn:hover { background: var(--gold); color: var(--forest); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px;
}
.cart-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}
.cart-empty .icon {
  font-size: 64px;
  color: var(--gold-pale);
  margin-bottom: 16px;
  font-family: var(--display);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.cart-item-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--forest);
  margin-bottom: 2px;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: var(--cream-light);
  border-radius: 999px;
  padding: 2px;
  width: fit-content;
}
.qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--forest);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.qty-btn:hover { background: var(--gold); }
.qty-display {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.cart-item-price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--forest);
  text-align: right;
}
.cart-item-remove {
  display: block;
  font-size: 11px;
  color: var(--saffron);
  margin-top: 4px;
  text-align: right;
  cursor: pointer;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-footer {
  padding: 24px 28px;
  border-top: 2px solid var(--gold);
  background: var(--cream-light);
}
.cart-totals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--display);
}
.cart-totals .label {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--body);
  font-weight: 600;
}
.cart-totals .value {
  font-size: 28px;
  font-weight: 600;
  color: var(--forest);
}
.checkout-btn {
  width: 100%;
  background: var(--forest);
  color: var(--gold);
  padding: 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 5px 0 var(--saffron);
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--saffron); }
.checkout-btn:disabled {
  background: var(--muted);
  color: var(--ivory);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ============ CHECKOUT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 41, 33, 0.7);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--gold-pale);
  position: relative;
}
.modal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  color: var(--forest);
  margin-bottom: 8px;
}
.modal h2 .accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.modal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--cream-light);
  color: var(--forest);
  border: none;
}
.modal .close-btn:hover { background: var(--saffron); color: var(--ivory); }

.order-summary {
  background: var(--cream-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 3px solid var(--gold);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--ink-soft);
}
.order-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--gold-pale);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--forest);
}

.success-message {
  text-align: center;
  padding: 24px 16px;
}
.success-icon {
  width: 80px; height: 80px;
  background: var(--gold);
  color: var(--forest);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 40px;
  font-family: var(--display);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--forest);
  color: var(--gold);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-soft);
  z-index: 400;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============ ADMIN PAGE ============ */
.admin-body { background: var(--cream-light); min-height: 100vh; }
.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.admin-title h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  color: var(--forest);
}
.admin-title h1 .accent { font-style: italic; color: var(--gold); font-weight: 600; }
.admin-title p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--forest);
}
.login-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--gold-pale);
}
.login-card h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 8px;
}
.login-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 32px; }
.login-card .form-group { text-align: left; }

.admin-product-table {
  background: var(--ivory);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 80px auto;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.admin-product-row:last-child { border-bottom: none; }
.admin-product-row.header {
  background: var(--forest);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.admin-product-row img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.admin-row-name { font-weight: 600; color: var(--forest); }
.admin-row-meta { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.2s;
}
.icon-btn.edit { background: var(--cream-light); color: var(--forest); }
.icon-btn.edit:hover { background: var(--gold); }
.icon-btn.delete { background: rgba(213, 107, 31, 0.1); color: var(--saffron); }
.icon-btn.delete:hover { background: var(--saffron); color: var(--ivory); }

.json-output {
  background: var(--forest-deep);
  color: var(--gold);
  padding: 20px;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  max-height: 300px;
  overflow: auto;
  margin-top: 16px;
  white-space: pre;
}

.admin-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.admin-empty .icon { font-size: 48px; color: var(--gold-pale); margin-bottom: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-toggle { display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold); }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-deep);
    padding: 24px 32px;
    border-top: 1px solid var(--gold);
    align-items: flex-start;
    gap: 18px;
  }
  .hero { min-height: auto; padding: 80px 24px 100px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 520px; max-width: 520px; margin: 0 auto; }
  .hero-card-1 { width: 300px; height: 360px; top: 0; right: 10px; }
  .hero-card-2 { width: 240px; height: 290px; bottom: 0; left: 0; }
  .hero-card-3 { width: 220px; height: 260px; top: 60px; left: 20px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-product-row { grid-template-columns: 48px 1fr auto; }
  .admin-product-row .col-cat, .admin-product-row .col-price, .admin-product-row .col-stock { display: none; }
}

@media (max-width: 560px) {
  .header-inner { padding: 14px 20px; }
  .brand-logo { height: 56px; max-width: 220px; }
  .footer-logo { height: 64px; max-width: 260px; }
  section { padding: 64px 20px; }
  .hero { padding: 56px 20px 80px; }
  .modal { padding: 28px 24px; }
  .contact-form { padding: 28px 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { height: 440px; }
  .hero-card-1 { width: 240px; height: 290px; }
  .hero-card-2 { width: 200px; height: 240px; }
  .hero-card-3 { width: 180px; height: 220px; }
  .hero-badge { width: 100px; height: 100px; font-size: 12px; }
  .brand-tag { display: none; }
}

/* ============ UTILITIES ============ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }
