/* Section promotion : carrousel horizontal, sans modifier les autres composants de la boutique. */
.promo-showcase{
  width:min(1330px,100%);
  margin:0 auto 30px;
  padding:22px 28px 26px;
  background:#f58220;
  border-radius:12px;
  box-sizing:border-box;
  overflow:hidden;
  box-shadow:0 5px 18px rgba(0,0,0,.08);
}
.promo-showcase[hidden]{display:none}
.promo-showcase-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}
.promo-showcase-head h2{
  margin:0;
  font-size:24px;
  color:#fff;
  font-weight:800;
}
.promo-showcase-head p{
  margin:5px 0 0;
  color:rgba(255,255,255,.9);
  font-size:12px;
}
.promo-countdown{
  min-width:max-content;
  color:#fff;
  font-weight:800;
  text-align:right;
}
.countdown-label{
  display:block;
  font-size:12px;
  margin-bottom:6px;
  opacity:.95;
}
.countdown-value{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:4px;
  line-height:1;
}
.countdown-value b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  padding:7px 6px;
  background:#fff;
  color:#e85d04;
  border-radius:6px;
  font-size:23px;
  font-weight:900;
  box-shadow:0 2px 5px rgba(0,0,0,.12);
}
.countdown-value em{
  color:#fff;
  font-size:12px;
  font-style:normal;
  font-weight:800;
  margin-right:2px;
}
.promo-carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.promo-product-grid{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  padding:2px 3px 8px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.promo-product-grid::-webkit-scrollbar{display:none}
.promo-product-grid .product-card{
  flex:0 0 220px;
  width:220px;
  height:auto;
  min-width:220px;
  scroll-snap-align:start;
  background:#fff;
  border:0;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(0,0,0,.13);
}
.promo-product-grid .product-image{height:190px}
.promo-product-grid .promo-price{font-size:15px;font-weight:800}
.promo-product-grid .promo-old-price{color:#888;text-decoration:line-through;font-size:11px;font-weight:400;margin-left:5px}
.promo-product-grid .promo-badge{
  position:absolute;
  left:9px;
  top:9px;
  background:#e85d04;
  color:#fff;
  border-radius:4px;
  padding:5px 8px;
  font-size:10px;
  font-weight:800;
  z-index:2;
}
.promo-carousel-arrow{
  flex:0 0 40px;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#e85d04;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  z-index:3;
  transition:transform .18s ease,box-shadow .18s ease;
}
.promo-carousel-arrow:hover{transform:scale(1.06);box-shadow:0 5px 14px rgba(0,0,0,.22)}
.promo-carousel-arrow:active{transform:scale(.96)}
.promo-carousel-arrow .material-symbols-outlined{font-size:25px}
.promo-empty{padding:25px;text-align:center;border:1px dashed #fff;border-radius:7px;color:#fff;background:rgba(255,255,255,.12)}
@media(max-width:800px){
  .promo-showcase{padding:18px 12px 20px;border-radius:10px}
  .promo-showcase-head{align-items:flex-start;flex-direction:column;gap:12px}
  .promo-countdown{width:100%;text-align:left}
  .countdown-value{justify-content:flex-start}
  .countdown-value b{min-width:34px;font-size:20px;padding:7px 5px}
  .promo-carousel{gap:5px}
  .promo-carousel-arrow{flex-basis:34px;width:34px;height:34px}
  .promo-carousel-arrow .material-symbols-outlined{font-size:22px}
  .promo-product-grid{gap:10px;padding-left:1px;padding-right:1px}
  .promo-product-grid .product-card{flex-basis:190px;width:190px;min-width:190px}
  .promo-product-grid .product-image{height:175px}
}
@media(max-width:480px){
  .promo-showcase-head h2{font-size:21px}
  .promo-showcase-head p{font-size:11px}
  .countdown-label{font-size:11px}
  .countdown-value b{min-width:31px;font-size:18px;padding:6px 4px}
  .countdown-value em{font-size:10px}
  .promo-product-grid .product-card{flex-basis:178px;width:178px;min-width:178px}
  .promo-product-grid .product-image{height:165px}
}

/* ===== Adaptation mobile uniquement : afficher ~3 produits à la fois ===== */
@media (max-width:600px){
  .promo-showcase{
    padding:14px 10px 16px;
  }
  .promo-showcase-head{
    margin-bottom:12px;
    gap:8px;
  }
  .promo-showcase-head h2{font-size:19px}
  .promo-showcase-head p{font-size:10px}

  /* Les flèches se superposent au carrousel afin de laisser toute la largeur
     disponible aux produits. */
  .promo-carousel{
    position:relative;
  }
  .promo-product-grid{
    width:100%;
    gap:7px;
    padding:2px 0 6px;
  }
  .promo-product-grid .product-card{
    flex:0 0 calc((100% - 14px)/3);
    width:calc((100% - 14px)/3);
    min-width:calc((100% - 14px)/3);
    border-radius:7px;
  }
  .promo-product-grid .product-image{
    height:auto;
    aspect-ratio:1/1.08;
  }
  .promo-product-grid .product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .promo-product-grid .product-info{
    padding:6px;
  }
  .promo-product-grid .product-info small{
    display:block;
    font-size:7px;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .promo-product-grid .product-info h3{
    margin:3px 0;
    font-size:10px;
    line-height:1.15;
    min-height:23px;
    overflow:hidden;
  }
  .promo-product-grid .promo-price{
    font-size:9px;
    line-height:1.15;
  }
  .promo-product-grid .promo-old-price{
    display:block;
    margin:2px 0 0;
    font-size:7px;
  }
  .promo-product-grid .card-actions{
    padding:0 6px 6px;
  }
  .promo-product-grid .card-actions .button{
    width:100%;
    min-height:27px;
    padding:5px 3px;
    font-size:8px;
    border-radius:5px;
  }
  .promo-product-grid .promo-badge{
    left:5px;
    top:5px;
    padding:3px 4px;
    font-size:7px;
  }

  /* Style mobile type Jumia :
     les flèches restent dans leur propre espace, à côté des produits,
     sans se superposer aux cartes. */
  .promo-carousel{
    display:flex;
    align-items:center;
    gap:5px;
    width:100%;
  }
  .promo-carousel-arrow{
    position:static;
    transform:none;
    width:25px;
    height:34px;
    min-width:25px;
    flex:0 0 25px;
    z-index:2;
    opacity:.94;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .promo-carousel-arrow:hover{transform:none}
  .promo-carousel-arrow:active{transform:scale(.96)}
  .promo-carousel-prev{left:auto}
  .promo-carousel-next{right:auto}
  .promo-carousel-arrow .material-symbols-outlined{font-size:18px}

  /* La zone produits prend tout l'espace central disponible. */
  .promo-product-grid{
    flex:1 1 auto;
    min-width:0;
    width:auto;
  }
}

@media (max-width:380px){
  .promo-showcase{padding-left:8px;padding-right:8px}
  .promo-product-grid{gap:6px}
  .promo-product-grid .product-card{
    flex-basis:calc((100% - 12px)/3);
    width:calc((100% - 12px)/3);
    min-width:calc((100% - 12px)/3);
  }
  .promo-product-grid .product-info h3{font-size:9px}
  .promo-product-grid .promo-price{font-size:8px}
  .promo-product-grid .card-actions .button{font-size:7px}
}
