/* ============ STYLES DE LA PAGE PANIER ============ */
.cart-page-container {
    padding: 40px 0;
}

.cart-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* Message panier vide */
.cart-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

.cart-empty-message .empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty-message h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.cart-empty-message p {
    color: #777;
    font-size: 16px;
    margin-bottom: 25px;
}

.cart-empty-message .back-shop-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #FC6702;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cart-empty-message .back-shop-btn:hover {
    background: #e55d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 103, 2, 0.3);
}

/* Layout du panier */
.cart-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .cart-content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* En-tête de la liste */
.cart-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8e8e8;
}

.cart-header > div:first-child {
    width: 40px;
    text-align: center;
}

.cart-header > div:nth-child(2) {
    width: 60px;
}

.cart-header > div:nth-child(3) {
    flex: 1;
    padding-left: 15px;
}

.cart-header > div:nth-child(4) {
    width: 100px;
    text-align: center;
}

.cart-header > div:nth-child(5) {
    width: 140px;
    text-align: center;
}

.cart-header > div:nth-child(6) {
    width: 100px;
    text-align: right;
}

/* Carte produit */
.cart-products-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    gap: 10px;
}

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

.cart-item:hover {
    background: #fafafa;
}

.cart-item-removing {
    animation: fadeOutLeft 0.3s ease forwards;
}

/* Colonne suppression */
.cart-item-remove {
    width: 40px;
    display: flex;
    justify-content: center;
}

.remove-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.remove-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

/* Colonne image */
.cart-item-image {
    width: 60px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Colonne nom */
.cart-item-name {

    padding: 0 10px;
    min-width: 0;
}

.cart-item-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-name a:hover {
    color: #FC6702;
}

/* Colonne prix unitaire */
.cart-item-price {
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    flex-shrink: 0;
}

/* Colonne quantité */
.cart-item-quantity {
    width: 140px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    height: 38px;
}

.quantity-selector button {
    width: 38px;
    height: 38px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    paddingrgb(60, 61, 63)
}

.quantity-selector button:hover {
    background: #FC6702;
    color: white;
}

.quantity-selector button:active {
    transform: scale(0.9);
}

.quantity-input {
    width: px !important;
    height: 90px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    -moz-appearance: textfield;
    margin: 0;
    padding: 0;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    background: #fafafa;
}

/* Colonne sous-total */
.cart-item-subtotal {
    text-align: right;
    font-weight: 700;
    color: #FC6702;
    font-size: 18px;
    flex-shrink: 0;
}

/* Actions en bas */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    gap: 15px;
    flex-wrap: wrap;
    border-radius: 0 0 15px 15px;
}

.cart-actions .back-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cart-actions .back-shop-btn:hover {
    border-color: #FC6702;
    color: #FC6702;
}

.cart-actions .update-cart-btn {
    padding: 12px 30px;
    background: #FC6702;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-actions .update-cart-btn:hover {
    background: #e55d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 103, 2, 0.3);
}

/* Résumé du panier */
.cart-summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 30px;
    position: sticky;
    top: 20px;
}

.cart-summary-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #666;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px solid #FC6702;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.summary-row.total .amount {
    color: #FC6702;
    font-size: 24px;
}

.summary-row .tax-info {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #FC6702;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 18px;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #e55d00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 103, 2, 0.3);
}

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

/* Animations */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .cart-item {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .cart-item-remove {
        order: 1;
        width: auto;
    }
    
    .cart-item-image {
        order: 2;
    }
    
    .cart-item-name {
        order: 3;
        flex: 1 1 calc(100% - 150px);
        padding-right: 10px;
    }
    
    .cart-item-price {
        order: 4;
        width: auto;
        padding: 5px 10px;
    }
    
    .cart-item-quantity {
        order: 5;
        width: auto;
    }
    
    .cart-item-subtotal {
        order: 6;
        width: auto;
        padding: 5px 0;
    }
    
    .cart-header {
        display: none;
    }
}

@media (max-width: 600px) {
    .cart-item {
        padding: 12px;
        position: relative;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
    }
    
    .cart-item-image {
        width: 50px;
    }
    
    .cart-item-image img {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-name {
        flex: 1 1 100%;
        padding: 8px 0;
    }
    
    .cart-item-name a {
        font-size: 14px;
    }
    
    .cart-item-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-item-price {
        font-size: 14px;
    }
    
    .cart-item-subtotal {
        font-size: 16px;
    }
    
    .quantity-selector button {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 80px !important;
        height: 32px;
        font-size: 14px;
    }
    
    .cart-summary-card {
        padding: 20px;
    }
    
    .cart-summary-card h2 {
        font-size: 18px;
    }
    
    .summary-row.total .amount {
        font-size: 20px;
    }
    
    .checkout-btn {
        font-size: 16px;
        padding: 14px;
    }
}