.hob-header__cart {
    display: flex;
    align-items: center;
    position: relative;
    width: 2.5rem;
}
.hob-cart-label {
    margin: 0 0.4rem;
    font-size: 0.6rem;
    color: #111;
    font-weight: 500;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.hob-cart-count {
    background: #eeeeee;
    color: #1f1f1f;
    display: flex;
    border-radius: 50px;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    position: absolute;
    left: 1.5rem;
}


/* Container off-canvas */
.hob-side-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 46%;
  max-width: 45rem;
  height: 100%;
    background: rgb(255 255 255 / 56%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
 box-shadow: -0.25rem 0 0.625rem rgba(0,0,0,0.1);
  /* Caché par défaut */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  
  /* Animations */
  transition:
    transform 0.6s ease,
    opacity   8s ease,
    visibility 0s linear 0.8s; /* visibility passe à hidden après 0.3s */
  
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

/* État ouvert */
.hob-side-cart.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
    visibility: visible !important; 
  /* Pas de délai sur la mise à visible */
  transition:
    transform 0.6s ease,
    opacity   0.1s ease,
    visibility 0s;
}

/* Bloque le scroll du body quand ouvert */
body.hob-side-cart-open {
  overflow: hidden;
}

/* Overlay off-screen à gauche, sans interaction */
body::after {
  content: '';
  position: fixed;
  inset: 0;                     /* top:0; right:0; bottom:0; left:0; */
  background-color: rgba(0,0,0,0.15);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  /* Le transform le place 100% à gauche */
  transform: translateX(-100%);
  pointer-events: none;         /* pas d’interaction tant qu’il est hors-écran */

  /* transition uniquement sur le transform */
  transition: transform 0.9s ease;

  z-index: 998;                 /* sous le side-cart (999) */
}

/* Quand le side-cart est ouvert, on ramène l’overlay à 0 */
body.hob-side-cart-open::after {
  transform: translateX(0);
  pointer-events: auto;         /* bloque les clics sur le reste de la page */
}




@media (max-width: 1024px) {
.hob-side-cart {
  width: 70%;
}

}

@media (max-width: 524px) {
.hob-side-cart {
  width: 80%;
}

}










/* Header */
.hob-side-cart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
}
.hob-side-cart__title {
  margin: 0;
  font-size: 1.25rem;
}
.hob-side-cart__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Empty State */
.hob-side-cart__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hob-side-cart__empty-title {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

/* Footer (vide pour empty) */
.hob-side-cart__footer {
  padding: 2rem;
  border-top: 1px solid #e5e5e5;
}






.hob-side-cart__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}
.hob-side-cart__remove:hover {
  color: #333;
}
.hob-side-cart__product {
  position: relative; /* pour que le bouton se place correctement */
}







/* Middle – liste des produits */
.hob-side-cart__products {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.is-empty .hob-side-cart__products {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.hob-side-cart__product {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.hob-side-cart__product-img img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.25rem;
  object-fit: cover;
}

.hob-side-cart__product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hob-side-cart__product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.hob-side-cart__product-title:hover {
  color: #1f1f1f;
}

.hob-side-cart__product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #555;
}

.hob-side-cart__product-qty {
  font-weight: 500;
}

.hob-side-cart__product-price {
  font-weight: 700;
  color: #000;
}

/* Bottom – total et actions */
.hob-side-cart__footer {
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  background: #fafafa;
}

.hob-side-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hob-side-cart__total-amount {
  color: #1f1f1f;
}

.hob-side-cart__actions {
  display: flex;
  gap: 0.5rem;
}



@media (max-width: 700px) {
.hob-side-cart__actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}


}







/* Boutons */
.hob-side-cart__actions .hob-button {
    display: inline-block;
    padding: 0.75rem 3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-align: center;
    width: 100%;
}



.hob-side-cart__products::-webkit-scrollbar {
  width: 0.5rem;
}
.hob-side-cart__products::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 0.25rem;
}





/* Container quantité dans le side-cart */
.hob-quantity--cart {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 0.375rem;
    border: 0.05rem solid #eee;
    overflow: hidden;
    box-shadow: inset 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

/* Boutons + / – */
.hob-quantity__button {
    width: 2.25rem;
    height: 1.8rem;
    border: none;
    background-color: #ffffff;
    color: #5f5f5f;
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hob-quantity__button:hover {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #525252;
  color: #ffffff;
}

/* Input nombre */
.hob-quantity__input {
  width: 3rem;
  padding: 0.25rem 0;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  color: #333333;
  outline: none;
  -webkit-moz-appearance: textfield;
}

.hob-quantity__input::-webkit-outer-spin-button,
.hob-quantity__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Focus states pour accessibilité */
.hob-quantity__button:focus,
.hob-quantity__input:focus {
  outline: 0px solid #2e2e2e;
  outline-offset: 0px;
}
