/* ============================================
   PAGES PRODUITS - Grille e-commerce
   ============================================ */

/* Conteneur produits */
.shop-section {
  padding: 2rem 0 4rem;
  background: var(--color-cream);
}
.shop-section .container {
  max-width: 1280px;
}
.shop-intro {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 720px;
}

/* Grille e-commerce - 2/3/4 colonnes */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0;
}
@media (min-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Carte produit e-commerce */
.shop-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(12, 59, 92, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.shop-card:hover {
  box-shadow: 0 8px 24px rgba(12, 59, 92, 0.12);
  transform: translateY(-2px);
}
.shop-card > a:first-of-type,
.shop-card > .product-gallery {
  display: block;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.shop-card-image,
.shop-card .product-image-placeholder,
.shop-card .gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.shop-card .product-image-placeholder {
  min-height: 160px;
}
.shop-card .product-gallery {
  width: 100% !important;
}
.shop-card .gallery-main {
  border-radius: 0;
}
.shop-card .gallery-thumbs {
  padding: 0.5rem;
  gap: 0.25rem;
}
.shop-card .gallery-thumb {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

/* Badge */
.shop-card .product-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
}
.shop-card .product-badge[style*="position: static"] {
  position: absolute !important;
  top: 0.5rem;
  right: 0.5rem;
  margin-bottom: 0 !important;
}

/* Corps de la carte */
.shop-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.shop-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--color-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-body p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card-body .cta-product {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 40px;
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.shop-card-body .cta-product:hover {
  transform: none;
}

/* Page header produit */
.shop-page .page-header {
  padding: 1.5rem 1rem;
}
@media (min-width: 768px) {
  .shop-page .page-header { padding: 2rem 1.5rem; }
}
.shop-page .page-header h1 {
  font-size: 1.5rem;
}
@media (min-width: 768px) {
  .shop-page .page-header h1 { font-size: 1.75rem; }
}

/* Logo sur pages produits */
.shop-page .logo .logo-text {
  font-size: 1.2rem;
}
@media (min-width: 768px) {
  .shop-page .logo .logo-text { font-size: 1.35rem; }
}
