.categories {
      margin: 50px 15px 0px 15px;
      background-color: #ffffff;
}

.category__banner {
      width: 100%;
      height: 400px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 30px;
      background-image: 
      radial-gradient(circle at center, rgba(13, 71, 161, 0.9), rgba(33, 150, 243, 0.6)),
      url('../assets/images/Back-products.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
}

.categories h2 {
      font-size: 3rem;
      font-weight: 700;
      color: #fff;
      text-align: center;
      margin-bottom: 20px;
}

.categories p {
      font-size: 1.2rem;
      color: #fff;
      text-align: center;
      max-width: 550px;
      margin: 0 auto;
}

.categories p a {
      color: #fff;
      text-decoration: none;
      font-size: 14px;
      padding: 8px 10px;
      background-color: #000;
      border-radius: 20px;
      transition: background-color 0.3s;
      display: inline-block;
      margin-top: 10px;
}

.categories p a:hover {
      background-color: #fff;
      color: #000;
}

.filter {
      padding: 10px 0 300px 0;
}

.filter-bar {
  margin-bottom: 30px;
}

.categories {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-btn {
  background: #eee;
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: #000;
  color: #fff;
}

.sort {
      display: flex;
      align-items: center;
      justify-content: right;
      gap: 10px;
      margin-bottom: 40px;
}

.sort select {
  padding: 10px 30px;
  border-radius: 30px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
}

.sort option {
  font-size: .9rem;
  font-weight: 500;
}

.product-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
}

.product__item {
      width: 100%;
      height: 400px;
      border-radius: 30px;
      position: relative;
      overflow: hidden;
      border: 1px solid #e5e7eb;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: #fff;
}

.product__item a img {
      width: 100%;
      object-fit: cover;
      height: 100%;
      border-radius: 30px;
      transition: transform 0.3s ease;
}

.product__item__price {
      position: absolute;
      top: 20px;
      right: 20px;
      background-color: #ffffff;
      border: 1px solid #e5e7eb;
      box-shadow: 0cqb 12px 15px -1px rgba(145,145,145,0.3);
      border-radius: 30px;
      padding: 10px;
}

.product__card {
      position: absolute;
      bottom: 20px;
      left: 20px;
      right: 20px;
      background-color: #ffffff;
      border: 1px solid #e5e7eb;
      box-shadow: 0cqb 12px 15px -1px rgba(145,145,145,0.3);
      border-radius: 30px;
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: transform 0.8s ease;
}

.product__card h5 {
      font-size: 1rem;
      font-weight: 400;
      transition: transform 0.8s ease;
}

.product__card i {
      font-size: 2.2rem;
      font-weight: 400;
      transition: transform 0.8s ease;
}

.product__item:hover .product__card {
  background-color: #000;
}

.product__item:hover .product__card h5,
.product__item:hover .product__card i {
      color: #fff;
}

.product__item:hover .inner img {
  transform: scale(1.05);
}

.badge-new{
  position: absolute;
  top: 30px;
  left: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 99;
}

.product__item .inner{
  position: relative;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 30px 0 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e7e7f0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
}

.page-btn:hover { background: #f5f6fa; }
.page-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.page-btn:disabled {
  opacity: .4;
  cursor: default;
}
.ellipsis {
  padding: 0 6px;
  color: #999;
}


/* media query */

@media (min-width: 1201px) {
}

@media (min-width: 1920px) {

      .container {
            max-width: 1400px;
            padding: 0 40px;
      }
}

@media (max-width: 1200px) {

      .product-grid {
            grid-template-columns: repeat(3, 1fr);
      }

}

@media (max-width: 1100px) {

      .categories h2 {
            font-size: 2.6rem;
      }

      .categories p {
            font-size: 1.1rem;
            max-width: fit-content;
            line-height: 1.7rem;
      }

}

@media (max-width: 770px) {

      .product-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
      }
}

@media (max-width: 700px) {

      .product__item {
            height: 300px;
      }

      .product__item a img {
            height: 100%;
      }

      .product__card i {
            font-size: 1.6rem;
      }
}

@media (max-width: 500px) {

      .badge-new{
            top: 60px;
            left: 8px;
            font-size: 10px;
      }

      .category__banner {
            width: 100%;
            height: 300px;
            border-radius: 30px;
      }

      .categories h2 {
            font-size: 2.2rem;
      }

      .categories p {
            font-size: 1rem;
            line-height: 1.5rem;
      }

      .filter-btn {
            padding: 8px 20px;
            border-radius: 30px;
            font-size: .9rem;
      }

      .sort label {
            font-size: .9rem;
      }

      .sort select {
            padding: 8px 20px;
            font-size: .9rem;
            font-weight: 600;
      }

      .sort option {
            font-size: .8rem;
      }

      .product__item {
            width: 100%;
            height: 250px;
      }

}

@media (max-width: 450px) {

      .product-grid {
            gap: 8px;
      }

      .product__item__price {
            padding: 5px 10px;
      }

      .product__item__price p {
            font-size: .9rem;
      }

      .product__card {
            border-radius: 20px;
            padding: 5px 10px;
            left: 10px;
            right: 10px;
            bottom: 15px;
      }

      .product__card h5 {
            font-size: .9rem;
      }

      .product__card i {
            font-size: 1.2rem;
      }

}