/* ========================================
   SYSTÈME PANIER - STYLES
======================================== */

/* Badge panier navbar */
.btn-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #5FD4C1, #008B78);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(95, 212, 193, 0.3);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 212, 193, 0.4);
}

.cart-badge {
    background: #FF6B6B;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Bouton ajouter au panier sur produit */
.btn-add-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5FD4C1, #008B78);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 212, 193, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Modal fiche produit */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F5F5F5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #FF6B6B;
    color: white;
    transform: rotate(90deg);
}

.modal-product-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #E8F5F2, #B8E6DD);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 30px;
}

.modal-product-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1A1A2E;
    margin-bottom: 10px;
}

.modal-product-category {
    color: #008B78;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.modal-product-price {
    font-size: 36px;
    font-weight: 700;
    color: #008B78;
    margin-bottom: 30px;
}

.modal-product-specs {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.modal-product-specs h4 {
    margin-bottom: 15px;
    color: #1A1A2E;
}

.modal-product-specs p {
    margin: 8px 0;
    color: #6C757D;
}

/* Page Panier */
.panier-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F5F2 100%);
}

.panier-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.panier-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #1A1A2E;
    margin-bottom: 40px;
    text-align: center;
}

.panier-empty {
    text-align: center;
    padding: 80px 20px;
}

.panier-empty-icon {
    font-size: 100px;
    margin-bottom: 20px;
}

.panier-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.panier-items {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.panier-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #E8F5F2;
}

.panier-item:last-child {
    border-bottom: none;
}

.panier-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E8F5F2, #B8E6DD);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.panier-item-info h3 {
    font-size: 18px;
    color: #1A1A2E;
    margin-bottom: 5px;
}

.panier-item-info p {
    color: #6C757D;
    font-size: 14px;
}

.panier-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #008B78;
}

.panier-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8F9FA;
    padding: 5px;
    border-radius: 8px;
}

.quantity-btn {
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #5FD4C1;
    color: white;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    color: #FF6B6B;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.panier-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.panier-summary h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1A1A2E;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #F8F9FA;
}

.summary-line.total {
    font-size: 24px;
    font-weight: 700;
    color: #008B78;
    border-bottom: none;
    margin-top: 10px;
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #5FD4C1, #008B78);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(95, 212, 193, 0.4);
}

.btn-continue {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid #5FD4C1;
    color: #008B78;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: #E8F5F2;
}

/* Responsive */
@media (max-width: 768px) {
    .panier-grid {
        grid-template-columns: 1fr;
    }
    
    .panier-item {
        grid-template-columns: 60px 1fr;
    }
    
    .panier-item-actions {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .panier-summary {
        position: static;
    }
}
