/* ===== Popüler Ürünler ===== */
.products-section {
  padding: 0 0 40px;
  background: #f8fafc;
}

.products-section--follow {
  padding-top: 0;
}

.products-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.products-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.products-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.01em;
}

.products-subtitle {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #718096;
}

.products-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a5568;
  padding: 8px 14px;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  background: #ffffff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.products-view-all:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  color: #2d3748;
}

.products-view-all svg {
  transition: transform 0.2s;
}

.products-view-all:hover svg {
  transform: translateX(2px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  border-color: #dde4ec;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: #ff6600;
  border-radius: 5px;
  line-height: 1.2;
  z-index: 1;
}

.product-badge--new {
  background: #2d5be3;
}

.product-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8edf3;
  border-radius: 50%;
  color: #a0aec0;
  z-index: 1;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.product-fav:hover {
  color: #e53935;
  background: #ffffff;
  border-color: #fed7d7;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 14px 12px;
}

.product-category {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 5px;
}

.product-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-card:hover .product-name a {
  color: #1a202c;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.product-stars {
  display: inline-flex;
  gap: 1px;
  color: #f6ad55;
}

.product-rating-count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #a0aec0;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  margin-top: auto;
}

.product-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2d3748;
}

.product-price-old {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a0aec0;
  text-decoration: line-through;
}

.product-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: #FF6600;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.product-add-form {
  width: 100%;
}

.product-add:hover {
  background: #E55A00;
}

.product-add:active {
  transform: scale(0.98);
}

/* ===== Responsive ===== */
@media (max-width: 1292px) {
  .products-container {
    padding: 0 16px;
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .products-section {
    padding-bottom: 32px;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .products-view-all {
    width: 100%;
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
