/* ===============================
   STRUCTURE GÉNÉRALE
================================ */

.catalog-container {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #b9b9b9;
}

.add-to-cart-btn.anim-cart {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.cart-link.highlight {
  animation: cart-bounce 1s ease-in-out infinite, cart-flash 0.5s alternate infinite;
}

@keyframes cart-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes cart-flash {
  0% {
    background-color: #fff;
  }

  50% {
    background-color: #ffd700;
  }

  /* couleur flash */
  100% {
    background-color: #fff;
  }
}

/* ===============================
   COLONNE FILTRES (GAUCHE)
================================ */

.catalog-filters {
  width: 260px;
  background: #1f2822a7;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 1px 4px rgb(255, 255, 255);
  font-size: 14px;
}

.catalog-filters h3 {
  font-size: 15px;
  margin: 15px 0 10px;
  color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 5px;
}

.catalog-filters ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-filters li {
  margin-bottom: 8px;
  cursor: pointer;
}

.catalog-filters input[type="checkbox"] {
  margin-right: 8px;
}

.catalog-filters input[type="range"] {
  width: 100%;
  margin: 10px 0;
}

/* ===============================
   ZONE PRODUITS (DROITE)
================================ */

.catalog-products {
  flex: 1;
  background: #1b2623;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 1px 4px rgb(255, 255, 255);
}

/* ===============================
   BARRE TRI
================================ */

.catalog-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.catalog-sort select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 15px;
}

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

.product-card {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.product-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 5px;
  color: #111827;
}

.product-card .price {
  font-size: 16px;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 10px;
}

.product-card button {
  width: 100%;
  padding: 8px;
  background: #111827;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-card button:hover {
  background: #d97706;
}

/* ===============================
   PAGINATION
================================ */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 5px;
}

.pagination button {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.pagination button.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.pagination button:hover {
  background: #f3f4f6;
}

/* Badges promotionnels sur produit */

.product-card {
  position: relative;
}

.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  color: white;
  font-weight: 700;
  font-size: 12px;
  border-radius: 3px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.badge.black-friday {
  background-color: #f80505;
  /* rouge vif */
}

.badge.flash-sale {
  background-color: #ff9900;
  /* orange vif */
}

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

@media (max-width: 1024px) {
  .catalog-container {
    flex-direction: column;
  }

  .catalog-filters {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .product-card img {
    height: 140px;
  }
}

.price-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ou center si tu veux centrer */
  gap: 2px;
  /* petit espace entre les deux */
}

.old-price {
  text-decoration: line-through;
  color: #999;
  /* gris barré */
  font-size: 0.9rem;
}

.promo-price {
  color: #e60023;
  /* rouge promo */
  font-weight: bold;
  font-size: 1rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.price-number-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.price-number-input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.price-separator {
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 600px) {
  .price-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .price-separator {
    display: none;
  }
}

/* =========================
   SEO CATALOGUE
   ========================= */
.catalog-seo-hero {
  width: 100%;
  margin-bottom: 15px;
  padding: 14px 18px;

  background: linear-gradient(135deg, #ffffff, #f5f7fb);
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.catalog-seo-hero h1 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
  font-weight: 900;
  color: #0d1117;
  line-height: 1.2;
}

.catalog-container {
  align-items: flex-start;
}

.catalog-seo-hero {
  max-width: 1200px;
  margin: 20px auto 15px auto;
}
.catalog-seo-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  line-height: 1.7;
  color: #4b5563;
}

.catalog-seo-content {
  margin-top: 28px;
}

.catalog-seo-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.catalog-seo-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #154fb5;
  text-align: left;
}

.catalog-seo-box p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}

@media (max-width: 768px) {

  .catalog-seo-hero,
  .catalog-seo-box {
    padding: 18px;
    border-radius: 14px;
  }

  .catalog-seo-hero h1 {
    font-size: 22px;
  }

  .catalog-seo-box h2 {
    font-size: 17px;
  }

  .catalog-seo-hero p,
  .catalog-seo-box p {
    font-size: 13px;
  }
}