/* =========================
   CHECKOUT ONLY STYLING
   (no impact on rest of site)
========================= */

body#checkout #wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* zone checkout uniquement */
body#checkout #checkout,
body#checkout .page-checkout {
  max-width: 1200px;
  margin: 0px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

/* colonnes checkout */
body#checkout .checkout-step,
body#checkout .js-checkout-step {
  padding: 15px;
}

/* résumé panier */
body#checkout #js-checkout-summary {
  padding: 15px;
}

/* =========================
   1. BASE GLOBALE
========================= */

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f6f7f9;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   2. HEADER CLEAN
========================= */

#header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

/* =========================
   3. GRILLE PRODUITS (IMPORTANT)
========================= */

.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* =========================
   4. CARTE PRODUIT MODERNE
========================= */

.product-miniature {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-miniature:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* =========================
   5. IMAGE PRODUIT (FIX ALIGNEMENT)
========================= */

.product-miniature img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-miniature:hover img {
  transform: scale(1.07);
}

/* =========================
   6. CONTENU PRODUIT
========================= */

.product-description {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

/* =========================
   7. PRIX
========================= */

.price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

/* =========================
   8. BOUTON (ADD TO CART)
========================= */

.add-to-cart,
.button,
.btn {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-align: center;
  font-weight: 500;
  transition: all 0.25s ease;
  border: none;
  display: block;
  cursor: pointer;
}

.add-to-cart:hover,
.button:hover,
.btn:hover {
  background: #2e7d32;
}

/* =========================
   9. ALIGNEMENT GLOBAL FIX
========================= */

.product-miniature .product-description {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* pousse bouton en bas */
.add-to-cart {
  margin-top: auto;
}

/* =========================
   10. MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .product-miniature img {
    height: 160px;
  }
}

/* =========================
   11. BONUS HOVER CLEAN
========================= */

.product-miniature {
  will-change: transform;
}