/* Cart Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.show {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: var(--gray-color);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.empty-cart h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.selected-car-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.selected-car-img {
    width: 80px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.selected-car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-car-info {
    flex: 1;
}

.selected-car-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.selected-car-price {
    color: var(--primary-color);
    font-weight: 600;
}

.selected-car-remove {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.selected-car-remove:hover {
    color: var(--primary-color);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

#checkoutBtn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 575px) {
    .cart-sidebar {
        width: 90%;
        right: -100%; /* Ndryshimi kryesor - përdorim -100% në vend të -400px */
    }
    
    /* Shtojmë një mbulesë të errët prapa shportës kur është e hapur */
    .cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .cart-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Përshtatje për butonin e mbylljes në mobile */
    .close-cart {
        font-size: 1.2rem;
        padding: 5px;
    }
}