/* Products Page Styles */

.products-content-section {
  padding: 80px 0;
  background-color: var(--textWhite);
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Products Sort Filters */
.products-sort-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 40px;
}

.sort-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sort-filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-filter-group label i {
  color: #2d5016;
  font-size: 14px;
}

.sort-select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-select:hover {
  border-color: #2d5016;
}

.sort-select:focus {
  outline: none;
  border-color: #2d5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

.product-card-page {
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  display: block;
  width: 260px;
  height: 240px;
}

.product-card-page:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
  z-index: 1;
  pointer-events: none;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-page:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--textStrong);
  font-family: var(--fontGrotesk);
  z-index: 3;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-container {
    padding: 0 40px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 1024px) {
  .products-container {
    padding: 0 40px;
  }

  .products-sort-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .products-content-section {
    padding: 60px 0;
  }

  .products-container {
    padding: 0 20px;
  }

  .products-sort-filters {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

  .product-card-page {
    width: 260px;
    height: 240px;
  }

  .product-label {
    font-size: 16px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .products-content-section {
    padding: 40px 0;
  }

  .products-container {
    padding: 0 15px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card-page {
    width: 260px;
    height: 240px;
  }

  .product-label {
    font-size: 16px;
    top: 10px;
    left: 10px;
  }
}

