/* === Grille produits === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* === Carte produit === */
.product-card {
  background: #bbb;
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.2s ease;
  text-align: left;
  padding: 10px;
}

.product-card:hover {
  background: #f5f5f5;
}

/* === Image produit === */
.product-image {
  width: 100%;
  aspect-ratio: 4/5;
  border: 1px solid #eee;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Infos produit === */
.product-info {
  padding: 12px 0px;
  color: #000;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.product-price {
  font-size: 1rem;
  font-weight: bold;
  color: #c00;
}

/* === Couleurs stock (si besoin plus tard) === */
.stock-green  { color: #28a745; }
.stock-red    { color: #dc3545; }
.stock-orange { color: #fd7e14; }

/* === Page produit === */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.product-gallery img {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 4px;
  object-fit: cover;
}

/* Détails produit */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.product-gallery img,
.product-gallery .carousel {
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  object-fit: contain;
  object-position: center;
}

.product-details .btn-primary {
  margin: 20px 0;
}

.btnCmdArticle{
  margin: 20px 0px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23c2c2c2' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}


.carousel-control-next-icon {
  transform: rotate(180deg);
}


@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
  }
}


/* Boutons */

.btn1 {
  display: inline-block;
  padding: 12px 20px;
  background: #c00;      
  color: #fff;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.btn1:hover {
  background: #a00 !important;
  color: #fff
}
.btn1:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.4);
}
.btn1.disabled {
  pointer-events: none;
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

.btn2 {
  display: inline-block;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #555;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.btn2:hover {
  border-color: #333 !important;
  background: #f0f0f0 !important;
}
.btn2:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.4);
}

.btn3 {
  display: inline-block;
  padding: 8px 0;
  color: #0056b3;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  min-height: 44px;
}
.btn3:hover {
  color: #003d80 !important;
}
.btn3:focus {
  outline: none;
  box-shadow: 0 2px 0 #003d80; 
}

/* Carousel épinglé */

.featured-articles-marquee {
  overflow: hidden;
  width: 100%;
  contain: content;
}


.featured-articles-marquee .marquee-track {
  display: inline-flex;
  align-items: center;                  
  width: max-content;        
  animation: marquee-left var(--marquee-duration, 80s) linear infinite;
  will-change: transform;
}

.featured-articles-marquee .marquee-item { flex: 0 0 auto; }
.featured-articles-marquee .marquee-item img {
  display: block;
  height: 70vh;      
  width: auto;
  object-fit: cover;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* @media (max-width: 992px){ .featured-articles-marquee .marquee-item img{ height: 70vh; } }
@media (max-width: 576px){ .featured-articles-marquee .marquee-item img{ height: 70vh; } } */

@media (prefers-reduced-motion: reduce) {
  .featured-articles-marquee .marquee-track { animation-duration: 0.001ms; animation-iteration-count: 1; }
}
	
	
	
	
/* Filtre catégorie */
.product-filter{
	width: 300px;
}

@media (max-width: 576px) {
  .product-filter {
    width: 100%;
  }
}

/* Barre de recherche */

/* Version responsive */
@media (max-width: 576px) {
  .search-bar {
    max-width: 100%;
    margin: 10px 0;
  }
}


/* Correction helix */

#sp-main-body{
	min-height: calc(100vh - 142px);
}
