/* =====================================================================
   styles.css  —  Sri Kanaka Durga Traders
   Traditional, mobile-first theme (maroon / gold / saffron).
   ===================================================================== */

:root {
  --maroon: #7a1f1f;
  --maroon-dark: #5c1414;
  --gold: #c8992e;
  --gold-light: #e8c766;
  --saffron: #e8871e;
  --cream: #fff8ee;
  --cream-2: #f6ecdb;
  --ink: #2a2320;
  --muted: #6b5d52;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(90, 40, 10, 0.10);
  --shadow-lg: 0 12px 34px rgba(90, 40, 10, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

a { color: var(--maroon); }

h1, h2, h3, h4 { font-family: "Georgia", "Times New Roman", serif; line-height: 1.2; }

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

/* ---------- header --------------------------------------------------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { font-size: 1.7rem; }
.brand-text { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; letter-spacing: .3px; }
.nav { display: flex; gap: 6px; }
.nav a {
  color: #fdeccb;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .96rem;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.nav-toggle {
  display: none;
  background: transparent; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: flex; border: 1.5px solid var(--gold-light); border-radius: 999px; overflow: hidden;
}
.lang-toggle button {
  background: transparent; color: #fdeccb; border: 0; cursor: pointer;
  padding: 5px 12px; font-size: .82rem; transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--gold); color: #3a2600; font-weight: 700; }

/* ---------- hero ----------------------------------------------------- */

.hero {
  background:
    linear-gradient(rgba(92,20,20,.72), rgba(92,20,20,.82)),
    radial-gradient(circle at 20% 20%, var(--saffron), transparent 40%),
    var(--maroon);
  color: #fff;
  text-align: center;
  padding: 66px 0 60px;
  border-bottom: 4px solid var(--gold);
}
.hero h1 { font-size: 2.3rem; margin: 0 0 10px; }
.hero .tagline { font-size: 1.15rem; color: var(--gold-light); margin: 0 0 26px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons -------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #3a2600; }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: #fff; border-color: var(--gold-light); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-whatsapp { background: var(--whatsapp); color: #063d2b; width: 100%; text-align: center; }
.btn-whatsapp:hover { background: #1eb85a; }
.btn-disabled { background: #ddd; color: #888; width: 100%; text-align: center; cursor: not-allowed; }

/* ---------- sections ------------------------------------------------- */

.section { padding: 50px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: 1.8rem; color: var(--maroon); }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 34px; }

.divider {
  width: 90px; height: 3px; margin: 10px auto 30px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- category chips ------------------------------------------ */

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.chip {
  border: 1.5px solid var(--gold);
  background: #fff;
  color: var(--maroon);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--cream-2); }
.chip.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- product grid -------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #efe2cd;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img img.img-missing { object-fit: contain; }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .72rem; padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.badge.out { background: #b00020; color: #fff; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-size: 1.08rem; color: var(--maroon); }
.card-desc { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 6px; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--saffron); }
.unit { font-size: .8rem; color: var(--muted); }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* ---------- feature strip ------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff; border-radius: var(--radius); padding: 24px; text-align: center;
  border: 1px solid #efe2cd; box-shadow: var(--shadow);
}
.feature .ico { font-size: 2rem; }
.feature h3 { margin: 10px 0 6px; color: var(--maroon); font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

.bg-cream { background: var(--cream-2); }

/* ---------- about / contact ----------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid #efe2cd;
}
.info-card h3 { color: var(--maroon); margin-top: 0; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed #e7d9c2; display: flex; gap: 12px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { font-size: 1.25rem; }

/* ---------- footer --------------------------------------------------- */

#site-footer {
  background: var(--maroon-dark);
  color: #f4e3c6;
  margin-top: 40px;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 36px 0 20px;
}
#site-footer h4 { color: var(--gold-light); margin: 0 0 8px; }
#site-footer p { margin: 3px 0; font-size: .9rem; }
#site-footer .social a { color: var(--gold-light); margin-right: 12px; text-decoration: none; }
.copyright {
  text-align: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #d9c3a0;
}

/* ---------- floating WhatsApp button -------------------------------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--whatsapp); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- responsive ---------------------------------------------- */

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: var(--maroon-dark);
    padding: 8px 16px 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.7rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
