/* ============================================================
   ILAYAN SHOPPEE  —  Clean 3-colour theme
   Dark slate  |  Blue CTA  |  White cards
   Red badge (discount only)  |  Green badge (rating only)
   ============================================================ */

:root {
  --dark:      #1e293b;   /* navbar, footer, hero — calm dark slate */
  --blue:      #1d4ed8;   /* primary CTA — trustworthy, action */
  --blue-hov:  #1a3fb0;   /* button hover */
  --red:       #dc2626;   /* discount badge — scarcity (small use only) */
  --green:     #16a34a;   /* rating badge  — safety (small use only)  */
  --page-bg:   #f1f5f9;   /* very light blue-grey — easy on eyes */
  --card-bg:   #ffffff;
  --text:      #1e293b;
  --text-muted:#64748b;
  --border:    #e2e8f0;
  --radius:    6px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--page-bg) !important;
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif !important;
  color: var(--text);
  font-size: 14px;
}

/* ── Navbar ── */
.site-navbar {
  background: var(--dark) !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.20) !important;
  min-height: 54px;
  padding: 0 !important;
}
.site-navbar .nav-link {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.10) !important;
}

/* ── Occasion Banner — calm teal, not aggressive red ── */
.occasion-banner {
  background: linear-gradient(90deg, #0f766e, #0891b2);
  padding: 10px 16px;
  text-align: center;
}
.occasion-banner .occ-label {
  display: inline-block;
  background: rgba(0,0,0,0.15);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 4px;
}
.occasion-banner h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 2px 0;
}
.occasion-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  margin: 0;
}

/* ── Hero ── */
.hero-section {
  background: var(--dark);
  padding: 26px 0 22px;
}
.hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-title span { color: #93c5fd; } /* soft sky blue — gentle, not jarring */
.hero-sub {
  color: rgba(255,255,255,0.60);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 4px;
  margin: 0 5px 6px 0;
  color: #fff;
}

/* ── Category Pills ── */
.category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1.5px solid var(--border);
  color: var(--text) !important;
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cat-pill:hover {
  border-color: var(--blue);
  color: var(--blue) !important;
}
.cat-pill.pill-active {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
}

/* ── Page wrap ── */
.page-wrap { padding: 18px 0 40px; }

/* ── Section headers ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
.section-head-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  border-left: 4px solid var(--blue);
  padding-left: 10px;
  line-height: 1.3;
}
.see-all-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue) !important;
  text-decoration: none !important;
  border: 1.5px solid var(--blue);
  padding: 4px 12px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.see-all-link:hover {
  background: var(--blue);
  color: #fff !important;
}

/* ── Featured strip ── */
.featured-strip {
  background: var(--dark);
  padding: 20px 0 26px;
}
.featured-strip .section-head-title {
  color: #fff;
  border-left-color: #93c5fd;
}
.featured-strip .see-all-link {
  color: rgba(255,255,255,0.75) !important;
  border-color: rgba(255,255,255,0.3);
}
.featured-strip .see-all-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}

/* ── Offer Card ── */
.offer-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.offer-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  border-color: #cbd5e1;
}

/* Image area */
.card-img-wrap {
  position: relative;
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.img-placeholder-icon {
  font-size: 3.2rem;
  line-height: 1;
  opacity: 0.20;  /* very subtle — product image is the star */
}
.offer-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-height: 160px;
  max-width: 88%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

/* Badges */
.discount-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  z-index: 3;
  letter-spacing: 0.02em;
}
.store-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 3;
}
.store-amazon   { background: #fef3c7; color: #92400e; }
.store-flipkart { background: #dbeafe; color: #1e40af; }

/* Card body */
.offer-card .card-body {
  padding: 10px 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1;
}
.offer-title {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  margin-bottom: 6px !important;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.offer-price {
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
}
.original-price {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  text-decoration: line-through !important;
}
.saving-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}
.rating-pill {
  background: var(--green) !important;
  color: #fff !important;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
}
.review-count { font-size: 0.68rem; color: var(--text-muted); }

.btn-deal {
  display: block !important;
  width: 100%;
  padding: 9px 0 !important;
  border-radius: 5px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  transition: background 0.15s;
  margin-top: auto;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-deal:hover {
  background: var(--blue-hov) !important;
  color: #fff !important;
}

.btn-wa-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  border-radius: 5px !important;
  text-decoration: none !important;
  background: #fff !important;
  color: #25D366 !important;
  border: 1.5px solid #25D366 !important;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-wa-icon:hover {
  background: #25D366 !important;
  color: #fff !important;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark) !important;
  padding: 28px 0 16px;
  margin-top: 32px;
}
.site-footer .footer-brand {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}
.site-footer .footer-brand span { color: #93c5fd; }
.site-footer .footer-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  line-height: 1.6;
}
.site-footer .footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.footer-link {
  display: inline-block;
  color: rgba(255,255,255,0.48) !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 0;
  margin: 2px 12px 2px 0;
  transition: color 0.15s;
}
.footer-link:hover { color: #fff !important; }
.site-footer hr { border-color: rgba(255,255,255,0.08) !important; margin: 16px 0 12px; }
.affiliate-notice {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
}
.affiliate-notice strong { color: rgba(255,255,255,0.52); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 3rem; opacity: 0.35; }
.empty-state h4 { font-weight: 800; color: var(--dark); margin-top: 12px; }

/* ── Search & Filter Bar ── */
.search-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.search-filter-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
#offer-search {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.84rem;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  background: #f8fafc;
}
#offer-search:focus {
  border-color: var(--blue);
  background: #fff;
}
#offer-search::placeholder { color: var(--text-muted); }
.price-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.price-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.price-filters::-webkit-scrollbar { display: none; }
.price-btn {
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.price-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.price-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-title    { font-size: 1.3rem; }
  .card-img-wrap { height: 150px; }
  .offer-img     { max-height: 130px; }
}
@media (max-width: 400px) {
  .hero-title    { font-size: 1.1rem; }
  .card-img-wrap { height: 130px; }
}
