/* ==========================================
   PREMIUM E-COMMERCE STYLESHEET
   ========================================== */

/* ----- CSS Variables ----- */
:root {
  --primary: #F14C3A;
  --primary-gradient: linear-gradient(135deg, #FF6246 0%, #F14C3A 100%);
  --primary-dark: #d83a2a;
  --success: #25D366;
  --success-dark: #1ebe5d;
  --bg-color: #F8F9FB;
  --card-bg: #FFFFFF;
  --text-main: #222222;
  --text-muted: #666666;
  --border-color: #ECECEC;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input { font-family: inherit; outline: none; }

/* ----- Top Bar ----- */
.top-bar {
  background: var(--text-main);
  color: #fff;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

/* ----- Header & Mega Menu ----- */
header {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

.search-bar {
  flex: 1;
  max-width: 650px;
  margin: 0 32px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 14px 24px;
  padding-right: 56px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  font-size: 1rem;
  background: var(--bg-color);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241, 76, 58, 0.15);
}

.search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 4px 10px rgba(241, 76, 58, 0.3);
  transition: transform var(--transition);
}

.search-bar button:hover { transform: translateY(-50%) scale(1.05); }

.nav-icons { display: flex; align-items: center; gap: 28px; }
.nav-icons a { color: var(--text-muted); font-size: 1.6rem; transition: color var(--transition); }
.nav-icons a:hover { color: var(--primary); }

.nav-icons .cart::after {
  content: "3";
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mega Menu */
.mega-menu-nav {
  background: #fff;
  border-top: 1px solid var(--border-color);
}
.nav-list {
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 12px 24px;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px 0;
}
.nav-item > a:hover { color: var(--primary); }

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 400px;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  z-index: 999;
  animation: fadeInDown 0.3s ease-out;
}
.mega-menu-item:hover .mega-menu { display: flex; gap: 32px; }
.mega-menu-col h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; }
.mega-menu-col ul { list-style: none; }
.mega-menu-col ul li { margin-bottom: 8px; }
.mega-menu-col ul li a { font-size: 0.95rem; color: var(--text-main); transition: color var(--transition); }
.mega-menu-col ul li a:hover { color: var(--primary); }

/* ----- Hero Slider ----- */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}
.slide h1 { font-size: 3.5rem; margin-bottom: 16px; font-weight: 800; text-shadow: 2px 2px 12px rgba(0,0,0,0.6); animation: fadeInDown 0.8s ease-out; }
.slide p { font-size: 1.4rem; margin-bottom: 32px; opacity: 0.95; animation: fadeInUp 1s ease-out; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
  z-index: 10;
}
.slider-btn:hover { background: rgba(255,255,255,0.4); }
.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

.dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: background var(--transition); }
.dot.active { background: white; width: 30px; border-radius: 6px; }

/* ----- Trust Bar ----- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px 24px;
  background: var(--card-bg);
  margin-bottom: 20px;
}
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-item i { font-size: 2rem; color: var(--primary); }
.trust-item h4 { font-size: 1rem; font-weight: 700; }
.trust-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(241, 76, 58, 0.35);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(241, 76, 58, 0.45); }

/* ----- Layout Containers ----- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.breadcrumbs { padding: 24px 0; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--primary); }

h2.section-title {
  margin: 60px 0 32px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 5px;
  background: var(--primary);
  border-radius: 4px;
}
.view-all { font-size: 0.95rem; color: var(--primary); font-weight: 600; transition: gap var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.view-all:hover { gap: 12px; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin: 60px 0 24px; padding-bottom: 14px; border-bottom: 2px solid var(--border-color); }
.section-header .section-title { margin: 0; border: none; padding: 0; }
.section-header .section-title::before { display: none; }

/* Countdown Timer */
.countdown-timer { display: flex; align-items: center; gap: 12px; color: var(--text-main); }
.countdown-timer span { font-size: 0.9rem; font-weight: 600; }
#timer { font-size: 1.2rem; font-weight: 800; color: var(--primary); background: #ffebea; padding: 8px 16px; border-radius: var(--radius-sm); }

