/* Styles pour la page de demande de devis - Maquette exacte */
* { 
    box-sizing: border-box; 
}

/* Classe utilitaire pour masquer les éléments */
.hidden {
    display: none !important;
}

.ywraq-wrapper {
    background: transparent;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-container { 
    background: transparent;
}

.quote-header { 
    padding: 0 0 30px 0; 
    text-align: left; 
    background: transparent;
}

.quote-header h1 { 
    font-size: 2.2em; 
    font-weight: 700; 
    margin: 0; 
    color: #333; 
}

.quote-header p { 
    color: #666; 
    font-size: 1.1em; 
    margin: 0; 
}

/* Layout deux colonnes */
.quote-main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.quote-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-right-column {
    position: sticky;
    top: 20px;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.quote-section { 
    background: white;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 24px;
}

.section-title { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 20px; 
}

.section-title .icon { 
    background: #3b82f6; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    padding:7px;
}

.section-title h2 { 
    font-size: 1.3em; 
    font-weight: 600; 
    margin: 0; 
    color: #333;
    text-transform: none;
}

.section-title .badge { 
    background: #e0f2fe; 
    color: #0277bd; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.75em; 
    font-weight: 400; 
    margin-left: auto; 
}

.add-products-btn {
        background: white;
            color: #163c79;
            border: 1px solid #163c79;
            padding: 8px 12px;
            border-radius: 100px;
            font-size: 11px;
            font-weight: 500;
            margin-left: 8px;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
}

.add-products-btn:hover {
    background: #163c79;
    color: white;
}

.product-item { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    padding: 16px; 
    background: white; 
    border: 1px solid #ededed;
    border-radius: 8px; 
    margin-bottom: 12px; 
}

.product-image { 
    width: 80px; 
    height: 80px; 
    background: #f5f5f5; 
    border-radius: 8px; 
    flex-shrink: 0; 
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info { 
    flex: 1; 
}

.product-name { 
    font-weight: 600; 
    color: #333; 
    margin-bottom: 4px; 
    font-size: 1em;
}

.product-name a {
    color: #333;
    text-decoration: none;
}

.product-name a:hover {
    color: #3b82f6;
}

.product-desc { 
    color: #666; 
    font-size: 0.9em; 
    line-height: 1.4;
}

.product-price { 
    font-size: 1.2em; 
    font-weight: 700; 
    color: #3b82f6; 
}

.product-controls { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.qty-control { 
    display: flex; 
    align-items: center; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
}

.qty-control button { 
    background: none; 
    border: none; 
    padding: 8px 12px; 
    cursor: pointer; 
    color: #666;
    font-size: 16px;
    font-weight: bold;
}

.qty-control button:hover {
    background: #f5f5f5;
}

.qty-control input { 
    border: none; 
    width: 40px; 
    text-align: center; 
    padding: 8px 4px; 
    font-size: 14px;
}

.remove-btn { 
    color: #ef4444; 
    background: none; 
    border: none; 
    font-size: 18px; 
    cursor: pointer; 
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    color: #dc2626;
    background: #fef2f2;
    border-radius: 4px;
}

/* Récapitulatif dans la colonne de droite */
.recap { 
    background: white;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 24px;
}

.recap h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Supprimé l'élément before */

.recap-row { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.recap-row:last-child {
    border-bottom: none;
}

.recap-row.total { 
    font-weight: 700;
    font-size: 1.1em;
    color: #16a34a;
    border-top: 2px solid #ededed;
    margin-top: 8px;
    padding-top: 16px;
}

/* Badge mandats administratifs */
.mandats-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9em;
    font-weight: 500;
    font-family: inherit;
}

.mandats-badge img {
    width: 50px;
    height: auto;
}

.section-title:before, .section-title:after {
    content: none;
}

/* Solution complémentaire recommandée - Design maquette */
.solution-section {
    background: #f0f9ff;
    border: 1px solid #c9e1fe;
    border-radius: 8px;
    padding: 20px;
    position: relative;
            margin-bottom: 16px;
}

.solution-section .section-title {
    color: #163c79;
    margin-bottom: 16px;
}

.solution-section .section-title .icon {
    background: none;
    color: #163c79;
    width: 23px;
    height: 23px;
}

.solution-card { 
    background: white;
    border: 1px solid #c9e1fe;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.solution-card .icon { 
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 8px;
    flex-shrink: 0;
    background-image: url('../images/product-placeholder.svg');
    background-size: cover;
    background-position: center;
}

.solution-card .content { 
    flex: 1;
}

.solution-card h3 { 
    margin: 0 0 8px; 
    font-weight: 600; 
    font-size: 13px;
    color: #333;
}

.solution-card .product-description { 
    margin: 0 0 12px; 
    color: #333; 
    font-size: 9px; 
    font-weight: 300;
    line-height: 1.4;
}

.solution-recommendation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #163c79;
}

.solution-card .btn { 
    background: #1a4085;
        color: white;
        border: none;
        padding: 9px 17px;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 500;
        cursor: pointer;
    
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: inherit;
}

.solution-card .btn:hover {
    background: #2563eb;
}

/* Section recommandations - Design maquette */
.recommendations-section {
    background: white;
    border: 1px solid #c9e1fe;
    border-radius: 8px;
    padding: 20px;
    transition: opacity 0.5s ease-out;
}

.recommendations-section.hidden {
    opacity: 0;
    display: none;
}

.recommendations { 
display: flex;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    overflow: auto;
}

.rec-card { 
    background: white;
    border: 1px solid #c9e1fe; 
    border-radius: 8px; 
    padding: 16px; 
    text-align: center;
    position: relative;
}

.rec-card img { 
    width: 84px; 
    height: 84px; 
    object-fit: cover; 
    border-radius: 6px; 
    margin: 0 auto 12px; 
    background: #f5f5f5;
    display: block;
}

.rec-card h4 { 
    margin: 0 0 8px; 
    font-weight: 400; 
    font-size: 10px; 
    color: #333;
    text-align: left;
}

.rec-card h4 a {
    color: #333;
    text-decoration: none;
}

.rec-card h4 a:hover {
    color: #3b82f6;
}

.rec-card p { 
    margin: 0 0 12px; 
    color: #333; 
    font-size: 8px; 
    font-weight: 300;
    line-height: 1.4;
    text-align: left;
}

.rec-card .add-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    border: 1px solid #163c79;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-card .add-btn svg {
    width: 16px;
    height: 16px;
}

.form-section { 
    background: white;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 24px;
    margin-top: 20px;
    grid-column: 1 / -1; /* Pleine largeur */
}

/* Styles pour les icônes Font Awesome dans les labels */
.form-section label i,
.yith-ywraq-mail-form-wrapper label i {
    color: #163c79;
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.form-section label,
.yith-ywraq-mail-form-wrapper label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Amélioration des placeholders */
.form-section input::placeholder,
.form-section textarea::placeholder,
.yith-ywraq-mail-form-wrapper input::placeholder,
.yith-ywraq-mail-form-wrapper textarea::placeholder {
    color: #999;
    font-style: italic;
    opacity: 0.8;
}

.form-section input:focus::placeholder,
.form-section textarea:focus::placeholder,
.yith-ywraq-mail-form-wrapper input:focus::placeholder,
.yith-ywraq-mail-form-wrapper textarea:focus::placeholder {
    opacity: 0.5;
}

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.form-group.full { 
    grid-column: 1 / -1; 
}

.form-group label { 
    display: block; 
    margin-bottom: 6px; 
    font-weight: 500; 
    color: #333; 
    font-size: 0.95em;
}

.form-group input, 
.form-group textarea, 
.form-group select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    font-size: 1em; 
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea { 
    height: 100px; 
    resize: vertical; 
}

.checkbox-group { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.submit-btn { 
    background: #1e40af; 
    color: white; 
    border: none; 
    padding: 16px 32px; 
    border-radius: 8px; 
    font-size: 1.1em; 
    font-weight: 600; 
    cursor: pointer; 
    width: 100%; 
    margin-top: 20px; 
}

.submit-btn:hover {
    background: #1d4ed8;
}

.submit-note { 
    text-align: center; 
    color: #666; 
    font-size: 0.9em; 
    margin-top: 12px; 
}

.empty-quote {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: white;
    border: 1px solid #ededed;
    border-radius: 8px;
}

.empty-quote h3 {
    margin-bottom: 16px;
    color: #333;
}

.empty-quote .btn {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
}

.empty-quote .btn:hover {
    background: #2563eb;
    color: white;
}
.solution-section.hidden {
    display: none;
}
.solution-section .section-title h2 {
    color: #163c79;
    font-size: 14px;
}

.solution-section .section-title h2 span {
    font-weight: normal;
}

.solution-section .section-title h2 strong {
    font-weight: bold;
}

.recommendations-section .section-title h2 {
    color: #333;
    font-size: 14px;
}

.recommendations-section .section-title h2 span {
    font-weight: normal;
}

.recommendations-section .section-title h2 strong {
    font-weight: bold;
}

#yith-ywraq-default-form .form-row input,#yith-ywraq-default-form .form-row textarea {
border-color: #a7a7a7 !important;
}
#yith-ywraq-default-form .form-row label{
    margin:0;
}
#yith-ywraq-default-form .form-row label,
#yith-ywraq-default-form .form-row i {
    color: #374151 !important;
}

#yith-ywraq-default-form .form-row.create-account{
    background-color: #e8ebf1;
    border: 1px solid #cbcbcb;
    border-radius: 8px;
    padding: 12px !important;
    user-select: none;
    margin-top:12px !important;
}
#yith-ywraq-default-form .form-row.create-account label{
    cursor: pointer;
}

