/* Shop Page Styles */
.shop-container {
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 10px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Sidebar */
.shop-sidebar {
  background: #fff;
  padding: 25px;
  border: 1px solid #eee;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.filter-group {
  margin-bottom: 35px;
}

.filter-group h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
  padding-bottom: 5px;
}

.filter-list {
  list-style: none;
}

.filter-list li {
  margin-bottom: 12px;
}

.filter-list a {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
  transition: 0.3s;
  display: block;
}

.filter-list a:hover,
.filter-list a.active {
  color: var(--primary-red);
  padding-left: 5px;
  font-weight: 600;
}

.filter-list label {
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Price Slider Styles */
.price-slider-container {
  padding: 10px 0;
}

.price-values {
  font-size: 0.95rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 15px;
}

.range-slider {
  position: relative;
  width: 100%;
  height: 5px;
  background: #e5e5e5;
  border-radius: 5px;
}

.slider-track {
  position: absolute;
  height: 100%;
  background: #11c1c1; /* Cyan color from image */
  border-radius: 5px;
  z-index: 1;
}

.range-input {
  position: absolute;
  width: 100%;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  top: 0;
  z-index: 2;
}

/* Custom Thumb */
.range-input::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #11c1c1;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.range-input::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #11c1c1;
  pointer-events: auto;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Shop Content */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.shop-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-sort select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  outline: none;
  cursor: pointer;
  background: #fff;
}

/* Product Grid */
.shop-content .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 0;
}

/* Sidebar Search (Nested in groups) */
.sidebar-search {
    position: relative;
    margin-bottom: 15px;
}

.sidebar-search input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    outline: none;
    font-size: 0.8rem;
    background: #fdfdfd;
    transition: 0.3s;
}

.sidebar-search input:focus {
    border-color: var(--primary-red);
    background: #fff;
}

.sidebar-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.8rem;
}

/* Improved Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 60px 0 40px;
}

.page-link {
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  background: #fff;
  border: 1px solid #eee;
  color: #444;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px; /* Fully rounded */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.page-link:hover {
  background: #f8f8f8;
  color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(208, 0, 0, 0.1);
}

.page-link.active {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 5px 15px rgba(208, 0, 0, 0.3);
}

.page-link.prev,
.page-link.next {
  font-size: 0.75rem;
  letter-spacing: 1px;
  gap: 8px;
  background: #fdfdfd;
}

.page-link.prev:hover,
.page-link.next:hover {
  background: var(--primary-red);
  color: #fff;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sidebar-close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
  .mobile-filter-btn {
      display: flex;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
      position: fixed;
      top: 0;
      left: -100%;
      width: 300px;
      height: 100%;
      background: #fff;
      z-index: 10002;
      padding: 25px;
      overflow-y: auto;
      transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      display: block !important;
      box-shadow: 5px 0 25px rgba(0,0,0,0.1);
  }

  .shop-sidebar.active {
      left: 0;
  }

  .sidebar-header {
      display: flex;
  }

  .shop-header {
      flex-wrap: wrap;
      gap: 15px;
      justify-content: space-between;
  }

  .mobile-filter-btn {
      display: flex;
      order: 1;
  }

  .shop-sort {
      order: 2;
  }

  .shop-header h2 {
      font-size: 1.2rem;
      width: 100%;
      order: 3;
      margin-top: 5px;
      border-top: 1px dashed #eee;
      padding-top: 10px;
  }
}


