.custom-m-container {
    padding: 32px;
}


/* Overlay */
.custom-m-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 40;
}

/* Modal */
.custom-m-modal {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 420px;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
}

/* Header */
.custom-m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.custom-m-title {
    font-size: 18px;
    font-weight: 600;
}

.custom-m-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Body */
.custom-m-body {
    padding: 24px;
    overflow-y: auto;
}

/* Product */
.custom-m-product {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.custom-m-product img {
    width: 100%;
    border-radius: 8px;
}

.custom-m-product-name,
.custom-m-product-price {
    margin-bottom: 6px;
    color: #4b5563;
}

.custom-m-details {
    font-size: 12px;
    text-decoration: underline;
    color: #4b5563;
}

/* Groups */
.custom-m-group {
    margin-bottom: 16px;
}

.custom-m-options {
    display: flex;
    gap: 12px;
}

.custom-m-qty {
    width: 80px;
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

/* Buttons */
.custom-m-btn-add,
.custom-m-btn-buy {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.custom-m-btn-add:hover,
.custom-m-btn-buy:hover {
    background: #b91c1c;
}

/* Input quantité et texte quantité */

.custom-m-label{
    text-align: start;
    font-size: 17px;
    font-weight: 600;
}

.custom-m-modal .variations_button{
    display: flex;
    gap: 50px;
}

/* Formulaire de la modale */
.custom-modal-cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.custom-modal-cart .quantity {
    display: flex;
    gap: 8px;
}

.custom-modal-cart .quantity label {
    font-weight: 600;
    font-size: 14px;
}

.custom-modal-cart .quantity input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-modal-cart .single_add_to_cart_button {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    margin-top: 10px;
}