#create-account {
    width: unset !important;
}

.woocommerce #yith-ywraq-default-form .form-row-first,
.woocommerce #yith-ywraq-default-form .form-row-last{
width: 49%;
}
/* Responsive */
@media (max-width: 768px) {
    .quote-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-right-column {
        position: static;
        order: -1;
    }
    
    .ywraq-wrapper {
        padding: 10px;
    }
    
    .quote-header h1 {
        font-size: 1.8em;
    }
    
    .quote-section {
        padding: 16px;
    }
    
    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-controls {
        align-self: flex-end;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        flex-wrap: wrap;
    }
    
    .section-title .badge {
        margin-left: 0;
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
    }
}

/* Styles spécifiques au cart personnalisé */
.custom-cart-mode .product-item {
    position: relative;
}

.custom-cart-mode .sync-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.custom-cart-mode .product-item[data-source="wc_cart"] {
    border-left: 3px solid #4CAF50;
}

.custom-cart-mode .product-item[data-source="yith_only"] {
    border-left: 3px solid #FF9800;
    background: rgba(255, 152, 0, 0.05);
}

.custom-cart-mode .product-item .product-info {
    position: relative;
}

.custom-cart-mode .product-item[data-source="yith_only"] .product-info::after {
    content: "YITH uniquement";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #FF9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.custom-cart-mode .product-price-unit {
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
}

