/* Ma Cuvée - Panier Personnalisé */

.ma-cuvee-cart-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Grille des produits */
.ma-cuvee-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .ma-cuvee-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Carte produit */
.ma-cuvee-product {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.ma-cuvee-product:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Image produit */
.ma-cuvee-product .product-image {
    margin-bottom: 15px;
}

.ma-cuvee-product .product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Titre produit */
.ma-cuvee-product .product-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

/* Prix produit */
.ma-cuvee-product .product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--e-global-color-accent);
    margin-bottom: 15px;
}

/* Sélecteur de quantité */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 5px;
    gap: 5px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--e-global-color-accent);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
	border-color : var(--e-global-color-accent) ! important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
	background: var(--e-global-color-accent) !important;
	border-color : var(--e-global-color-accent) ! important;
    filter: brightness(1.15);
}

.qty-btn:active {
	background: var(--e-global-color-accent) !important;
	border-color : var(--e-global-color-accent) ! important;
    transform: scale(0.95);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none !important;
    background: transparent;
    border-radius: 0;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Sous-total produit */
.product-subtotal {
    font-size: 0.9em;
    color: #666;
    min-height: 20px;
}

/* Section Abonnement */
.ma-cuvee-subscription {
    background: linear-gradient(135deg, #f8f4f0 0%, #f0e6dc 100%);
    border: 2px solid var(--e-global-color-accent);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.subscription-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subscription-label {
    font-size: 0.9em;
    color: #666;
}

.subscription-name {
    font-weight: 600;
    color: #333;
}

.subscription-price {
    font-weight: 700;
    color: var(--e-global-color-accent);
    font-size: 1.1em;
}

.subscription-description {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

/* Footer du panier */
.ma-cuvee-cart-footer {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Résumé du panier */
.cart-summary {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-line {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
}

.summary-line:last-child {
    margin-bottom: 0;
}

.summary-qty {
    font-weight: 700;
    color: var(--e-global-color-accent);
}

.summary-abo-name {
    color: #888;
    font-style: italic;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.total-label {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.total-amount {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--e-global-color-accent);
}

/* Bouton Valider */
.ma-cuvee-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: var(--e-global-color-accent);
    color: #fff !important;
    text-decoration: none !important;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ma-cuvee-checkout-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ma-cuvee-checkout-btn:active {
    transform: translateY(0);
}

/* État de chargement */
.ma-cuvee-cart-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.ma-cuvee-cart-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--e-global-color-accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation de mise à jour */
.ma-cuvee-product.updating {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
}