/* Estilos modernos para el carrito */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart_page_title {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.cart_navi {
    margin-bottom: 40px;
}

.cart_navi ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart_navi li {
    padding: 12px 30px;
    position: relative;
    color: #999;
    font-size: 14px;
}

.cart_navi li.current {
    color: #333;
    font-weight: 500;
}

.cart_navi li:not(:last-child):after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background: #ddd;
}

.header_explanation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

#cart_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

#cart_table th {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 500;
    color: #333;
    text-align: left;
    font-size: 14px;
}

#cart_table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.thumbnail img {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.productname {
    font-weight: 500;
    color: #333;
}

.unitprice, .subtotal {
    font-size: 15px;
    color: #333;
}

.quantity_input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.delButton {
    background: #fff;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delButton:hover {
    background: #e74c3c;
    color: #fff;
}

.upbutton {
    text-align: right;
    margin-bottom: 20px;
}

.upbutton input[type="submit"] {
    background: #fff;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upbutton input[type="submit"]:hover {
    background: #4a90e2;
    color: #fff;
}

.send {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.continue_shopping_button {
    background: #fff;
    border: 2px solid #333;
    color: #333;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.continue_shopping_button:hover {
    background: #333;
    color: #fff;
}

.to_customerinfo_button {
    background: #4CAF50;
    border: none;
    color: #fff;
    padding: 14px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(76,175,80,0.2);
}

.to_customerinfo_button:hover {
    background: #43A047;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76,175,80,0.3);
}

/* Estilos para el total */
tfoot tr {
    background: #f8f9fa;
}

tfoot th {
    font-size: 15px;
    color: #333;
}

tfoot .amount {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .cart_navi li {
        padding: 8px 15px;
        font-size: 12px;
    }

    #cart_table th:not(.productname):not(.subtotal) {
        display: none;
    }

    #cart_table td {
        padding: 15px 10px;
    }

    .thumbnail {
        display: none;
    }

    .send {
        flex-direction: column;
        gap: 15px;
    }

    .continue_shopping_button,
    .to_customerinfo_button {
        width: 100%;
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-page {
    animation: fadeIn 0.5s ease-out;
} 