.cart-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
    padding-bottom: 40px;
}

.cart-list-section {
    flex: 1;
}

.cart-summary-section {
    flex: 0 0 350px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    text-align: left;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
}

.cart-item-price {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #1190CB;
}

.cart-item-actions {
    margin-left: 20px;
}

.btn-remove {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background-color: #ff4d4d;
    color: white;
}

.order-summary {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: sticky;
    top: 100px; 
}

.order-summary h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-details {
    margin-bottom: 30px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 1em;
}

.summary-line.total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-weight: bold;
    color: #333;
    font-size: 1.3em;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: #1190CB;
    color: white;
    text-align: center;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.btn-checkout:hover {
    background-color: #0e7aab;
}

.btn-secondary {
    display: block;
    width: 100%;
    background-color: transparent;
    color: #666;
    text-align: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #333;
    color: #333;
}

.empty-cart-message {
    font-size: 1.2em;
    color: #666;
    margin-top: 50px;
}

@media (max-width: 900px) {
    .cart-container {
        flex-direction: column;
    }
    
    .cart-summary-section {
        width: 100%;
        flex: none;
    }
    
    .order-summary {
        position: static;
    }
}