/* Conteneur global */
.spa-order-form {
    max-width: 700px;
    margin: 0 auto;
    font-family: "Trebuchet MS", Arial, sans-serif;
    background-color: #f5f5f0;
    padding: 20px;
    border-radius: 10px;
}

/* Labels */
.spa-label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Inputs */
.spa-input, .spa-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Table produits */
.spa-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.spa-products-table th,
.spa-products-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.spa-products-table thead {
    background-color: #d4d4c9;
}
.spa-products-table th {
    text-align: left;
}
.spa-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.spa-product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.spa-product-desc {
    font-size: 0.9em;
    color: #555;
}

/* Champs quantité */
.spa-qty-input {
    width: 60px;
    text-align: center;
}

/* Cellule total par ligne */
.spa-product-line-total {
    font-weight: bold;
}

/* Total global */
.spa-total-wrap {
    text-align: right;
    margin-top: 10px;
    font-size: 1.1em;
}
.spa-total-label {
    font-weight: bold;
    margin-right: 10px;
}
.spa-total-amount {
    font-weight: bold;
    color: #008000; /* vert */
}

/* Bouton envoyer */
.spa-order-submit {
    background-color: #4CAF50;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

/* Message succès */
.spa-order-success {
    padding: 10px;
    margin: 15px 0;
    background-color: #d2f8d2;
    border: 1px solid #a3e3a3;
    color: #287428;
    border-radius: 5px;
}

/* Responsive tablette portrait */
@media (max-width: 768px) {
    .spa-products-table th, .spa-products-table td {
        font-size: 0.9em;
    }
    .spa-product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .spa-product-img {
        width: 120px;
        height: 120px;
        margin-bottom: 5px;
    }
}


/* Catégorie - simple titre (respecte le design existant) */
.spa-category-row .spa-category-cell { padding-top: 12px; }
.spa-category-title { margin: 10px 0 6px; font-size: 20px;color:#f18629;font-weight:600; }
.spa-product-options { margin-top: 6px; }
.spa-product-options label { margin-right: 6px; }
