.shop-page {
  display: flex;
  padding-top: 102px;
}

.side-bar {
  width: 380px;
  background: var(--secondary-bg);
  padding: 30px;
  color: var(--primary-color);
}

.hide-button {
  margin-left: auto;
  display: none;
  padding: 10px 20px;
  border: 1px solid rgb(235, 235, 235);
  background: var(--secondary-bg);
  font-size: 20px;
  cursor: pointer;
}

.search-box {
  margin-top: 20px;
}

.search-box input,
.search-box button {
  height: 45px;
  font-size: 16px;
}

.search-box input {
  border: 1px solid rgb(204, 201, 201);
  padding: 0 20px;
  width: 80%;
  margin-right: 4px;
}

.search-box input:focus {
  border: 1px dotted #000;
  outline: none;
}

.search-box button {
  width: 39px;
  border: none;
  background: #0084d6;
  cursor: pointer;
  color: var(--primary-color);
  transition: 0.5s;
}

.search-box button:hover {
  background: #0176bf;
}

.range-slider,
.range-slider input {
  height: 4px;
}

.range-slider {
  position: relative;
  background: #ddd;
  border-radius: 5px;
  margin: 30px 0;
}

.range-slider input {
  position: absolute;
  width: 100%;
  top: -2px;
  left: -2px;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.range-slider .progress {
  height: 100%;
  left: 0;
  right: 0;
  position: absolute;
  background: var(--secondary-color);
  border-radius: 7px;
}

input[type="range"]::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: var(--secondary-color);
  pointer-events: auto;
  cursor: pointer;
  -webkit-appearance: none;
}

.price-input {
  width: 100%;
  gap: 10px;
}

.price-input input {
  width: 60px;
  border: none;
  color: var(--primary-color);
  font-weight: bold;
  text-align: center;
  background: transparent;
}

.category-box,
.filter-box,
.our-best-sellers {
  margin: 60px 0;
}

h3 {
  font-size: 22px;
  font-size: 22px;
  font-weight: 500;
}

.ul-category-box li {
  margin-bottom: 5px;
}

.ul-category-box li a {
  color: var(--primary-color);
  padding: 10px 5px;
  display: flex;
  justify-content: space-between;
}

.ul-category-box li a .title {
  transition: 0.5s;
}

.ul-category-box li a:hover .title {
  color: #0084d6;
}

.count {
  color: #888;
  font-size: 14px;
  margin-left: 20px;
}

.ul-category-box li.active-category a {
  color: #0084d6;
  font-weight: bold;
}

.our-best-sellers-title.active-filter {
  color: #0084d6;
  text-decoration: underline;
}

.best-seller-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--secondary-bg);;
}

.product-img {
  margin-right: 15px;
}

.best-seller-item .rating {
  margin-bottom: 7px;
}

.product-name {
  font-size: 16px;
  margin: 0 0 5px 0;
  color: var(--primary-color);
}

.products {
  background: var(--bg);
  height: fit-content;
  width: 74%;
  padding: 20px;
}

.products .products-top {
  background: var(--secondary-bg);
  height: 70px;
  margin-bottom: 20px;
  padding: 0 20px;
}

select {
  height: 40px;
  padding: 0 10px;
  background: none;
  border: none;
  font-size: 16px;
  border-radius: 7px;
  color: var(--primary-color);
  background: var(--bg);
}

select:focus {
  outline: none;
}

.products .products-top .filter-btn {
  height: 50px;
  width: 50px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  border: none;
  color: var(--primary-color);
  border: 1px solid #eaeaea;
  cursor: pointer;
  display: none;
}

.products .products-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  column-gap: auto;
  /* implicit */
  gap: 24px;
}

@media (max-width: 1050px) {
  .side-bar {
    position: fixed;
    left: -380px;
    top: 0;
    transition: 0.5s;
    z-index: 9999;
    overflow-y: scroll;
    height: 100vh;
    max-width: 80vw;
  }

  .side-bar.active {
    left: 0;
  }

  .hide-button {
    display: block;
    color: var(--primary-color);
  }

  .products {
    width: 100%;
  }

  .products .products-top .filter-btn {
    display: flex;
  }

  .products .products-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 50px 0;
  width: 100%;
}

.pagination-btn {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e0e0e0;
  background: var(--bg);
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  border-radius: 12px;
  font-size: 16px;
}

.pagination-btn i {
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background: #fdf2f0;
  border-color: #ff7e54;
  color: #ff7e54;
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: #ff7e54;
  color: var(--primary-color);
  border-color: #ff7e54;
  box-shadow: 0 4px 12px rgba(255, 126, 84, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f9f9f9;
}