/**
 * Products Page Styles
 * Ürünler sayfası için özel stiller
 */
@import url('./shared.css');

/* ===== CATEGORY BUTTONS ===== */
.category-section {
  padding: 60px 0 40px;
  background: var(--bg-light);
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.category-buttons button {
  background: var(--white);
  border: 2px solid transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.category-buttons button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-buttons button span {
  position: relative;
  z-index: 1;
}

.category-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 134, 89, 0.2);
  border-color: var(--primary);
}

.category-buttons button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(45, 134, 89, 0.3);
}

.category-buttons button.active::before {
  opacity: 1;
}

/* ===== PRODUCTS SECTION ===== */
.all-products {
  padding: 60px 0 120px;
  background: linear-gradient(to bottom, var(--bg-light), var(--white));
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.product-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(45, 134, 89, 0.2);
}

.product-card:hover::before {
  opacity: 0.03;
}

.product-image-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.product-image-link:hover {
  opacity: 0.95;
}

.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f0f0f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.15);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(244, 180, 26, 0.4);
}

.product-info {
  padding: 28px;
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.product-card:hover h4 {
  color: var(--primary);
}

.product-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.price {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.buttons {
  display: flex;
  gap: 12px;
}

.buttons .btn-green {
  flex: 1;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  border: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-green {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45, 134, 89, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 134, 89, 0.4);
}


/* ===== FILTER INFO ===== */
.filter-info {
  text-align: center;
  padding: 30px 0 0;
  color: var(--text-light);
  font-size: 15px;
  animation: fadeIn 0.6s ease;
}

.filter-info strong {
  color: var(--primary);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .category-section {
    padding: 50px 0 30px;
  }

  .category-buttons {
    padding: 0 20px;
    gap: 10px;
  }

  .category-buttons button {
    padding: 12px 24px;
    font-size: 14px;
  }

  .all-products {
    padding: 40px 0 80px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 25px;
  }

  .product-image {
    height: 240px;
  }

  .product-info {
    padding: 25px;
  }

  .product-card h4 {
    font-size: 22px;
  }

  .product-card p {
    font-size: 14px;
  }

  .price {
    font-size: 28px;
  }

  .buttons .btn-green {
    padding: 12px 20px;
    font-size: 13px;
  }

  .filter-info {
    padding: 20px 0 0;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .category-section {
    padding: 40px 0 25px;
  }

  .category-buttons {
    padding: 0 15px;
    gap: 8px;
  }

  .category-buttons button {
    padding: 10px 18px;
    font-size: 13px;
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .all-products {
    padding: 30px 0 60px;
  }

  .products-grid {
    padding: 0 15px;
    gap: 20px;
  }

  .product-card {
    border-radius: 20px;
  }

  .product-image {
    height: 200px;
  }

  .product-info {
    padding: 20px;
  }

  .product-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .product-card p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .price {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .buttons .btn-green {
    padding: 12px 20px;
    font-size: 13px;
    width: 100%;
  }

  .badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .filter-info {
    padding: 15px 0 0;
    font-size: 13px;
  }
}
