/**
 * Grille de Produits Responsive - Plugin MAX
 * Desktop: 4 colonnes | Tablette: 2 colonnes | Mobile: 1 colonne
 */

/* ========================================
   GRILLE
   ======================================== */

.max-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap, 20px);
  width: 100%;
  padding: 30px 20px;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .max-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .max-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   THÈME BRONZE
   ======================================== */

.max-grid-bronze {
  background: 
    radial-gradient(ellipse at 25% 35%, rgba(45, 90, 61, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 65%, rgba(26, 58, 42, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 50%, #1a3a2a 100%);
}

.max-grid-bronze .max-grid-card {
  background: linear-gradient(180deg, #4a3420 0%, #3d2817 50%, #2a1a0f 100%);
  border: 2px solid #d4af37;
  box-shadow: 
    0 0 8px rgba(212, 175, 55, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.max-grid-bronze .max-grid-card-placeholder {
  color: #d4af37;
}

.max-grid-bronze .max-grid-price-row:not(:last-child) {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* ========================================
   THÈME DARK
   ======================================== */

.max-grid-dark {
  background: var(--max-bg-dark, #0d1a26);
}

.max-grid-dark .max-grid-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.max-grid-dark .max-grid-card-placeholder {
  color: #94a3b8;
}

/* ========================================
   THÈME LIGHT
   ======================================== */

.max-grid-light {
  background: #f8fafc;
}

.max-grid-light .max-grid-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

.max-grid-light .max-grid-card-placeholder {
  color: #94a3b8;
}

.max-grid-light .max-grid-price-row:not(:last-child) {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ========================================
   THÈME GOLD (inline, fond transparent)
   ======================================== */

.max-grid-gold {
  background: transparent;
  padding: 10px 0;
  border-radius: 12px;
}

.max-grid-gold .max-grid-card {
  background: #fff;
  border: 1px solid rgba(201, 169, 98, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #1A3D2E;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.max-grid-gold .max-grid-card:hover {
  border-color: rgba(201, 169, 98, 0.6);
  box-shadow: 0 4px 16px rgba(201, 169, 98, 0.15);
}

.max-grid-gold .max-grid-card-title {
  color: #1A3D2E;
}

.max-grid-gold .max-grid-card-placeholder {
  color: #C9A962;
}

.max-grid-gold .max-grid-price-row:not(:last-child) {
  border-bottom-color: rgba(201, 169, 98, 0.15);
}

.max-grid-gold .max-grid-card-title {
  font-size: 17px;
  letter-spacing: 0.3px;
}

.max-grid-gold .max-grid-card-meta {
  font-size: 13px;
}

.max-grid-gold .max-grid-price-label {
  font-size: 14px;
  color: #5a5a5a;
}

.max-grid-gold .max-grid-price-value {
  font-size: 16px;
  color: #1A3D2E;
}

@media (min-width: 1024px) {
  .max-grid-gold .max-grid-card-title {
    font-size: 18px;
  }
  .max-grid-gold .max-grid-card-meta {
    font-size: 14px;
  }
  .max-grid-gold .max-grid-price-label {
    font-size: 15px;
  }
  .max-grid-gold .max-grid-price-value {
    font-size: 18px;
  }
}

/* ========================================
   CARTE
   ======================================== */

.max-grid-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  min-height: 420px;
}

/* Carte cliquable (lien vers fiche produit) */
a.max-grid-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
a.max-grid-card-link:hover {
  transform: translateY(-3px);
}

/* Header */
.max-grid-card-header {
  text-align: center;
  margin-bottom: 10px;
}

.max-grid-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.max-grid-card-meta {
  font-size: 11px;
  margin: 0;
  opacity: 0.85;
  line-height: 1.4;
}

/* Image */
.max-grid-card-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin: 10px 0;
}

.max-grid-card-image img {
  max-width: 80%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.max-grid-card-placeholder {
  width: 70px;
  height: 70px;
  opacity: 0.6;
}

/* Prix */
.max-grid-card-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
}

.max-grid-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.max-grid-price-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.max-grid-price-label {
  font-size: 11px;
  font-weight: 500;
}

.max-grid-price-value {
  font-size: 13px;
  font-weight: 700;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Responsive overrides are handled by the mobile-first grid above */

/* ========================================
   UTILITAIRE
   ======================================== */

.max-grid-empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-size: 16px;
}




