/* Boutons de quantité */
.btn-quantity {
    border: none;
    background: none;
    color: #6c757d;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.btn-quantity:hover {
    color: #000;
    background-color: #f8f9fa;
    border-radius: 50%;
}

.btn-quantity:focus {
    box-shadow: none;
}

.btn-primary:focus {
    box-shadow: none;
}

.btn-link.text-danger {
    transition: color 0.3s ease;
}

.btn-link.text-danger:hover {
    color: #bb2d3b !important;
}

/* Style pour le carrousel */
.carousel {
    height: 250px; /* Hauteur légèrement augmentée */
    overflow: hidden;
    border-radius: 12px; /* Bordures arrondies */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre portée */
    position: relative;
}

.carousel-inner {
    height: 100%;
    border-radius: 12px; /* Bordures arrondies pour l'intérieur */
    overflow: hidden; /* Pour éviter que les images ne dépassent */
}

.carousel-item {
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Transition fluide */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 12px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px; /* Largeur des flèches */
    height: 40px; /* Hauteur des flèches */
    background-color: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
    border-radius: 50%; /* Forme ronde */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0.8);
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.carousel-indicators .active {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-item img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.description p {
    margin-bottom: 0.5em!important;
}

/* Styles pour les boutons de quantité rapide */
.quantity-selector {
    margin-top: 10px;
}

.quantity-selector .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.quantity-selector .btn-outline-primary {
    border-color: var(--sk-green);
    color: var(--sk-green);
}

.quantity-selector .btn-outline-primary:hover {
    background-color: var(--sk-green);
    border-color: var(--sk-green);
    color: white;
}

.quantity-selector .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.quantity-selector .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.quantity-selector .text-muted {
    font-size: 0.875rem;
    color: #6c757d;
}

.quantity-selector .gap-1 {
    gap: 0.25rem !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .quantity-selector .btn-sm {
        min-width: 30px;
        height: 28px;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .quantity-selector .gap-1 {
        gap: 0.15rem !important;
    }

    .quantity-selector .text-muted {
        font-size: 0.75rem;
    }

    .quantity-selector .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quantity-selector .btn-sm {
        min-width: 28px;
        height: 26px;
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    .quantity-selector .gap-1 {
        gap: 0.1rem !important;
    }

    .quantity-selector .text-muted {
        font-size: 0.7rem;
    }

    /* Améliorations pour très petits écrans */
    .card-body {
        padding: 0.75rem !important;
    }

    .card-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .carousel {
        height: 120px !important;
    }

    .ingredient-slider {
        height: 120px !important;
    }
}



@media (max-width: 991.98px) {
    .entree-name {
        flex-direction: row!important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
}


