@media (min-width: 768px) {
  #index .products .product-miniature {
    width: 20%;
    padding: 10px 10px;
  }

  #index #home_cat_product_un {
    margin-top: -70px;
  }
}

@media (max-width: 767px) {
  #index .products .product-miniature {
    width: 50%;
    padding: 10px 10px;
  }
  #index .products .product-miniature:nth-last-child(-n + 3) {
    display: none;
  }
  #index #home_cat_product_un .products{
    flex-wrap: wrap;
  }
  #index #home_cat_product_un .products .custom-product-card.standard:last-child{
    display: none;
  }
}

#index #home_cat_product_un{
  padding: 13px;
  float: left;
}

#index .separateur-titre {
  border-top-style: solid;
  border-top-width: 3px;
  width: 100%;
  display: block;
  border-top-color: #7a7a7a;
  margin-bottom: 15px;
}

#index #home_cat_product_un .product-miniature {
  padding: 10px !important;
  border-radius: 10px !important;
  border: solid 1px #cecece !important;
  box-shadow: 1px 1px 5px #cecece !important;
}

#index #home_cat_product_un .products {
  margin: 0 10px 10px;
  gap: 15px;
  display: flex;
}

#index .thumbnail-container {
  box-shadow: rgb(0 0 0 / 0%) 0px 0px 0px 0px !important;
  border: 0px solid transparent;
  background: #fff;
  padding: 0px;
}

/****/
.custom-product-card {
  /*width: 270px;*/
  width: 20%;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.custom-product-card:hover {
  transform: translateY(-4px);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e60000;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
}

.product-image {
  text-align: center;
  margin-bottom: 15px;
}

.product-image img {
  max-width: 100%;
  height: auto;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  min-height: 40px;
}

.product-title a {
  text-decoration: none;
  color: #222;
}

.product-brand {
  color: #1a4dff;
  font-weight: bold;
  margin: 5px 0;
}

.product-rating {
  color: #ffc107;
  margin-bottom: 8px;
}

.product-price {
  margin-bottom: 12px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

.current-price {
  color: #e60000;
  font-size: 18px;
  font-weight: bold;
}

.product-cart {
  display: flex;
  gap: 10px;
}

.quantity-box {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-box button {
  background: #f2f2f2;
  border: none;
  width: 30px;
  cursor: pointer;
}

.quantity-box input {
  width: 40px;
  text-align: center;
  border: none;
}

.btn-add {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-add:hover {
  background: #218838;
}

#home_cat_product_un .titre span {
  text-transform: uppercase;
  font-size: 25px;
}
#home_cat_product_un .voir_tout span {
  font-size: 14px;
  font-weight: 500;
  margin-left: 20px;
  padding: 3px 27px;
  border: 1px solid #2a3847;
  border-radius: 30px;
  color: #2a3847;
}
#home_cat_product_un h2 a .voir_tout,
#home_cat_product_un h2 a .titre {
  display: inline-block;
}
#home_cat_product_un h2 a .voir_tout {
  position: absolute;
  margin-top: -1px;
}
