body {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
}

/* Style de la carte produit */
.custom-product-card {
    height: 300px; /* Hauteur fixe pour les cartes */
    overflow: hidden; /* Cache tout débordement */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease; 
}

.custom-product-card:hover .custom-product-image {
    transform: scale(1.2); /* Zoom plus grand lors du survol */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ajoute une ombre pour l'effet visuel */
}

/* Modification pour les images carrées */
.custom-product-image {
    width: 100%;
    height: auto; /* Garde la hauteur de l'image automatique selon les proportions */
    max-height: 200px; /* Hauteur maximale pour que l'image ne dépasse pas */
    object-fit: contain; /* Garde l'image entière dans les limites du conteneur sans la déformer */
    transition: transform 0.5s ease-in-out; /* Transition plus lente et fluide */
}

.custom-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.custom-card-title {
    font-size: 16px;  /* Taille plus compacte pour le titre */
}

.custom-card-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    flex-grow: 1;  /* Pour que la description utilise l'espace disponible */
    height: 50px; /* Limite la hauteur de la description */
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-mt-auto {
    margin-top: auto; /* Aligne le contenu vers le bas */
}

.custom-product-details {
    padding: 15px;
    text-align: center;
}
/* Image principale du produit */
.custom-product-carousel img {
    max-height: 450px; /* Limiter la hauteur pour un affichage propre */
    object-fit: contain; /* Garder les proportions originales de l'image */
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
/* Effet de zoom au survol */
.custom-product-carousel img:hover {
    transform: scale(1.05); /* Agrandissement au survol */
}
.custom-product-details-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}
.custom-product-details-container {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Prix */
.custom-product-details-price {
    font-size: 1.5rem;
    color: #27ae60; /* Vert doux */
    margin-bottom: 1rem;
}

/* Description du produit */
.custom-product-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Boutons */
.custom-product-details-btn {
    background-color: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-product-details-btn:hover {
    background-color: #333;
    color: #fff;
}

.custom-product-details-btn i {
    margin-right: 0.5rem;
}

/* Grille des boutons */
.custom-product-details-btn-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


.custom-product-title {
    font-size: 1.2em;
    font-weight: bold;
}

.custom-product-description {
    font-size: 0.9em;
    color: #777;
    height: 60px;
    overflow: hidden;
}

.custom-product-price {
    color: #074d17;
    font-weight: bold;
    font-size: 1.1em;
}

.custom-add-to-cart-btn {
    background-color: transparent;
    border: none;
    padding: 10px;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
   
}
.custom-add-to-cart-btn:focus{
    outline: none; /* Retire les contours lors du focus */
}

.custom-add-to-cart-btn:hover {
    transform: scale(1.2); /* Effet d'agrandissement subtil */
     /* Couleur légèrement plus foncée au survol */
}
.custom-add-to-cart-icon {
    transition: color 0.3s ease;
}
.custom-add-to-cart-btn:hover .custom-add-to-cart-icon {
    color: #f0e8e8;
}

/* Sidebar stylée */
.custom-sidebar {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.custom-sidebar .custom-card-header {
    background-color: #007bff;
    color: white;
}

/* Hero section */
.custom-hero {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-product-card {
    animation: fadeIn 0.8s ease-in-out;
}

.custom-container {
    margin-top: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 123, 255, 0.8); /* Bleu avec transparence */
    border-radius: 50%; /* Rendre les icônes arrondies */
    width: 50px; /* Taille de l'icône */
    height: 50px; /* Taille de l'icône */
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 123, 255, 1); /* Plus opaque au survol */
}
value

.carousel-control-prev-icon,
.carousel-control-next-icon {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    font-size: 18px;
}

.custom-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.custom-btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-size: 18px;
}

.custom-btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.carousel-item img {
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    font-weight: bold;
}

.text-success {
    font-size: 1.5rem;
    font-weight: bold;
}

.custom-welcome-section {
    background-color: #f0f8ff;
    margin-bottom: 2rem;
}

.custom-welcome-text {
    animation: fadeInText 2s ease-in-out;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration du style des boutons + et - */
.quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-minus, .custom-btn-plus {
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #c5cdd6;
    border: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.btn-minus:hover, .custom-btn-plus:hover {
    background-color: #0056b3;
}

.quantity-input {
    text-align: center; /* Centre le texte à l'intérieur de l'input */
    font-weight: bold; /* Rendre la police plus visible */
    width: 80px; /* Ajustez la largeur selon vos besoins */
    border: 1px solid #ddd; /* Facultatif : une bordure légère */
    border-radius: 8px; /* Arrondir légèrement les bords */
    padding: 5px; /* Ajoutez de l'espace à l'intérieur */
    background-color: #f8f9fa; /* Facultatif : couleur de fond douce */
    pointer-events: none; /* Désactive la modification (readonly) */
}

.input-group.quantity {
    width: 200px; /* Largeur personnalisée */
   
    overflow: hidden; /* Empêcher les débordements */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

.btn-minus:focus, .custom-btn-plus:focus {
    outline: none;
}
.btn-minus:hover, .btn-plus:hover {
    background-color: #5a5e61; /* Couleur sombre sur hover */
}
.btn-minus, .btn-plus {
    background-color: #696c70; /* Couleur de fond */
    color: white; /* Couleur du texte */
    transition: background 0.3s ease; /* Transition pour l'effet hover */
    border: none; /* Pas de bordure */
    border-radius: 0; /* Pas de bords arrondis pour les boutons */
}

.table-hover tr:hover {
    background-color: #f8f9fa;
}

.custom-remove-btn:hover {
    background-color: #dc3545;
    color: #fff;
}

.custom-remove-btn {
    color: #dc3545;
}

.custom-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 20px;
    margin: 20px;
}

.custom-card-header {
    background-color: #007bff;
    color: white;
    text-align: center;
    font-size: 24px;
    padding: 15px;
    font-weight: bold;
}

.custom-card-body {
    padding: 30px;
}

.custom-total-amount {
    font-size: 36px;
    font-weight: bold;
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

.custom-btn-confirm {
    background-color: #28a745;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.custom-btn-confirm:hover {
    background-color: #218838;
}

.custom-order-summary {
    font-size: 18px;
    margin-bottom: 30px;
}

.custom-order-summary p {
    margin-bottom: 10px;
}

/* Style pour le résumé du panier */
.custom-cart-summary-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 30px;
}

.custom-cart-summary-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.custom-cart-summary-details {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.custom-cart-summary-details p {
    margin: 0;
}

.custom-cart-summary-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #262626;
}

.custom-cart-summary-total .total-value {
    color: #1abc9c; /* Mettre en valeur le total avec une couleur agréable */
}

hr {
    margin: 15px 0;
}

.non-ajoute {
    color: #bbb; /* Couleur gris clair pour l'indication non ajoutée */
}

/* Effet pour le montant total */
#grand-total {
    font-size: 1.6rem;
    color: #2980b9; /* Une teinte de bleu claire */
    font-weight: bold;
}






