:root {
  --primary: #4e54c8;
  --secondary: #8f94fb;
  --accent: #ff6b6b;
  --light: #f8f9fa;
  --dark: #343a40;
  --success: #28a745;
  --warning: #ffc107;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, var(--light) 0%, #f1f3f9 100%);
  color: #333;
  line-height: 1.6;
}

.navbar { 
  background: linear-gradient(to right, var(--primary), var(--secondary)); 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section { 
  padding: 5rem 0; 
  text-align: center; 
  color: white; 
  background: linear-gradient(to right, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100% 100%;
}

.search-input { 
  border-radius: 50px 0 0 50px; 
  padding: 15px 25px; 
  border: none;
}

.search-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(78, 84, 200, 0.25);
}

.search-btn { 
  border-radius: 0 50px 50px 0; 
  padding: 15px 30px; 
  background: var(--accent); 
  color: #fff;
  border: none;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #ff5252;
}

.search-suggestions {
  position: absolute;
  width: 100%;
  max-width: 650px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
}

.search-suggestion-item {
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-suggestion-item:hover {
  background: #f8f9fa;
}

.quick-filters {
  background: white;
}

.btn-filter {
  border-radius: 50px;
  padding: 8px 20px;
  background: white;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
}

.btn-filter:hover, .btn-filter.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-card { 
  border-radius: 15px; 
  overflow: hidden; 
  background: white; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
  transition: 0.3s; 
  height: 100%;
  margin-bottom: 20px;
}

.product-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.platform-tag { 
  position: absolute; 
  top: 15px; 
  right: 15px; 
  padding: 5px 15px; 
  border-radius: 50px; 
  font-weight: 600; 
  font-size: 0.8rem;
}

.amazon { background: #ff9900; color: black; }
.flipkart { background: #2874f0; color: white; }
.myntra { background: #ff3f6c; color: white; }
.snapdeal { background: #fd6e1f; color: white; }
.shopclues { background: #6c0; color: white; }
.ajio { background: #000; color: white; }
.tatacliq { background: #0066ff; color: white; }

.product-image {
  height: 200px;
  object-fit: contain;
  padding: 15px;
  background: #f8f9fa;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.price-container {
  margin: 10px 0;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.original-price {
  text-decoration: line-through;
  color: #6c757d;
  margin-left: 8px;
}

.discount-badge {
  background: var(--success);
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.rating {
  color: var(--warning);
  margin-bottom: 10px;
}

.btn-buy { 
  background: var(--primary); 
  color: white; 
  border-radius: 50px; 
  padding: 10px 25px;
  border: none;
  transition: all 0.3s;
  margin-top: auto;
}

.btn-buy:hover { 
  background: var(--secondary); 
  color: white;
}

.btn-load-more {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 10px 30px;
  transition: all 0.3s;
}

.btn-load-more:hover {
  background: var(--primary);
  color: white;
}

.newsletter-section {
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.newsletter-form {
  max-width: 500px;
}

.newsletter-form .form-control {
  border-radius: 50px 0 0 50px;
  padding: 15px 20px;
  border: none;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 25px;
}

.seo-content {
  background: white;
  border-radius: 15px;
  margin: 30px auto;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.seo-content h1 {
  color: var(--primary);
  margin-bottom: 20px;
}

.seo-content h2 {
  color: var(--dark);
  margin-top: 30px;
  margin-bottom: 15px;
}

.seo-content h3 {
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 10px;
}

.seo-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-content li {
  margin-bottom: 8px;
}

footer { 
  background: var(--dark); 
  color: white; 
  padding: 50px 0 20px; 
}

.social-icon { 
  font-size: 1.5rem; 
  margin-right: 15px; 
  color: white; 
  transition: all 0.3s;
}

.social-icon:hover { 
  color: var(--accent); 
  transform: translateY(-3px);
}

footer a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

/* Loading animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .search-input, .search-btn {
    padding: 12px 20px;
  }
  
  .quick-filters .col-auto {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