.custom-cart-mode .solution-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

.custom-cart-mode .solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.custom-cart-mode .solution-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.custom-cart-mode .solution-card .content {
    flex: 1;
}

.custom-cart-mode .solution-card .price {
    font-size: 1.2em;
    font-weight: 600;
    color: #163C79;
    margin: 10px 0;
}

/* Grille de produits recommandés */
.custom-cart-mode .recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.custom-cart-mode .recommendation-item {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.custom-cart-mode .recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-cart-mode .recommendation-item .rec-image {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 6px;
}

.custom-cart-mode .recommendation-item .rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-cart-mode .recommendation-item .add-to-quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 60, 121, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border: none;
    color: white;
}

.custom-cart-mode .recommendation-item:hover .add-to-quote-overlay {
    opacity: 1;
}

.custom-cart-mode .recommendation-item h4 {
    font-size: 0.9em;
    margin: 10px 0 5px 0;
    line-height: 1.3;
}

.custom-cart-mode .recommendation-item h4 a {
    color: #333;
    text-decoration: none;
}

.custom-cart-mode .recommendation-item h4 a:hover {
    color: #163C79;
}

.custom-cart-mode .recommendation-item .price {
    font-size: 1em;
    color: #163C79;
    font-weight: 600;
}

/* Animations pour les recommandations */
.recommendation-item {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.recommendation-item.removing {
    opacity: 0;
    transform: scale(0.9);
}

.recommendation-item.adding {
    opacity: 0;
    transform: scale(0.9);
}

.recommendation-item.adding.visible {
    opacity: 1;
    transform: scale(1);
}

/* Désactiver les loaders WooCommerce */
.custom-cart-mode .blockUI,
.custom-cart-mode .blockOverlay,
.custom-cart-mode .wc-block-cart__main {
    display: none !important;
}

.custom-cart-mode .products-container{
    margin-bottom: 16px;
}

/* État de chargement */
.custom-cart-mode .products-container.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.custom-cart-mode .products-container.loading::before {
    content: "Chargement du panier...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-weight: 500;
    color: #163C79;
}

.custom-cart-mode .products-container.loading .product-item {
    pointer-events: none;
}

.custom-cart-mode .products-container.loading .qty-input,
.custom-cart-mode .products-container.loading .qty-plus,
.custom-cart-mode .products-container.loading .qty-minus,
.custom-cart-mode .products-container.loading .remove-btn,
.custom-cart-mode .products-container.loading .add-to-quote-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Masquer les flèches des inputs number */
.custom-cart-mode .qty-input {
    -moz-appearance: textfield;
}

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

/* Classes utilitaires */
.hidden {
    display: none !important;
}

/* Styles pour les classes YITH */
.yith-ywraq-mail-form-wrapper {
    background: none;
    border: none;
    padding: 0;
}

.yith-ywraq-mail-form-wrapper h3 {
    display: none; /* On cache le titre YITH car on a le nôtre */
}

/* Styles pour les messages d'erreur YITH */
.woocommerce-error,
.woocommerce-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.woocommerce-message {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Loader YITH */
.ywraq-loader {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

/* Validation des champs */
.form-row.woocommerce-invalid input,
.form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-row.woocommerce-validated input,
.form-row.woocommerce-validated select,
.form-row.woocommerce-validated textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Classes de position YITH */
.form-row-first {
    width: 48%;
    float: left;
    margin-right: 4%;
}

.form-row-last {
    width: 48%;
    float: right;
}

.form-row-wide {
    width: 100%;
    clear: both;
}

.form-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Styles pour les champs requis */
.required {
    color: #dc3545;
}

/* Amélioration du bouton de soumission */
input[type="submit"].raq-send-request {
    background: linear-gradient(135deg, #163C79 0%, #1e4a8c 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

input[type="submit"].raq-send-request:hover{
    color:white !important;
}


input[type="submit"].raq-send-request:hover {
    background: linear-gradient(135deg, #1e4a8c 0%, #163C79 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 60, 121, 0.3);
}

input[type="submit"].raq-send-request:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Styles pour le loader du bouton */
.raq-send-request:disabled::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive pour les champs YITH */
@media (max-width: 768px) {
    .form-row-first,
    .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

#yith-ywraq-default-form .select2-container .select2-selection--single{height:auto;}

#yith-ywraq-default-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

#yith-ywraq-default-form .select2-container input[type="text"],
#yith-ywraq-default-form .select2-container input[type="email"],
#yith-ywraq-default-form .select2-container input[type="phone"],
#yith-ywraq-default-form .form-row .input-text
{
    padding: .85rem;
}

/* ========================================
   ANIMATIONS ET OVERLAYS DE CHARGEMENT
   ======================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Transitions pour les produits */
.product-item {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.product-item.removing {
    opacity: 0;
    transform: translateX(-20px);
}

/* Animation pour message de devis vide */
.empty-quote-section {
    animation: fadeIn 0.3s ease-out;
}

/* Overlays de chargement */
.cart-loading-overlay,
.recap-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
    animation: overlayFadeIn 0.3s ease-out;
}

.loading-content {
    text-align: center;
    color: #163c79;
}

.loading-content p {
    margin: 10px 0 0 0;
    font-size: 14px;
    font-weight: 500;
}

/* Spinners de chargement */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #163c79;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner-small {
    width: 20px;
    height: 20px;
}

.spinner-medium {
    width: 30px;
    height: 30px;
}

.spinner-large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* Désactiver les interactions pendant le chargement */
.cart-loading .qty-control,
.cart-loading .remove-btn {
    pointer-events: none;
    opacity: 0.5;
}

