.cart-product,
.cart-quantity,
.cart-total,
.cart-actions {
    padding: 10px;
    width: 100%;
}

.cart-quantity {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 5px;
}

.quantity-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quantity-control button:hover {
    background-color: #e0e0e0;
}

.quantity-control .quantity-input {
    width: 50px !important;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 30px;
    /* flex-shrink: 0; */
    align-self: auto;
}
.cart-empty {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: 20px 0;
}
.btn-qty {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    border: none;
    background: var(--primary-color-gradient);
    color: white;
    cursor: pointer;
    font-weight: 700;
}
.cart-product {
    display: flex;
    flex-direction: row;
    margin: 0;
}
.cart-table-header {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
}
.cart-summary {
    margin-top: 10px;
}
.summary-total {
    font-weight: bold;
}
/* ----- Cart bouton ----- */
.cart {
    display: inline-block;
}
.cart-label {
    margin-left: 5px;
}
/* Desktop bouton avec label */
.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

/* Wrapper pour icône + badge */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-icon {
    font-size: 24px;
    background-color: transparent;
}

/* Badge positionné sur l’icône */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-color: #e74c3c;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    border-radius: 50%;
    text-align: center;
    pointer-events: none;
    transition: transform 0.3s ease;
    z-index: 2;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.cart-badge.animate {
    transform: scale(1.5);
}

/* Boutons add/remove panier */
.btn-add-to-cart,
.btn-remove-from-cart,
.btn-delete-from-cart {
    text-decoration: none;
}

/* ----- FAB mobile ----- */
@media (max-width: 768px) {
    .cart-button {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0;
        border-radius: 9999px;
        justify-content: center;
        position: fixed;
        bottom: 6rem;
        right: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
        background-color: #2563eb;
        z-index: 5000;
    }
    .cart-label {
        display: none;
    }
    .cart-icon {
        font-size: 28px;
        margin: 0;
    }
    .cart-badge {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.75rem;
        top: -4px;
        right: -4px;
    }

    /* Afficher flèches sur mobile */
    .subnav-arrow {
        display: flex;
    }
}
