/* ProductList.css */

.product-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

.product-list__title {
  text-align: center;
  font-size: 2.25rem;
  color: #111;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.product-card__image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.03);
}

.product-card__category {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #111;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card__content {
  padding: 1rem 1.25rem 1.25rem;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.product-card__description {
  color: #6b7280;
  font-size: 0.92rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a84ff;
  margin-bottom: 1rem;
}

.product-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 120px;
  text-align: center;
  background: #fff;
}

.btn--primary {
  background: #0a84ff;
  color: white;
  border-color: #0a84ff;
}

.btn--primary:hover {
  background: #056de0;
  border-color: #056de0;
  transform: translateY(-1px);
}

.btn--secondary {
  background: #ffffff;
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.4);
}

.btn--secondary:hover {
  background: rgba(10, 132, 255, 0.08);
  color: #056de0;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
  .product-list {
    padding: 1rem;
  }

  .product-list__title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .product-card__content {
    padding: 0.9rem 1rem 1rem;
  }

  .product-card__actions {
    flex-direction: column;
  }

  .btn {
    flex: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .product-card__image-container {
    height: 220px;
  }
}

/* New Product Schema Styles */
.customizable-badge {
  font-size: 0.7rem;
  background: #4caf50;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
}

.product-card__sizes {
  margin: 0.75rem 0;
}

.sizes-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
  display: block;
}

.sizes-list {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.size-badge {
  background: #f3f4f6;
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card__colors {
  margin: 0.75rem 0;
}

.colors-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
  display: block;
}

.colors-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.more-colors {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.btn--disabled {
  background: #ccc !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.btn--disabled:hover {
  background: #ccc !important;
  transform: none !important;
}
