/* =============================================================
   Sai Agencies — light retail theme (Indian e-commerce style)
   Inspired by common patterns on Croma, Reliance Digital, Vijay
   Sales, Poorvika, Sangeetha: white bg, deep-blue trust header,
   orange/red price + CTA accents, green savings, subtle borders.
   ============================================================= */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-soft: #dbeafe;
  --accent: #ea580c;
  --accent-soft: #fff7ed;
  --sale: #dc2626;
  --savings: #16a34a;
  --gold: #f59e0b;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
body.lang-te { font-family: 'Noto Sans Telugu', 'DM Sans', sans-serif; }
body.lang-te h1, body.lang-te h2, body.lang-te h3, body.lang-te h4 {
  font-family: 'Noto Sans Telugu', 'Sora', sans-serif;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.bg-grid { display: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 780px; }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.logo-link { text-decoration: none; color: inherit; flex-shrink: 0; }
.logo {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.35rem;
  color: var(--primary); letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.logo .dot { color: var(--accent); }
.logo small {
  display: block; font-size: 0.65rem; color: var(--text-muted);
  font-weight: 500; letter-spacing: 1px; margin-top: -2px;
}
.nav-center { flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  padding: 0.4rem 0; transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }

.search-wrap { position: relative; flex: 1 1 320px; max-width: 520px; }
#search-input {
  width: 100%; padding: 0.65rem 1rem;
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid transparent;
  border-radius: 50px;
  font-family: inherit; font-size: 0.9rem; outline: none;
  transition: all 0.15s;
}
#search-input::placeholder { color: var(--text-muted); }
#search-input:focus {
  background: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); max-height: 440px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.suggest-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.85rem; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item img {
  width: 44px; height: 44px; object-fit: contain;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 3px;
}
.suggest-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.suggest-meta { font-size: 0.78rem; color: var(--text-muted); }
.suggest-item:hover, .suggest-item.active { background: var(--primary-soft); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 3px;
}
.lang-btn {
  padding: 0.35rem 0.8rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); background: transparent;
  border: none; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.lang-btn.active { color: #fff; background: var(--primary); }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 0.55rem 1.2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.85rem;
  text-decoration: none; transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #c2410c; color: #fff; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border-radius: 50px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.15s;
}
.btn-primary, .btn-submit {
  background: var(--accent); color: #fff;
}
.btn-primary:hover, .btn-submit:hover {
  background: #c2410c; color: #fff; box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 50px;
  padding: 0.45rem 1rem; cursor: pointer; font-family: inherit; font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- App shell ---------- */
#app { padding-top: 5rem; min-height: calc(100vh - 200px); }
.loading { padding: 6rem 2rem; text-align: center; color: var(--text-muted); }
.page { padding: 1.5rem 0 5rem; }
.back-link {
  display: inline-block; color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; margin-bottom: 0.8rem; font-weight: 500;
}
.back-link:hover { color: var(--primary); }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--text); margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 580px; margin: 0 auto; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.25rem; border-bottom: 2px solid var(--border); padding-bottom: 0.75rem;
}
.section-header-row h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 800;
}
.view-all { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.view-all:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  padding: 0.35rem 0.9rem; border-radius: 50px;
  font-size: 0.78rem; color: var(--accent); font-weight: 700;
  margin-bottom: 1rem;
}
.hero-tag .pulse {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1rem; color: var(--text);
}
.hero h1 .highlight { color: var(--accent); }
.hero p {
  color: var(--text-muted); font-size: 1.05rem;
  max-width: 520px; margin-bottom: 1.5rem;
}
.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 460px;
}
.icon-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; justify-content: space-between; }
.icon-box {
  flex: 1; aspect-ratio: 1; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; background: var(--surface-2); border: 1px solid var(--border);
}
.icon-box.ac { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.icon-box.tv { background: linear-gradient(135deg, #fed7aa, #fff7ed); }
.icon-box.phone { background: linear-gradient(135deg, #fde68a, #fffbeb); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat {
  text-align: center; padding: 0.8rem 0.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .num {
  font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--primary);
}
.stat .label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---------- Categories ---------- */
.categories { padding: 3rem 0 2rem; }
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
}
.cat-tile {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
  text-decoration: none; color: var(--text);
  transition: all 0.15s;
}
.cat-tile:hover {
  transform: translateY(-3px); border-color: var(--primary);
  box-shadow: var(--shadow); color: var(--primary);
}
.cat-icon { font-size: 2.5rem; margin-bottom: 0.4rem; }
.cat-name { font-weight: 700; font-size: 0.92rem; }

/* ---------- Product card ---------- */
.featured { padding: 2.5rem 0; background: var(--surface); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0;
  position: relative; overflow: hidden;
  transition: all 0.15s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow); transform: translateY(-2px);
}
.product-card .badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-block; padding: 0.25rem 0.65rem;
  background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; border-radius: 4px;
}
.product-media {
  display: block; padding: 1rem; background: #fff;
  aspect-ratio: 4 / 3; overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.2s;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body {
  padding: 0.75rem 1rem 1rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; flex: 1;
}
.product-brand {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  margin-bottom: 0.25rem;
}
.product-body h3 {
  font-family: inherit;
  font-size: 0.92rem; font-weight: 600; line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-body h3 a { color: var(--text); text-decoration: none; }
.product-body h3 a:hover { color: var(--primary); }
.product-price {
  display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.product-price .price {
  font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 800;
  color: var(--text);
}
.mrp {
  color: var(--text-muted); text-decoration: line-through;
  font-size: 0.82rem;
}
.off {
  color: var(--savings); font-weight: 700; font-size: 0.8rem;
}
.emi {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem;
}
.product-actions {
  display: flex; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem;
}
.product-actions .btn-primary { flex: 1; padding: 0.45rem 0.8rem; font-size: 0.82rem; }
.btn-compare {
  flex: 0 0 auto; padding: 0.45rem 0.7rem; font-size: 0.75rem; font-weight: 600;
  background: #fff; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 50px;
  cursor: pointer; font-family: inherit; transition: all 0.15s;
  white-space: nowrap;
}
.btn-compare:hover { color: var(--primary); border-color: var(--primary); }
.btn-compare.active {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Filters & chips ---------- */
.filters {
  display: flex; flex-direction: column; gap: 0.65rem;
  margin: 0 0 1.5rem; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-group { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.filter-label {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-right: 0.4rem;
}
.chip {
  padding: 0.35rem 0.9rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  text-decoration: none; transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.empty {
  text-align: center; padding: 3rem; color: var(--text-muted); font-size: 1rem;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- PDP ---------- */
.pdp { padding: 1.5rem 0 5rem; }
.pdp-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.pdp-media {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.pdp-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-info h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 800;
  margin: 0.2rem 0 0.8rem; line-height: 1.25;
}
.badge-row { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.badge-row .badge {
  position: static; padding: 0.25rem 0.7rem; font-size: 0.72rem;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent);
}
.pdp-desc { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.pdp-price {
  display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.3rem;
  padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--radius);
}
.pdp-price .price {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--sale);
}
.pdp-price .mrp { font-size: 1rem; }
.pdp-price .off { font-size: 0.95rem; }
.stock { margin: 0.8rem 0 1rem; font-size: 0.92rem; font-weight: 600; }
.stock.ok { color: var(--savings); }
.stock.out { color: var(--sale); }
.pdp-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pdp-perks {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
  font-size: 0.88rem; color: var(--text);
}
.pdp-perks > div {
  padding: 0.7rem 0.9rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-weight: 500;
}
.pdp-specs { margin-top: 2.5rem; }
.pdp-specs h3 {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.3rem;
  margin-bottom: 1rem;
}
.pdp-specs table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.pdp-specs th, .pdp-specs td {
  text-align: left; padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.pdp-specs tr:last-child th, .pdp-specs tr:last-child td { border-bottom: none; }
.pdp-specs th {
  color: var(--text-muted); font-weight: 500; width: 35%; background: var(--surface);
}
.pdp-similar { margin-top: 3rem; }

/* ---------- Compare ---------- */
.compare-scroll { overflow-x: auto; margin: 0 -1rem; padding: 0 1rem; }
.compare-table {
  width: 100%; min-width: 640px; border-collapse: collapse;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border); vertical-align: top; font-size: 0.9rem;
}
.compare-table thead th { background: var(--surface); }
.compare-table tbody th {
  color: var(--text-muted); font-weight: 500; width: 18%; background: var(--surface);
}
.cmp-media {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem; margin-bottom: 0.6rem; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.cmp-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cmp-brand {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.cmp-name {
  color: var(--text); text-decoration: none; font-weight: 700;
  font-size: 0.9rem; display: block; margin: 0.25rem 0 0.5rem; line-height: 1.3;
}
.cmp-name:hover { color: var(--primary); }

.compare-bar {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 150;
  background: var(--primary); color: #fff;
  border-radius: 50px; padding: 0.6rem 0.7rem 0.6rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9rem;
}
.compare-bar .btn-primary { padding: 0.45rem 1rem; font-size: 0.85rem; }
.compare-bar .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.3);
}
.compare-bar .btn-ghost:hover { color: #fff; border-color: #fff; }
.compare-bar-actions { display: flex; gap: 0.4rem; }

/* ---------- Offers ---------- */
.offers { padding: 2.5rem 0; }
.offer-pills {
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
}
.pill {
  background: var(--accent-soft); border: 1px solid #fed7aa;
  padding: 0.55rem 1.1rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.offer-pill .emoji { font-size: 1rem; }
.offer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
}
.offer-card {
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: all 0.15s;
}
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-icon { font-size: 1.8rem; }
.offer-card h3 {
  font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.offer-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.offer-valid {
  font-size: 0.78rem; color: var(--accent); font-weight: 600;
  background: var(--accent-soft); padding: 0.3rem 0.65rem;
  border-radius: 4px; display: inline-block; width: fit-content;
}

/* ---------- Why us ---------- */
.why-us { padding: 2.5rem 0; background: var(--surface); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.why-card {
  padding: 1.5rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.15s;
}
.why-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.why-card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.why-card h4 {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: 0.35rem;
}
.why-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Contact / Store ---------- */
.contact-grid, .store-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.contact-item {
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1rem; font-size: 0.95rem;
}
.contact-item .ci-icon {
  width: 40px; height: 40px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item a { color: var(--primary); font-weight: 600; }
.contact-form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block; font-size: 0.8rem; color: var(--text); font-weight: 600;
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.7rem 0.95rem;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit;
  font-size: 0.92rem; outline: none; transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-submit { width: 100%; margin-top: 0.4rem; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 4 / 3;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- WhatsApp FAB ---------- */
.fab-whatsapp {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 140;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 24px rgba(37,211,102,0.4);
  transition: transform 0.15s;
}
.fab-whatsapp:hover { transform: scale(1.1); color: #fff; }

/* ---------- Footer ---------- */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem;
  padding: 3rem 1.25rem 2rem; max-width: 1280px; margin: 0 auto;
  text-align: left;
}
.footer-grid h5 {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.82rem;
  margin-bottom: 0.9rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text);
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-about { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.5rem; }
.footer-contact li { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom {
  padding: 1rem 1.25rem; border-top: 1px solid var(--border);
  max-width: 1280px; margin: 0 auto;
}
.footer-bottom p {
  color: var(--text-muted); font-size: 0.8rem; text-align: center;
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav { flex-wrap: wrap; gap: 0.6rem; }
  .nav-center { display: none; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: 100%; }
  #app { padding-top: 7.5rem; }
  .hero-grid, .pdp-grid, .contact-grid, .store-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 2rem 0 1.5rem; }
  .hero-card { padding: 1.25rem; }
  .icon-box { font-size: 1.6rem; }
  .stat .num { font-size: 1.15rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .product-media { padding: 0.7rem; }
  .product-body { padding: 0.65rem 0.8rem 0.85rem; }
  .product-body h3 { font-size: 0.85rem; }
  .product-price .price { font-size: 0.95rem; }
  .product-actions { flex-direction: column; }
  .btn-compare { width: 100%; }
  .pdp-perks { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid ul { align-items: center; }
  .fab-whatsapp { bottom: 5.5rem; }
  .compare-bar { left: 1rem; right: 1rem; transform: none; }
}

/* ---------- Store locator extras ---------- */
.store-cta {
  display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem;
}
.map-wrap { position: relative; }
.map-link {
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  background: #fff; color: var(--primary); text-decoration: none;
  font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.7rem;
  border: 1px solid var(--border); border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.map-link:hover { background: var(--primary-soft); }

/* ---------- Coming soon ---------- */
.coming-soon {
  text-align: center; padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cs-icon { font-size: 4rem; margin-bottom: 1rem; }
.coming-soon h2 {
  font-family: 'Sora', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; margin-bottom: 0.75rem; color: var(--text);
}
.coming-soon p {
  color: var(--text-muted); font-size: 1.02rem; line-height: 1.6;
  max-width: 560px; margin: 0 auto 1.5rem;
}
.cs-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

/* Category tile: "coming soon" variant */
.cat-tile-soon { position: relative; opacity: 0.95; }
.cat-tile-soon .cat-icon { filter: grayscale(0.3); }
.soon-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 4px;
}

/* Nav link "soon" pill */
.pill-soon {
  display: inline-block; vertical-align: middle;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem; border-radius: 50px;
  border: 1px solid #fed7aa; margin-left: 0.25rem;
}

/* ---------- Mobile nav: hamburger + drawer ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border);
  cursor: pointer; padding: 0; margin-right: 0.2rem;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.2s, opacity 0.15s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---------- Active / tap feedback ---------- */
.btn-primary, .btn-secondary, .btn-submit, .nav-cta,
.btn-compare, .btn-ghost, .chip, .cat-tile, .product-card,
.lang-btn, .pill, .offer-card, .why-card, .nav-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:active, .btn-secondary:active, .btn-submit:active, .nav-cta:active,
.btn-compare:active, .btn-ghost:active {
  transform: scale(0.97);
}
.cat-tile:active, .product-card:active, .offer-card:active, .why-card:active {
  transform: scale(0.99);
}

/* ---------- Mobile nav drawer + iOS zoom fix ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  /* The drawer */
  .nav-center {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 110;
    width: 82%; max-width: 320px;
    background: #fff;
    border-right: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(15,23,42,0.18);
    padding: 5rem 1.25rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    display: block !important;
  }
  body.nav-open .nav-center { transform: translateX(0); }

  .nav-links {
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.95rem 0.25rem; font-size: 1rem;
    min-height: 48px;
  }

  /* Keep the body from scrolling under the drawer */
  body.nav-open { overflow: hidden; }

  /* Fix iOS focus-zoom: 16px minimum on inputs */
  #search-input,
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
}

/* ---------- Icon buttons + search overlay + bottom bar ---------- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: background 0.15s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn:active { transform: scale(0.95); }

.search-close {
  display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none; font-size: 1.1rem; color: var(--text-muted);
  cursor: pointer;
}
.search-close:hover { color: var(--text); background: var(--surface-2); }

/* Desktop: always-visible search, no search icon */
@media (min-width: 981px) {
  .search-open-btn { display: none; }
}

/* Mobile nav header / drawer restyle */
.drawer-header { display: none; }
.nav-section {
  display: none;
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
  padding: 0.9rem 0.25rem 0.35rem;
  border-bottom: none !important;
}
.nav-emoji { display: none; font-size: 1.25rem; width: 1.8rem; text-align: center; }

/* Bottom tab bar — mobile only */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 130;
  display: none;
  justify-content: space-around; align-items: stretch;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15,23,42,0.06);
  padding: 0.25rem 0 env(safe-area-inset-bottom, 0);
}
.bb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 0.35rem 0.2rem;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.68rem; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: inherit;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.bb-item .bb-icon { width: 22px; height: 22px; }
.bb-item:hover, .bb-item:active { color: var(--primary); }
.bb-item.bb-whatsapp { color: #25D366; }
.bb-item.bb-whatsapp:active { color: #1da851; }
.bb-item.active { color: var(--primary); }
.bb-item.bb-whatsapp.active { color: #25D366; }

/* ---------- Mobile (<=980): search-as-overlay + bottom bar + drawer polish ---------- */
@media (max-width: 980px) {
  /* Reclaim nav space: search icon in nav-right, search bar becomes an overlay */
  .search-wrap {
    position: fixed; top: 0; left: 0; right: 0; z-index: 120;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    transform: translateY(-110%);
    transition: transform 0.2s ease;
    display: block; flex: none; max-width: none;
    box-shadow: var(--shadow);
  }
  body.search-open .search-wrap { transform: translateY(0); }
  .search-wrap #search-input { padding-right: 3rem; }
  .search-close { display: flex; align-items: center; justify-content: center; right: 1rem; }
  .search-suggest {
    position: static; margin-top: 0.5rem; max-height: 60vh; border-radius: var(--radius);
  }

  /* Remove the old inline search from flex layout */
  #search-input { width: 100%; }

  /* Drawer polish */
  .drawer-header { display: block; padding: 0 0.25rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
  .drawer-header .logo { font-size: 1.25rem; }
  .drawer-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
  .nav-section { display: block; }
  .nav-emoji { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links li { border-bottom: none; }
  .nav-links li:not(.nav-section) a {
    padding: 0.7rem 0.25rem; font-size: 0.98rem; gap: 0.4rem;
    color: var(--text); font-weight: 500;
  }
  .nav-links li:not(.nav-section) a:hover { color: var(--primary); background: var(--primary-soft); border-radius: 8px; padding-left: 0.55rem; padding-right: 0.55rem; margin: 0 -0.3rem; }

  /* Show bottom bar, hide FAB */
  .bottom-bar { display: flex; }
  .fab-whatsapp { display: none; }

  /* Leave room for the bottom bar */
  #app { padding-bottom: 5.5rem; }
  footer { padding-bottom: 4.5rem; }
  .compare-bar { bottom: 4.5rem; }

  /* Tighten the top nav: bigger logo area, smaller extras */
  nav { padding: 0.55rem 0.75rem; gap: 0.5rem; }
  .logo { font-size: 1.1rem; }
  .logo small { display: none; }
  .lang-toggle { padding: 2px; }
  .lang-btn { padding: 0.3rem 0.55rem; font-size: 0.72rem; }
  .nav-toggle { margin-right: 0; }
  #app { padding-top: 4.2rem; }
}

/* ---------- Final cleanup: honour [hidden], restyle FAB, minimal mobile nav ---------- */

/* Make sure native [hidden] wins over layout rules */
[hidden] { display: none !important; }

/* FAB now renders an SVG WhatsApp glyph */
.fab-whatsapp svg { width: 28px; height: 28px; }

/* Hide the (removed) old hamburger rules' visibility just in case */
.nav-toggle { display: none !important; }

/* Drawer language toggle (lives inside the drawer header on mobile) */
.drawer-lang {
  display: none;
  margin-top: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.drawer-lang .lang-btn { padding: 0.45rem 1rem; font-size: 0.8rem; }

@media (max-width: 980px) {
  /* Top nav: ONLY logo (left) + search icon (right) */
  nav {
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
  }
  .logo-link { flex: 1 1 auto; min-width: 0; }
  .logo { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* The inline language toggle at the top is gone — it lives inside the drawer now */
  nav > .lang-toggle,
  nav > .nav-right { display: none; }

  /* Show the drawer language toggle */
  .drawer-lang { display: flex; width: fit-content; }
}
