/* ==========================================
   PANIER RESPONSIVE - CLEAN VERSION
   ========================================== */

/* Labels du panier - BLANC */
.pro-cart-modal .form-group label,
.pro-cart-modal .form-label,
.cart-step label,
.cart-form label,
.form-group label {
    color: white !important;
    font-weight: 600 !important;
}

.pro-cart-modal {
    overflow-y: auto;
}

.pro-cart-modal input,
.pro-cart-modal select,
.pro-cart-modal textarea {
    color: #204a71 !important;
    background: white !important;
}

.pro-cart-modal input::placeholder,
.pro-cart-modal textarea::placeholder {
    color: #999 !important;
}

/* Modal panier */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
}

.cart-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header du panier */
.cart-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.cart-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Body du panier */
.cart-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Responsive mobile pour assurer le défilement du panier */
@media (max-width: 768px) {
    .pro-cart-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .pro-cart-modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 220px);
        padding-bottom: 12px;
    }

    .cart-step-actions {
        position: sticky;
        bottom: 0;
        background: #f8f9fa;
        padding-top: 12px;
        z-index: 2;
    }
}

/* État vide */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-empty-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.cart-empty-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.cart-empty-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Items du panier */
.cart-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.cart-item:hover {
    transform: translateY(-2px);
}

.cart-item-image {
    flex-shrink: 0;
}

.cart-item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background: #2980b9;
}

.quantity-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.cart-item-remove:hover {
    background: #c0392b;
}

/* Footer du panier */
.cart-footer {
    border-top: 1px solid #ecf0f1;
    padding: 20px;
    background: #f8f9fa;
}

.cart-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-label {
    color: #2c3e50;
}

.cart-total-amount {
    color: #e74c3c;
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-btn-secondary {
    background: #95a5a6;
    color: white;
}

.cart-btn-secondary:hover {
    background: #7f8c8d;
}

.cart-btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.cart-btn-primary:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Notification Toast - EN BAS À GAUCHE */
.cart-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(-400px);
    transition: transform 0.4s ease-in-out;
    z-index: 10000;
    max-width: 250px;
    font-size: 0.9rem;
}

.cart-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-text {
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

/* Mobile - Petits écrans */
@media (max-width: 479px) {
    .cart-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cart-header {
        padding: 15px;
    }
    
    .cart-title {
        font-size: 1.2rem;
    }
    
    .cart-body {
        padding: 15px;
    }
    
    .cart-item-image img {
        width: 40px;
        height: 40px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cart-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Tablettes */
@media (min-width: 480px) and (max-width: 768px) {
    .cart-modal-content {
        width: 85%;
    }
    
    .cart-item-image img {
        width: 45px;
        height: 45px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .cart-modal-content {
        width: 500px;
    }
    
    .cart-item-image img {
        width: 50px;
        height: 50px;
    }
}
