/* (Keep all existing styles – unchanged) */
:root {
  --primary: #E97C43;
  --primary-dark: #C45A2A;
  --primary-light: #FFF5F0;
  --secondary: #FF9A3D;
  --dark: #212121;
  --darker: #111111;
  --light: #FFFFFF;
  --gray: #666666;
  --gray-light: #F5F5F5;
  --gray-border: #E0E0E0;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --shadow-sm: var(--sh-1);
  --shadow-md: var(--sh-2);
  --shadow-lg: var(--sh-3);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1280px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.explore-header {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 15px;
}

.explore-header h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.explore-header .explore-query {
  color: var(--primary);
}

.explore-header .result-count {
  font-size: 14px;
  color: var(--gray);
  margin-top: 5px;
}

.sort-bar {
  background: white;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 15px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 45;
}

.sort-bar::-webkit-scrollbar {
  display: none;
}

.sort-options {
  display: inline-flex;
  gap: 8px;
  padding: 0 5px;
}

.sort-option {
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--gray-light);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  display: inline-block;
}

.sort-option:hover {
  background: var(--primary-light);
}

.sort-option.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-sidebar {
  background: white;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 20px 15px;
  position: sticky;
  top: 80px;
  max-height: none;
  overflow: visible;
}

.filter-section {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 15px;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-options {
  max-height: none;
  overflow: visible;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.filter-checkbox .count {
  color: var(--gray);
  font-size: 11px;
  margin-left: auto;
}

.rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 5px;
  border: 1px solid transparent;
}

.rating-option:hover {
  background: var(--primary-light);
}

.rating-option.active {
  background: var(--primary-light);
  border-color: var(--primary);
}

.rating-option .stars {
  color: #FFC107;
  font-size: 12px;
}

.price-slider-wrapper {
  padding: 0px 10px;
  margin-bottom: 10px;
}

.price-slider {
  margin: 20px 0 10px;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

.noUi-connect {
  background: var(--primary);
}

.noUi-handle {
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  width: 18px !important;
  height: 18px !important;
  right: -9px !important;
  top: -7px !important;
}

.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

.noUi-target {
  background: var(--gray-light);
  border-radius: 20px;
  border: none;
  box-shadow: none;
  height: 4px;
}

.product-grid {
  display: grid;
  gap: 12px;
  padding: 0;
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card:active {
  transform: scale(0.97);
}

.product-card.clicked {
  animation: clickBump 0.3s ease;
}

@keyframes clickBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-badge.official {
  background: var(--primary);
  left: 8px;
  right: auto;
}

.product-badge.elite {
  background: transparent;
  color: var(--dark);
  left: auto;
  right: 8px;
  padding: 0;
}

.product-badge.elite img {
  width: 50px;
  height: 25px;
}

.product-badge.cod {
  background: var(--success);
  left: auto;
  right: 8px;
  top: 45px;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f8f8f8;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-card:hover .product-image {
  transform: scale(1.02);
}

.product-info {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-seller {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 34px;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

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

.original-price {
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
}

.discount-badge {
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.rating-stars {
  color: #FFC107;
  font-size: 11px;
}

.rating-count {
  font-size: 11px;
  color: var(--gray);
}

.no-products {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  font-size: 16px;
}

.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 85px;
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  font-size: 24px;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

@media (max-width: 767px) {
  .mobile-filter-btn {
    display: flex;
  }
}

.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.filter-overlay.open {
  transform: translateX(0);
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--gray-border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.overlay-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.overlay-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
}

.overlay-body {
  flex: 1;
  padding: 20px;
}

.overlay-footer {
  padding: 15px 20px;
  padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gray-border);
  background: white;
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
}

.overlay-footer .btn {
  flex: 1;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 30px;
  font-size: 12px;
  color: var(--primary-dark);
}

.filter-chip .remove {
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  color: var(--primary-dark);
}

.pagination {
  justify-content: center;
  margin: 30px 0;
}

.page-link {
  color: var(--primary);
  border: 1px solid var(--gray-border);
  margin: 0 3px;
  border-radius: 6px;
  padding: 6px 12px;
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-secondary {
  color: var(--dark);
  border-color: var(--gray-border);
}

.btn-outline-secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.vip-pagination {
  gap: 8px;
  flex-wrap: wrap;
}

.vip-pagination .page-link {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: #fff;
  color: #222;
  box-shadow: var(--sh-1);
  transition: all .2s ease;
}

.vip-pagination .page-link:hover {
  background: #E97C43;
  color: white;
  transform: translateY(-2px);
}

.vip-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #E97C43, #C45A2A);
  color: white;
  box-shadow: var(--sh-2);
}

.vip-pagination .nav-btn {
  font-size: 18px;
}

.vip-pagination .dots {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
