/* Saini Communication – plain CSS (no build step needed) */

:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --border: #e2e8f0;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --on-brand: #f8fafc;
  --brand: #00626a;
  --brand-dark: #004351;
  --brand-2: #f3680f;
  --surface: #f4f6f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--foreground);
}

main { flex: 1; width: 100%; }

a { color: inherit; text-decoration: none; }
img { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { height: 52px; width: auto; }
.nav { display: flex; gap: 20px; font-weight: 600; color: var(--brand); }
.nav a:hover { text-decoration: underline; }

/* Banner */
.banner {
  margin: 20px 0;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: var(--on-brand);
}
.banner h1 { margin: 0; font-size: 1.8rem; font-weight: 800; }
.banner p { margin: 6px 0 0; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  font-weight: 600;
  font: inherit;
  cursor: pointer;
}
.chip.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background);
  font: inherit;
}
.count { margin: 12px 0; color: var(--muted-foreground); font-size: .9rem; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.card {
  position: relative;
  background: var(--background);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.card h3 { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-2);
  color: var(--on-brand);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.rating { color: var(--brand); font-weight: 700; font-size: .85rem; }
.price b { font-size: 1.1rem; }
.price s { color: var(--muted-foreground); font-size: .85rem; }
.emi { font-size: .78rem; color: var(--brand); }

/* Product page */
.crumbs { margin: 16px 0; font-size: .85rem; color: var(--muted-foreground); }
.crumbs a { color: var(--brand); }
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--background);
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 40px;
}
.pdp-img img { width: 100%; height: auto; border-radius: 10px; }
.pdp-title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.pdp-price { margin: 12px 0 4px; }
.pdp-price b { font-size: 1.8rem; }
.pdp-price s { color: var(--muted-foreground); font-size: .85rem; }
.save { color: var(--brand-2); font-weight: 700; }
.muted { color: var(--muted-foreground); font-size: .85rem; }
.pdp h2 { margin-top: 20px; font-weight: 700; }
.specs { list-style: disc; padding-left: 20px; margin: 8px 0 24px; line-height: 1.8; }
.buy {
  display: block;
  text-align: center;
  background: var(--brand-2);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px;
  border-radius: 10px;
}
.buy:hover { filter: brightness(1.08); }

/* Product not found */
.notfound {
  background: var(--background);
  border-radius: 14px;
  padding: 40px 24px;
  margin-bottom: 40px;
  text-align: center;
}
.notfound a { color: var(--brand); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--brand);
  color: var(--on-brand);
  padding: 20px 0;
  font-size: .85rem;
  text-align: center;
}

/* Phones */
@media (max-width: 768px) {
  .pdp { grid-template-columns: 1fr; padding: 16px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav { display: none; }
}