/* Promo Banner */
.promo-banner { padding: 40px; border-radius: var(--radius-lg); color: white; display: flex; justify-content: space-between; align-items: center; margin: 40px 0; }
.promo-banner h2 { font-size: 2rem; font-weight: 800; }

/* ----- Categories Grid ----- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.category-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid transparent;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-color); }
.category-card img { width: 100%; height: 140px; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.08); }
.category-card p { padding: 14px; font-weight: 600; font-size: 0.95rem; }

/* ----- Products Grid ----- */
.products-grid, .flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.product-card, .flash-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
}
.product-card:hover, .flash-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.product-img-container, .flash-img { position: relative; height: 240px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.product-img-container img, .flash-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.product-card:hover img, .flash-card:hover img { transform: scale(1.08); }

.discount-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary-gradient); color: white;
  padding: 6px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(241, 76, 58, 0.3); z-index: 2;
}

.product-info, .flash-body { padding: 16px; }
.product-name, .flash-title { font-size: 0.95rem; font-weight: 500; margin-bottom: 10px; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.price-current, .flash-price { font-size: 1.4rem; font-weight: 800; color: var(--text-main); }
.flash-price { color: var(--primary); }
.price-old, .flash-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; margin-left: 8px; font-weight: 500; }
.stock-info { font-size: 0.8rem; color: var(--success); margin-top: 8px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stock-info::before { content: '✓'; font-weight: 900; }

.buy-btn {
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 12px;
  background: var(--success); color: #fff;
  border-radius: var(--radius-md); font-weight: 700;
  text-decoration: none; transition: background var(--transition);
}
.buy-btn:hover { background: var(--success-dark); }

/* ----- Stats Section ----- */
.stats-section { background: var(--text-main); color: white; padding: 80px 24px; margin-top: 80px; }
.stats-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stat-box h3 { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.stat-box p { font-size: 1.1rem; color: #ccc; }

/* ----- Reviews ----- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 60px; }
.review-card { background: var(--card-bg); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.stars { color: #ffa500; font-size: 1.2rem; margin-bottom: 12px; }
.review-card p { font-size: 1rem; color: var(--text-main); margin-bottom: 16px; font-style: italic; }
.review-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }

/* ----- Brands ----- */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-bottom: 60px; }
.brand-logo { background: white; padding: 24px; border-radius: var(--radius-md); text-align: center; font-weight: 800; font-size: 1.2rem; color: var(--text-muted); border: 1px solid var(--border-color); transition: color var(--transition); cursor: pointer; }
.brand-logo:hover { color: var(--primary); }

/* ----- Newsletter ----- */
.newsletter-section { background: var(--primary-gradient); color: white; padding: 80px 20px; text-align: center; }
.newsletter-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.newsletter-section p { font-size: 1.1rem; margin-bottom: 32px; opacity: 0.9; }
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto; gap: 12px; }
.newsletter-form input { flex: 1; padding: 16px 24px; border: none; border-radius: var(--radius-md); font-size: 1rem; }
.newsletter-form button { padding: 16px 32px; background: var(--text-main); color: white; border-radius: var(--radius-md); font-weight: 700; transition: background var(--transition); }
.newsletter-form button:hover { background: #000; }

/* ----- Footer ----- */
footer { background: #111; color: #ccc; padding: 60px 24px 20px; }
.footer-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #333; }
footer h3 { color: white; font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
footer p { font-size: 0.9rem; line-height: 1.8; color: #999; }
.footer-container ul { list-style: none; }
.footer-container ul li { margin-bottom: 10px; }
.footer-container a { color: #999; font-size: 0.9rem; transition: color var(--transition); }
.footer-container a:hover { color: var(--primary); }
.social-proof { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 0.9rem; color: #ccc; }
.payment-logos { display: flex; gap: 16px; margin-top: 20px; font-size: 2rem; color: #ccc; align-items: center; }
.payment-logos small { font-size: 0.8rem; }

/* ----- Modal ----- */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: var(--card-bg); max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 30px; border-radius: var(--radius-lg); position: relative; box-shadow: var(--shadow-lg); animation: scaleIn 0.3s ease-out; }
.close { position: absolute; top: 20px; right: 20px; background: var(--bg-color); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: background var(--transition); }
.close:hover { background: var(--primary); color: white; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }

/* ----- Item Card (Modal) ----- */
.item-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; text-align: center; transition: transform var(--transition); background: var(--card-bg); }
.item-card:hover { transform: translateY(-4px); }
.item-card img { width: 100%; height: 160px; object-fit: contain; padding: 10px; background: var(--bg-color); }
.item-card button { background: var(--text-main); color: #fff; padding: 12px; width: 100%; font-weight: 600; transition: background var(--transition); }
.item-card button:hover { background: var(--primary); }

/* ----- Search Enhancements ----- */
.search-suggestions { position: absolute; top: 110%; left: 0; background: var(--card-bg); width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-md); z-index: 999; overflow: hidden; display: none; }
.search-suggestions div { padding: 14px 20px; cursor: pointer; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; transition: background var(--transition); }
.search-suggestions div:last-child { border-bottom: none; }
.search-suggestions div:hover { background: var(--bg-color); }
.search-suggestions img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; }
.search-suggestions .sugg-info { display: flex; flex-direction: column; }
.search-suggestions small { color: var(--text-muted); font-size: 0.8rem; }

/* ----- Floating Buttons ----- */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; background: var(--success); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 998; animation: pulse 2s infinite; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; background: var(--primary-gradient); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 998; opacity: 0; visibility: hidden; transition: all var(--transition); }
.back-to-top.show { opacity: 1; visibility: visible; }

/* ----- Animations ----- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ----- Mobile Responsive ----- */
@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; height: auto; padding: 16px; gap: 12px; }
  .search-bar { order: 3; margin: 0; width: 100%; }
  .nav-icons { margin-left: auto; gap: 16px; }
  .mega-menu-nav { display: none; } /* Hide mega menu on mobile for simplicity, or replace with toggle */
  .hero-slider { height: 300px; }
  .slide h1 { font-size: 2rem; }
  .slide p { font-size: 1rem; }
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
  .promo-banner { flex-direction: column; text-align: center; gap: 20px; padding: 24px; }
  .promo-banner h2 { font-size: 1.5rem; }
  .products-grid, .flash-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-img-container, .flash-img { height: 160px; }
  .product-name, .flash-title { font-size: 0.85rem; height: 2.4em; }
  .price-current, .flash-price { font-size: 1.1rem; }
  .btn { padding: 12px 24px; font-size: 1rem; }
  .stats-container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-box h3 { font-size: 2rem; }
  .newsletter-form { flex-direction: column; }
}
/* ==========================================
   FILTER SIDEBAR & RATINGS ORGANIZATION
   Append this to the bottom of style.css
   ========================================== */

/* --- Main Layout Structure --- */
.main-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

/* --- Filter Sidebar --- */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #ECECEC;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  position: sticky;
  top: 90px; /* Sticks below the header */
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

/* Sidebar Scrollbar Styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}
.close-sidebar {
  background: #f5f5f5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #666;
  font-size: 1rem;
  display: none; /* Hidden on desktop, shown on mobile */
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-sidebar:hover {
  background: #e2e2e2;
}

/* --- Filter Groups --- */
.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}
.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Lists (Checkboxes & Radios) */
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.filter-list input[type="checkbox"],
.filter-list input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #F14C3A; /* Turns checkboxes/radios primary red */
  cursor: pointer;
  flex-shrink: 0;
}
.filter-list label {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  flex-grow: 1;
}
.filter-list label:hover {
  color: #F14C3A;
}

/* --- Price Range Inputs --- */
.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-range input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #F8F9FB;
}
.price-range input:focus {
  border-color: #F14C3A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(241, 76, 58, 0.1);
}
.price-range span {
  color: #999;
  font-weight: bold;
}

/* Apply Filters Button */
.btn-block {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(241, 76, 58, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(241, 76, 58, 0.35);
}

/* --- Product Ratings Organization --- */
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.product-rating .stars {
  color: #ffa500; /* Gold color for stars */
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 1;
}
.product-rating small {
  color: #888;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Mobile Filter Adjustments --- */
@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 40px;
  }

  .sidebar.active {
    left: 0;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
  }

  .close-sidebar {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }
}
/* Sidebar Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 992px) {
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}