 /* Conteneur principal du panier */
 #cart-slide {
    position: fixed;
    right: 0;
    top: 0;
    width: 380px;
    height: 100%;
    background: #fefefe;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.5s ease;
    overflow-y: auto;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#cart-slide.active {
    transform: translateX(0);
}

/* Bouton de fermeture stylé */
#close-cart {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

#close-cart:hover {
    color: #a60a0a;
}

/* Style général pour le contenu du panier */
#cart-content {
    padding: 30px 20px;
    color: #333;
}

/* Style pour chaque article dans le panier */
.cart-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-5px);
}

.cart-item h4 {
    font-size: 20px;
    color: #a60a0a;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item p {
    font-size: 15px;
    color: #555;
    margin: 4px 0;
}

.cart-item span {
    font-size: 18px;
    font-weight: bold;
    color: #a60a0a;
}

/* Style pour les champs de saisie */
#quantity, #type {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    background-color: #fafafa;
    color: #333;
    transition: border 0.3s, box-shadow 0.3s;
}

#quantity:focus, #type:focus {
    border-color: #a60a0a;
    box-shadow: 0 0 5px rgba(166, 10, 10, 0.4);
}

/* Style du bouton "Add to Cart" */
#add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #a60a0a, #f22);
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.4s, transform 0.2s;
}

#add-to-cart-btn:hover {
    background: linear-gradient(135deg, #d00, #ff4747);
    transform: scale(1.05);
}

/* Résumé des articles dans le panier */

/* Style de l'en-tête du panier */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #a60a0a; /* Couleur principale */
    color: #fff; /* Texte blanc pour le contraste */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-header h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff6b6b; /* Changement de couleur au survol */
}
#cart-slide {
    display: none; /* Ou autre logique pour cacher */
}
#cart-slide.active {
    display: block; /* Pour afficher lorsque la classe active est ajoutée */
}
/* Button Styling */
.btn.buttonS-btn {
    display: inline-block;
    background-color: #a60a0a;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.buttonS-btn  i {
    color: white;
    margin-right: 8px;
    font-size: 18px;
}

/* Hover and Focus Effects */
.btn.buttonS-btn :hover,
.btn.buttonS-btn :focus {
    background-color: rgb(56, 56, 56);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgb(56, 56, 56) ;
}

.btn.buttonS-btn:active {
    background-color: #a60a0a;
    color: white;
    box-shadow: none;
    transform: translateY(0);
    border-color: #a60a0a ;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .btn.buttonS-btn {
      color: transparent !important; /* Hides the text */
      text-align: center;            /* Centers inline elements */
      font-size: 0;                  /* Hide text by setting size to zero */
    }
    .btn.buttonS-btn i {
      display: inline-block;         /* Keep icon inline-block */
      font-size: 18px !important;     /* Restore icon size */
      color: white !important;        /* Ensure icon remains white */
      margin: 0;                     /* Reset margin */
      transform: translateX(-10px);   /* Moves icon 10px to the left */
    }
  }
  
/* Cart Item Image Styling */
/* Cart Item Image Styling */
.cart-item img.cart-thumbnail {
    display: block;
    margin: 0 auto 15px; /* Center image horizontally and add space below */
    width: 120px;
    height: 120px;
    object-fit: contain; /* Keeps image aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn.buttonA-btn {
    display: inline-block;
    background-color: #a60a0a;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.buttonA-btn  i {
    color: white;
    margin-right: 8px;
    font-size: 18px;
}

/* Hover and Focus Effects */
.btn.buttonA-btn :hover,
.btn.buttonA-btn :focus {
    background-color: rgb(56, 56, 56);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgb(56, 56, 56) ;
}

.btn.buttonA-btn:active {
    background-color: #a60a0a;
    color: white;
    box-shadow: none;
    transform: translateY(0);
    border-color: #a60a0a ;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .btn.buttonS-btn{
        padding: 10px 20px;
        font-size: 14px;
    }
}
.popup {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.popup.hidden {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.popup.show {
    opacity: 1;
    transform: translate(-50%, -50%);
}

