/* Ürün Sayfalama Stilleri */

.category-title {
  font-size: 22px;
  font-weight: bold;
  margin: 50px 0 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-item {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px;
  position: relative;
  font-family: sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: black;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  z-index: 2;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.product-image-wrapper img.hover-image {
  opacity: 0;
}

.product-item:hover .product-image-wrapper img.hover-image {
  opacity: 1;
}

.product-item:hover .product-image-wrapper img.main-image {
  opacity: 0;
}

.product-info {
  margin-top: 10px;
}

.product-title {
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

.product-color {
  font-size: 15px;
  margin-top: 4px;
}

.product-code {
  font-size: 13px;
  margin-top: 4px;
  color: #555;
}

.compare-button {
  margin-top: 10px;
  display: inline-block;
  background: #f0efed;
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #ddd;
}

.products-container {
  position: relative;
}

.category-section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-link {
  display: none;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-link.visible {
  display: block;
  opacity: 1;
}

#loading-indicator {
  text-align: center;
  padding: 20px;
  display: none;
}

#loading-indicator > div {
  display: inline-block;
  padding: 10px 20px;
  background: #f0efed;
  border-radius: 20px;
}
