/* Sastaitem.com — Custom CSS (supplements Tailwind CDN) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1B3A5C;
  --primary-light: #2E5990;
  --accent: #F58220;
  --accent-dark: #D9721A;
  --success: #2E7D32;
  --danger: #D32F2F;
  --surface: #F8FAFC;
  --border: #E2E8F0;
}

* { font-family: 'Poppins', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── Nav ── */
.nav-link { transition: color .2s; }
.nav-link:hover { color: var(--accent); }

/* ── Hero search ── */
.hero-gradient {
  background: linear-gradient(135deg, #1B3A5C 0%, #2E5990 50%, #1a4a7a 100%);
}
.search-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(245,130,32,0.4); }

/* ── Badges ── */
.badge-lowest  { background: #dcfce7; color: #166534; }
.badge-rated   { background: #dbeafe; color: #1e40af; }
.badge-discount{ background: #fef3c7; color: #92400e; }
.badge-popular { background: #f3e8ff; color: #6b21a8; }
.badge-sponsored { background: #f1f5f9; color: #64748b; }

/* ── Product card ── */
.product-card {
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

/* ── Platform row in comparison table ── */
.platform-row-best { background: #f0fdf4; border-left: 3px solid #22c55e; }
.platform-row { border-left: 3px solid transparent; }

/* ── CTA buttons ── */
.btn-primary {
  background: var(--accent);
  color: white;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--accent-dark); transform: scale(1.02); }

.btn-secondary {
  background: var(--primary);
  color: white;
  transition: background .2s;
}
.btn-secondary:hover { background: var(--primary-light); }

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ── Star rating ── */
.stars { color: #f59e0b; }

/* ── Price display ── */
.price-main { color: var(--primary); font-weight: 700; }
.price-from { font-size: .7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.price-mrp  { color: #94a3b8; text-decoration: line-through; }
.price-lowest { color: var(--success); font-weight: 700; }

/* ── Category card ── */
.cat-card {
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* ── Section headings ── */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Deal card countdown ── */
.deal-tag { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ── Filters ── */
.filter-chip {
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .15s;
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--accent);
  background: #fff7ed;
  color: var(--accent-dark);
}

/* ── Comparison table ── */
.compare-header { background: var(--primary); color: white; }
.compare-cell-best { background: #f0fdf4; font-weight: 600; color: var(--success); }

/* ── Sticky elements ── */
.sticky-top { position: sticky; top: 64px; z-index: 10; }

/* ── Tooltip ── */
.tooltip { position: relative; }
.tooltip .tip {
  visibility: hidden;
  background: #1e293b;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 100;
}
.tooltip:hover .tip { visibility: visible; }

/* ── Loader skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

/* ── Platform logo chips ── */
.platform-chip {
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid currentColor;
}
.chip-amazon  { color: #ff9900; border-color: #ff9900; }
.chip-flipkart{ color: #2874f0; border-color: #2874f0; }
.chip-croma   { color: #9b1c1c; border-color: #9b1c1c; }
.chip-reliance{ color: #1d4ed8; border-color: #1d4ed8; }
.chip-tatacliq{ color: #7c3aed; border-color: #7c3aed; }

/* ── Responsive ── */
@media(max-width:768px){
  .hero-gradient { padding: 3rem 1rem 4rem; }
}

/* ── Animations ── */
.fade-in { animation: fadeIn .3s ease-in; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ── Wishlist heart ── */
.wish-btn { transition: transform .15s, color .15s; }
.wish-btn:hover { transform: scale(1.2); }
.wish-btn.active { color: #ef4444; }

/* ── Footer ── */
.footer-bg { background: #0f2035; }
