/* Page Boutique */
.shop-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: #fafafa;
}

/* Hero Boutique */
.shop-hero {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.shop-hero-content {
  max-width: 920px;
  margin: 0 auto;
}

.shop-hero-content h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.shop-hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Filtres */
.shop-filters {
  background: #fff;
  padding: 24px 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 110px;
  z-index: 100;
}

.filters-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.filter-select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:hover {
  border-color: #000;
}

.filter-select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.results-count {
  margin-left: auto;
}

.results-count p {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.results-count span {
  color: #000;
  font-weight: 700;
}

/* Grille de produits */
.products-grid {
  padding: 0 20px;
  margin-bottom: 60px;
}

.products-container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

/* Carte produit */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Image produit - CARRÉ pour vignette boutique */
.product-image {
  position: relative;
  width: 100%;
  /* IMPORTANT:
     `style.css` définit `.product-image { padding-top: 133%; }` (portrait).
     Ici on force le carré (1:1) uniquement pour la boutique. */
  padding-top: 0;
  padding-bottom: 0;
  aspect-ratio: 1 / 1; /* Ratio 1:1 pour vignette 600×600 */
  background: #f5f5f5;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  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.08);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.product-badge.new {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
}

/* Bouton favoris */
.product-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-card:hover .product-favorite {
  opacity: 1;
  transform: scale(1);
}

.product-favorite:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-favorite svg {
  stroke: #000;
  transition: all 0.3s ease;
}

.product-favorite:hover svg {
  fill: #ff0000;
  stroke: #ff0000;
}

/* Informations produit */
.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.3;
}

.product-category {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Prix */
.product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.price-current {
  font-size: 20px;
  font-weight: 900;
  color: #000;
}

.price-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

/* Couleurs */
.product-colors {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px 60px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:not(:disabled):hover {
  border-color: #000;
  background: #f9f9f9;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  border-color: #000;
  background: #f9f9f9;
}

.pagination-number.active {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Responsive */
@media (max-width: 1400px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .shop-page {
    padding: 100px 0 60px;
  }

  .shop-hero {
    padding: 60px 16px;
    margin-bottom: 16px;
  }

  .shop-filters {
    position: static;
    padding: 12px 16px;
    margin-bottom: 16px;
  }

  .filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: end;
  }

  .filter-group {
    min-width: 0;
    gap: 4px;
  }

  .filter-label {
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .filter-select {
    padding: 8px 6px;
    font-size: 12px;
    border-width: 1px;
    border-radius: 6px;
  }

  .results-count {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }

  .products-grid {
    padding: 0 16px;
  }

  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .product-info {
    padding: 16px;
  }

  .product-name {
    font-size: 16px;
  }

  .price-current {
    font-size: 18px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pagination-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .pagination-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .pagination-number {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .shop-hero {
    padding: 40px 16px;
    margin-bottom: 12px;
  }

  .filters-container {
    gap: 6px;
  }

  .filter-label {
    display: none;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-info {
    padding: 14px;
  }

  .product-name {
    font-size: 15px;
  }

  .price-current {
    font-size: 16px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
